From 2a4967ffe02004f178ae0c53d3d9c8f11cfc2ee0 Mon Sep 17 00:00:00 2001 From: Thanaphon Frappet Date: Mon, 27 Jan 2025 10:41:53 +0700 Subject: [PATCH] refactor: edit show calculate --- src/pages/05_quotation/QuotationFormInfo.vue | 4 +--- src/pages/05_quotation/preview/ViewForm.vue | 4 +--- src/pages/09_task-order/document_view/MainPage.vue | 4 +--- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/src/pages/05_quotation/QuotationFormInfo.vue b/src/pages/05_quotation/QuotationFormInfo.vue index 08c7266e..eb95953a 100644 --- a/src/pages/05_quotation/QuotationFormInfo.vue +++ b/src/pages/05_quotation/QuotationFormInfo.vue @@ -446,9 +446,7 @@ watch( {{ formatNumberDecimal( - summaryPrice.totalPrice - - summaryPrice.totalDiscount + - summaryPrice.vat, + summaryPrice.totalPrice - summaryPrice.totalDiscount, 2, ) }} diff --git a/src/pages/05_quotation/preview/ViewForm.vue b/src/pages/05_quotation/preview/ViewForm.vue index e12cd19f..28eff17e 100644 --- a/src/pages/05_quotation/preview/ViewForm.vue +++ b/src/pages/05_quotation/preview/ViewForm.vue @@ -435,9 +435,7 @@ function print() { {{ formatNumberDecimal( - summaryPrice.totalPrice - - summaryPrice.totalDiscount + - summaryPrice.vat, + summaryPrice.totalPrice - summaryPrice.totalDiscount, 2, ) }} diff --git a/src/pages/09_task-order/document_view/MainPage.vue b/src/pages/09_task-order/document_view/MainPage.vue index d9d41280..6fe5ed02 100644 --- a/src/pages/09_task-order/document_view/MainPage.vue +++ b/src/pages/09_task-order/document_view/MainPage.vue @@ -373,9 +373,7 @@ function print() { {{ formatNumberDecimal( - summaryPrice.totalPrice - - summaryPrice.totalDiscount + - summaryPrice.vat, + summaryPrice.totalPrice - summaryPrice.totalDiscount, 2, ) }}