From 2e45fbe9d5706c25afcf93821edbf1f24f6622a4 Mon Sep 17 00:00:00 2001 From: David Bomba Date: Fri, 10 Oct 2025 11:51:58 +1100 Subject: [PATCH] Fixes for meta definitions of list views --- .../EDocument/Standards/Verifactu/RegistroAlta.php | 2 +- openapi/api-docs.yaml | 12 ++++++++++-- openapi/paths/clients.yaml | 12 ++++++++++-- 3 files changed, 21 insertions(+), 5 deletions(-) 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: