fix: wrong number
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 4s

This commit is contained in:
Methapon2001 2025-09-18 16:55:34 +07:00
parent 0930c3c833
commit a426e18025

View file

@ -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