From e2ddc079ec9b78d11a1c020a3d9d1bae3f5ae566 Mon Sep 17 00:00:00 2001 From: jorgep Date: Fri, 29 Nov 2024 12:42:03 +0100 Subject: [PATCH] fix: refs #7936 format tax calculation to two decimal places --- src/pages/InvoiceIn/Card/InvoiceInVat.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/InvoiceIn/Card/InvoiceInVat.vue b/src/pages/InvoiceIn/Card/InvoiceInVat.vue index 06219aa77..13b775c77 100644 --- a/src/pages/InvoiceIn/Card/InvoiceInVat.vue +++ b/src/pages/InvoiceIn/Card/InvoiceInVat.vue @@ -121,7 +121,7 @@ function taxRate(invoiceInTax) { const taxTypeSage = taxRateSelection?.rate ?? 0; const taxableBase = invoiceInTax?.taxableBase ?? 0; - return (taxTypeSage / 100) * taxableBase; + return ((taxTypeSage / 100) * taxableBase).toFixed(2); } const formatOpt = (row, { model, options }, prop) => {