From a28e03eddde997017be136fc6bf5a7b1ff39b062 Mon Sep 17 00:00:00 2001 From: david Date: Mon, 6 Oct 2025 10:00:01 +0200 Subject: [PATCH] Clientes y facturas de cliente --- .../src/api/domain/aggregates/customer-invoice.ts | 4 ++-- .../mappers/queries/customer-invoice.list.mapper.ts | 2 +- .../editor/recipient/recipient-modal-selector-field.tsx | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/customer-invoices/src/api/domain/aggregates/customer-invoice.ts b/modules/customer-invoices/src/api/domain/aggregates/customer-invoice.ts index e0f8d98b..afcd0a1e 100644 --- a/modules/customer-invoices/src/api/domain/aggregates/customer-invoice.ts +++ b/modules/customer-invoices/src/api/domain/aggregates/customer-invoice.ts @@ -224,8 +224,8 @@ export class CustomerInvoice private _getTaxesAmount(taxableAmount: InvoiceAmount): InvoiceAmount { let amount = InvoiceAmount.zero(this.currencyCode.code); - for (const tax of this.taxes) { - amount = amount.add(tax.taxesAmount); + for (const taxItem of this.taxes) { + amount = amount.add(taxItem.taxesAmount); } return amount; } diff --git a/modules/customer-invoices/src/api/infrastructure/mappers/queries/customer-invoice.list.mapper.ts b/modules/customer-invoices/src/api/infrastructure/mappers/queries/customer-invoice.list.mapper.ts index 495a5470..971e034b 100644 --- a/modules/customer-invoices/src/api/infrastructure/mappers/queries/customer-invoice.list.mapper.ts +++ b/modules/customer-invoices/src/api/infrastructure/mappers/queries/customer-invoice.list.mapper.ts @@ -172,7 +172,7 @@ export class CustomerInvoiceListMapper ); const description = extractOrPushError( - maybeFromNullableVO(raw.description, (value) => value), + maybeFromNullableVO(raw.description, (value) => Result.ok(String(value))), "description", errors ); diff --git a/modules/customer-invoices/src/web/components/editor/recipient/recipient-modal-selector-field.tsx b/modules/customer-invoices/src/web/components/editor/recipient/recipient-modal-selector-field.tsx index e9b7c672..46ae3b44 100644 --- a/modules/customer-invoices/src/web/components/editor/recipient/recipient-modal-selector-field.tsx +++ b/modules/customer-invoices/src/web/components/editor/recipient/recipient-modal-selector-field.tsx @@ -41,7 +41,6 @@ export function RecipientModalSelectorField({ disabled={isDisabled} readOnly={isReadOnly} onValueChange={onChange} - className='bg-fuchsia-200' initialCustomer={{ ...initialRecipient as CustomerSummary }}