From 606601026a388edc6b4aabace2cdbdb872acc6e6 Mon Sep 17 00:00:00 2001 From: david Date: Tue, 14 Oct 2025 15:46:57 +0200 Subject: [PATCH] Facturas de cliente --- .../catalogs/taxes/spain-tax-catalog.json | 16 +- .../templates/customer-invoice/template.hbs | 29 +-- ...late-factura.hbs => template_proforma.hbs} | 29 ++- .../src/common/locales/en.json | 4 +- .../src/common/locales/es.json | 2 +- .../editor/customer-invoice-edit-form.tsx | 36 ++-- .../editor/invoice-basic-info-fields.tsx | 31 +-- .../editor/invoice-items-editor.tsx | 29 ++- .../web/components/editor/invoice-notes.tsx | 4 +- .../web/components/editor/invoice-totals.tsx | 180 ++++++++++++------ .../editor/items/hover-card-total-summary.tsx | 29 ++- .../web/components/editor/items/item-row.tsx | 4 + .../src/web/components/page-header.tsx | 2 +- .../src/web/context/invoice-context.tsx | 12 +- .../hooks/calcs/use-invoice-auto-recalc.ts | 16 -- .../rdx-ui/src/components/form/fieldset.tsx | 6 +- packages/shadcn-ui/src/components/form.tsx | 3 +- packages/shadcn-ui/src/styles/globals.css | 24 ++- 18 files changed, 266 insertions(+), 190 deletions(-) rename modules/customer-invoices/src/api/application/use-cases/report/reporter/templates/customer-invoice/{template-factura.hbs => template_proforma.hbs} (88%) diff --git a/modules/core/src/common/catalogs/taxes/spain-tax-catalog.json b/modules/core/src/common/catalogs/taxes/spain-tax-catalog.json index 8c501fb7..09b1f40b 100644 --- a/modules/core/src/common/catalogs/taxes/spain-tax-catalog.json +++ b/modules/core/src/common/catalogs/taxes/spain-tax-catalog.json @@ -182,7 +182,7 @@ }, { - "name": "REC 5,2%", + "name": "Rec. de equivalencia 5,2%", "code": "rec_5_2", "value": "520", "scale": "2", @@ -191,7 +191,7 @@ "aeat_code": "51" }, { - "name": "REC 1,75%", + "name": "Rec. de equivalencia 1,75%", "code": "rec_1_75", "value": "175", "scale": "2", @@ -200,7 +200,7 @@ "aeat_code": "52" }, { - "name": "REC 1,4%", + "name": "Rec. de equivalencia 1,4%", "code": "rec_1_4", "value": "140", "scale": "2", @@ -209,7 +209,7 @@ "aeat_code": null }, { - "name": "REC 1%", + "name": "Rec. de equivalencia 1%", "code": "rec_1", "value": "100", "scale": "2", @@ -218,7 +218,7 @@ "aeat_code": null }, { - "name": "REC 0,62%", + "name": "Rec. de equivalencia 0,62%", "code": "rec_0_62", "value": "62", "scale": "2", @@ -227,7 +227,7 @@ "aeat_code": null }, { - "name": "REC 0,5%", + "name": "Rec. de equivalencia 0,5%", "code": "rec_0_5", "value": "50", "scale": "2", @@ -236,7 +236,7 @@ "aeat_code": null }, { - "name": "REC 0,26%", + "name": "Rec. de equivalencia 0,26%", "code": "rec_0_26", "value": "26", "scale": "2", @@ -245,7 +245,7 @@ "aeat_code": null }, { - "name": "REC 0%", + "name": "Rec. de equivalencia 0%", "code": "rec_0", "value": "0", "scale": "2", diff --git a/modules/customer-invoices/src/api/application/use-cases/report/reporter/templates/customer-invoice/template.hbs b/modules/customer-invoices/src/api/application/use-cases/report/reporter/templates/customer-invoice/template.hbs index b5d4df16..d1f86fb8 100644 --- a/modules/customer-invoices/src/api/application/use-cases/report/reporter/templates/customer-invoice/template.hbs +++ b/modules/customer-invoices/src/api/application/use-cases/report/reporter/templates/customer-invoice/template.hbs @@ -110,18 +110,17 @@ -