From ec61c733426979035ce65227c379a22afd6d7c47 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 23 Jan 2025 09:25:20 +0700 Subject: [PATCH] fix: wrong vat excluded calc --- src/pages/05_quotation/QuotationForm.vue | 2 +- src/pages/05_quotation/preview/ViewForm.vue | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/05_quotation/QuotationForm.vue b/src/pages/05_quotation/QuotationForm.vue index 0cfe7c8b..5e11b252 100644 --- a/src/pages/05_quotation/QuotationForm.vue +++ b/src/pages/05_quotation/QuotationForm.vue @@ -253,7 +253,7 @@ function getPrice( a.vat = c.product.calcVat ? precisionRound(a.vat + vat) : a.vat; a.vatExcluded = c.product.calcVat ? a.vatExcluded - : precisionRound(a.vat + vat); + : precisionRound(a.vatExcluded + vat); a.finalPrice = precisionRound( a.totalPrice - a.totalDiscount + diff --git a/src/pages/05_quotation/preview/ViewForm.vue b/src/pages/05_quotation/preview/ViewForm.vue index 0906e3d7..636d32d9 100644 --- a/src/pages/05_quotation/preview/ViewForm.vue +++ b/src/pages/05_quotation/preview/ViewForm.vue @@ -264,7 +264,7 @@ onMounted(async () => { a.vat = c.product.calcVat ? precisionRound(a.vat + vat) : a.vat; a.vatExcluded = c.product.calcVat ? a.vatExcluded - : precisionRound(a.vat + vat); + : precisionRound(a.vatExcluded + vat); a.finalPrice = precisionRound( a.totalPrice - a.totalDiscount +