From e5b95e5cc08a0e41820efe5d2587b494d7f74f98 Mon Sep 17 00:00:00 2001 From: puriphatt Date: Fri, 4 Oct 2024 15:14:37 +0700 Subject: [PATCH] refactor: agent price & format number --- src/components/05_quotation/ProductItem.vue | 109 ++++++++++++-------- 1 file changed, 67 insertions(+), 42 deletions(-) diff --git a/src/components/05_quotation/ProductItem.vue b/src/components/05_quotation/ProductItem.vue index 9c585d3f..5a243d7b 100644 --- a/src/components/05_quotation/ProductItem.vue +++ b/src/components/05_quotation/ProductItem.vue @@ -1,10 +1,15 @@ @@ -177,34 +202,26 @@ const columns = [ @@ -229,20 +246,28 @@ const columns = [ >
{{ $t('quotation.allProductPrice') }} - {{ summary.totalPrice }} ฿ + + {{ formatNumberDecimal(summary.totalPrice, 2) }} ฿ +
{{ $t('general.discount') }} - {{ summary.totalDiscount }} ฿ + + {{ formatNumberDecimal(summary.totalDiscount, 2) }} ฿ +
{{ $t('quotation.tax') }} - {{ summary.vat }} ฿ + + {{ formatNumberDecimal(summary.vat, 2) }} ฿ +
{{ $t('quotation.totalPrice') }} - {{ summary.finalPrice }} ฿ + + {{ formatNumberDecimal(summary.finalPrice, 2) }} ฿ +