diff --git a/app/Classes/Modules/Companies/DataTransferObjects/EInvoiceInfoDTO.php b/app/Classes/Modules/Companies/DataTransferObjects/EInvoiceInfoDTO.php index 893f20c7..63cb3e5e 100644 --- a/app/Classes/Modules/Companies/DataTransferObjects/EInvoiceInfoDTO.php +++ b/app/Classes/Modules/Companies/DataTransferObjects/EInvoiceInfoDTO.php @@ -7,7 +7,7 @@ use App\Classes\General\Interfaces\DataTransferObject; class EInvoiceInfoDTO implements DataTransferObject { public string $tin; - public int $msicCode; + public string $msicCode; public int $districtId; public int $stateId; public int $companyId; @@ -18,7 +18,7 @@ class EInvoiceInfoDTO implements DataTransferObject public function __construct(array $data) { $this->tin = (string) ($data['tin'] ?? ''); - $this->msicCode = (int) ($data['msic_code'] ?? 0); + $this->msicCode = (string) ($data['msic_code'] ?? 0); $this->districtId = (int) ($data['district_id'] ?? 0); $this->stateId = (int) ($data['state_id'] ?? 0); $this->companyId = (int) ($data['company_id'] ?? 0); diff --git a/app/Classes/Modules/Companies/DataTransferObjects/UpdateCompanyDetailsDTO.php b/app/Classes/Modules/Companies/DataTransferObjects/UpdateCompanyDetailsDTO.php index e9a76434..f76e2306 100644 --- a/app/Classes/Modules/Companies/DataTransferObjects/UpdateCompanyDetailsDTO.php +++ b/app/Classes/Modules/Companies/DataTransferObjects/UpdateCompanyDetailsDTO.php @@ -13,7 +13,7 @@ class UpdateCompanyDetailsDTO implements DataTransferObject public int $type; public string $tin; - public int $msicCode; + public string $msicCode; public int $addressId; public int $districtId; public int $stateId; @@ -31,7 +31,7 @@ class UpdateCompanyDetailsDTO implements DataTransferObject $this->type = (int) ($data['type'] ?? 0); $this->tin = (string) ($data['tin'] ?? 0); - $this->msicCode = (int) ($data['msic_code'] ?? 0); + $this->msicCode = (string) ($data['msic_code'] ?? 0); $this->addressId = (int) ($data['address_id'] ?? 0); $this->districtId = (int) ($data['district_id'] ?? 0); $this->stateId = (int) ($data['state_id'] ?? 0); diff --git a/app/Http/Resources/EInvoiceInfoResource.php b/app/Http/Resources/EInvoiceInfoResource.php index 0037edff..d183032c 100644 --- a/app/Http/Resources/EInvoiceInfoResource.php +++ b/app/Http/Resources/EInvoiceInfoResource.php @@ -23,7 +23,7 @@ class EInvoiceInfoResource extends JsonResource 'post_code' => (int) $this->postcode, 'country' => $this->country, 'billing' => (int) $this->billing, - 'msic_code' => (int) $this->msic_code, + 'msic_code' => (string) $this->msic_code, 'tin' => (string) $this->tin, 'e_invoice' => (int) $this->e_invoice, ]; diff --git a/resources/assets/vue/components/address/forms/EInvoiceInfoFormComponent.vue b/resources/assets/vue/components/address/forms/EInvoiceInfoFormComponent.vue index 5ca69ee9..98a9d958 100644 --- a/resources/assets/vue/components/address/forms/EInvoiceInfoFormComponent.vue +++ b/resources/assets/vue/components/address/forms/EInvoiceInfoFormComponent.vue @@ -18,7 +18,7 @@