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;