From 096ac4408717901ffd9f732bbddb61db1bdce23e Mon Sep 17 00:00:00 2001 From: Methapon Metanipat Date: Fri, 18 Oct 2024 09:27:30 +0700 Subject: [PATCH] fix: pricePerUnit calc --- src/components/05_quotation/ProductItem.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/05_quotation/ProductItem.vue b/src/components/05_quotation/ProductItem.vue index 75c9746f..8ecda296 100644 --- a/src/components/05_quotation/ProductItem.vue +++ b/src/components/05_quotation/ProductItem.vue @@ -286,8 +286,9 @@ watch( {{ formatNumberDecimal( - props.row.pricePerUnit + - props.row.pricePerUnit * (config?.vat || 0.07), + props.row.pricePerUnit + props.row.product.calcVat + ? props.row.pricePerUnit * (config?.vat || 0.07) + : 0, 2, ) }}