From a426e18025b280acbcbdb8f3a8004d199eb22bc6 Mon Sep 17 00:00:00 2001 From: Methapon2001 <61303214+Methapon2001@users.noreply.github.com> Date: Thu, 18 Sep 2025 16:55:34 +0700 Subject: [PATCH] fix: wrong number --- src/services/flowaccount.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/services/flowaccount.ts b/src/services/flowaccount.ts index 9450b02..32d5c88 100644 --- a/src/services/flowaccount.ts +++ b/src/services/flowaccount.ts @@ -186,8 +186,6 @@ const flowAccountAPI = { data.paymentDate = `${year}-${String(month).padStart(2, "0")}-${String(date).padStart(2, "0")}`; } */ - console.log(JSON.stringify(data, null, 2)); - const res = await fetch( api + "/upgrade/receipts/inline" + (withPayment ? "/with-payment" : ""), { @@ -338,7 +336,7 @@ const flowAccount = { subTotal: quotation.payCondition === "BillSplitCustom" || quotation.payCondition === "SplitCustom" ? 0 - : quotation.totalPrice, + : quotation.totalPrice - quotation.totalDiscount - quotation.vatExcluded, totalAfterDiscount: quotation.payCondition === "BillSplitCustom" || quotation.payCondition === "SplitCustom" ? 0