Clientes y facturas de cliente
This commit is contained in:
parent
e9e0ce5406
commit
a28e03eddd
@ -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;
|
||||
}
|
||||
|
||||
@ -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
|
||||
);
|
||||
|
||||
@ -41,7 +41,6 @@ export function RecipientModalSelectorField<TFormValues extends FieldValues>({
|
||||
disabled={isDisabled}
|
||||
readOnly={isReadOnly}
|
||||
onValueChange={onChange}
|
||||
className='bg-fuchsia-200'
|
||||
initialCustomer={{
|
||||
...initialRecipient as CustomerSummary
|
||||
}}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user