Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
856cabaf34
commit
05af1a3aff
@@ -245,6 +245,11 @@ function InvoiceDetail() {
|
||||
total: Number(invoice.total),
|
||||
paid: Number(invoice.amount_paid),
|
||||
balance,
|
||||
taxRatePct:
|
||||
Number(invoice.subtotal) > 0
|
||||
? Math.round((Number(invoice.tax) / Number(invoice.subtotal)) * 10000) / 100
|
||||
: 0,
|
||||
feesAndExpenses: Number(invoice.subtotal),
|
||||
},
|
||||
};
|
||||
await downloadInvoicePdf(input, `${invoice.invoice_number}.pdf`);
|
||||
|
||||
Reference in New Issue
Block a user