feat(web): anticipo total, importe aplicado y saldo pendiente en el pie de facturas y notas de crédito

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
GeorgeandClaude Sonnet 5.5 committed 2026-10-19 13:03:32 -05:00
1 parent c28207b0fa
commit 0b988733f6
7 files changed
+43 -11

No files matched your search

@@ -421,6 +421,14 @@ export class DocumentFormPage {
return this.fmt(this.totals().expenses);
case 'tax':
return this.fmt(this.totals().tax);
case 'downPayment':
return this.fmt(Number(this.doc()?.['DownPaymentAmount'] ?? 0));
case 'applied':
return this.fmt(Number(this.doc()?.['PaidToDate'] ?? 0));
case 'balance': {
const d = this.doc();
return this.fmt(d ? Number(d['DocTotal'] ?? 0) - Number(d['PaidToDate'] ?? 0) : 0);
}
case 'total':
return this.fmt(this.totals().total);
}