diff --git a/src/services/flowaccount.ts b/src/services/flowaccount.ts index 32d5c88..d004c66 100644 --- a/src/services/flowaccount.ts +++ b/src/services/flowaccount.ts @@ -334,9 +334,17 @@ const flowAccount = { discountAmount: quotation.totalDiscount, subTotal: + quotation.payCondition === "BillSplitCustom" || quotation.payCondition === "SplitCustom" + ? 0 + : quotation.totalPrice, + vatableAmount: quotation.payCondition === "BillSplitCustom" || quotation.payCondition === "SplitCustom" ? 0 : quotation.totalPrice - quotation.totalDiscount - quotation.vatExcluded, + exemptAmount: + quotation.payCondition === "BillSplitCustom" || quotation.payCondition === "SplitCustom" + ? 0 + : quotation.vatExcluded, totalAfterDiscount: quotation.payCondition === "BillSplitCustom" || quotation.payCondition === "SplitCustom" ? 0