diff --git a/app/Services/EDocument/Standards/Verifactu/RegistroAlta.php b/app/Services/EDocument/Standards/Verifactu/RegistroAlta.php index 1f6b053e72..2bb4749312 100644 --- a/app/Services/EDocument/Standards/Verifactu/RegistroAlta.php +++ b/app/Services/EDocument/Standards/Verifactu/RegistroAlta.php @@ -131,7 +131,7 @@ class RegistroAlta /** The business entity that is issuing the invoice */ $emisor = new PersonaFisicaJuridica(); - $emisor->setNif($this->company->settings->vat_number) + $emisor->setNif(substr($this->company->settings->vat_number, 0, 9)) ->setNombreRazon($this->invoice->company->present()->name()); /** The business entity (Client) that is receiving the invoice */ diff --git a/openapi/api-docs.yaml b/openapi/api-docs.yaml index 88b87c5704..e1a8bc7d92 100644 --- a/openapi/api-docs.yaml +++ b/openapi/api-docs.yaml @@ -14480,8 +14480,16 @@ paths: $ref: '#/components/headers/X-RateLimit-Limit' content: application/json: - schema: - $ref: '#/components/schemas/Client' + schema: + type: object + properties: + data: + type: array + items: + $ref: '#/components/schemas/Client' + meta: + type: object + $ref: '#/components/schemas/Meta' 401: $ref: '#/components/responses/401' 403: diff --git a/openapi/paths/clients.yaml b/openapi/paths/clients.yaml index ef653a0f6f..b1d5c54c5c 100644 --- a/openapi/paths/clients.yaml +++ b/openapi/paths/clients.yaml @@ -219,8 +219,16 @@ $ref: '#/components/headers/X-RateLimit-Limit' content: application/json: - schema: - $ref: '#/components/schemas/Client' + schema: + type: object + properties: + data: + type: array + items: + $ref: '#/components/schemas/Client' + meta: + type: object + $ref: '#/components/schemas/Meta' 401: $ref: '#/components/responses/401' 403: