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