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 }}