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 {
|
private _getTaxesAmount(taxableAmount: InvoiceAmount): InvoiceAmount {
|
||||||
let amount = InvoiceAmount.zero(this.currencyCode.code);
|
let amount = InvoiceAmount.zero(this.currencyCode.code);
|
||||||
|
|
||||||
for (const tax of this.taxes) {
|
for (const taxItem of this.taxes) {
|
||||||
amount = amount.add(tax.taxesAmount);
|
amount = amount.add(taxItem.taxesAmount);
|
||||||
}
|
}
|
||||||
return amount;
|
return amount;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -172,7 +172,7 @@ export class CustomerInvoiceListMapper
|
|||||||
);
|
);
|
||||||
|
|
||||||
const description = extractOrPushError(
|
const description = extractOrPushError(
|
||||||
maybeFromNullableVO(raw.description, (value) => value),
|
maybeFromNullableVO(raw.description, (value) => Result.ok(String(value))),
|
||||||
"description",
|
"description",
|
||||||
errors
|
errors
|
||||||
);
|
);
|
||||||
|
|||||||
@ -41,7 +41,6 @@ export function RecipientModalSelectorField<TFormValues extends FieldValues>({
|
|||||||
disabled={isDisabled}
|
disabled={isDisabled}
|
||||||
readOnly={isReadOnly}
|
readOnly={isReadOnly}
|
||||||
onValueChange={onChange}
|
onValueChange={onChange}
|
||||||
className='bg-fuchsia-200'
|
|
||||||
initialCustomer={{
|
initialCustomer={{
|
||||||
...initialRecipient as CustomerSummary
|
...initialRecipient as CustomerSummary
|
||||||
}}
|
}}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user