From 4d1735e3d5fb50c324d58a0a15f9a8c963e80194 Mon Sep 17 00:00:00 2001 From: david Date: Wed, 8 Jul 2026 19:27:43 +0200 Subject: [PATCH] Mostrar "invoiceNumber" como campo de solo lectura --- .../map-proforma-to-proforma-update-form.adapter.ts | 2 ++ .../update/entities/proforma-update-form.entity.ts | 2 ++ .../update/ui/editors/proforma-update-header-editor.tsx | 2 +- packages/rdx-ui/src/components/form/text-field.tsx | 8 -------- 4 files changed, 5 insertions(+), 9 deletions(-) diff --git a/modules/customer-invoices/src/web/proformas/update/adapters/map-proforma-to-proforma-update-form.adapter.ts b/modules/customer-invoices/src/web/proformas/update/adapters/map-proforma-to-proforma-update-form.adapter.ts index 9016ab56..d23fcbb4 100644 --- a/modules/customer-invoices/src/web/proformas/update/adapters/map-proforma-to-proforma-update-form.adapter.ts +++ b/modules/customer-invoices/src/web/proformas/update/adapters/map-proforma-to-proforma-update-form.adapter.ts @@ -21,6 +21,8 @@ export const mapProformaToProformaUpdateForm = (proforma: Proforma): ProformaUpd const fiscalDefaults = resolveFiscalDefaults(proforma, proformaDefaults); return { + invoiceNumber: proforma.invoiceNumber, + series: proforma.series ?? proformaDefaults.series, invoiceDate: proforma.invoiceDate ?? proformaDefaults.invoiceDate, diff --git a/modules/customer-invoices/src/web/proformas/update/entities/proforma-update-form.entity.ts b/modules/customer-invoices/src/web/proformas/update/entities/proforma-update-form.entity.ts index 0b95121d..e295375b 100644 --- a/modules/customer-invoices/src/web/proformas/update/entities/proforma-update-form.entity.ts +++ b/modules/customer-invoices/src/web/proformas/update/entities/proforma-update-form.entity.ts @@ -18,6 +18,8 @@ import type { ProformaItemUpdateForm } from "./proforma-item-update-form.entity" export type ProformaTaxMode = "single" | "perLine"; export interface ProformaUpdateForm { + invoiceNumber: string; + series: string; invoiceDate: string; diff --git a/modules/customer-invoices/src/web/proformas/update/ui/editors/proforma-update-header-editor.tsx b/modules/customer-invoices/src/web/proformas/update/ui/editors/proforma-update-header-editor.tsx index 262a2d39..0fdf6ee8 100644 --- a/modules/customer-invoices/src/web/proformas/update/ui/editors/proforma-update-header-editor.tsx +++ b/modules/customer-invoices/src/web/proformas/update/ui/editors/proforma-update-header-editor.tsx @@ -38,7 +38,7 @@ export const ProformaUpdateHeaderEditor = ({ = { - xs: "md:col-span-2", - sm: "md:col-span-3", - md: "md:col-span-4", - lg: "md:col-span-6", - full: "md:col-span-12", -}; - type TextFieldProps = Omit & { name: FieldPath;