From 9bb9281dd63a364639240423ab45c69b63ea98d2 Mon Sep 17 00:00:00 2001 From: Suherdy Yacob Date: Fri, 5 Jun 2026 13:29:10 +0700 Subject: [PATCH] fix: multiply combo total price by quantity when calculating loyalty points to ensure accurate reward values --- static/src/app/pos_order_patch.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/src/app/pos_order_patch.js b/static/src/app/pos_order_patch.js index cadaf6b..c78020b 100644 --- a/static/src/app/pos_order_patch.js +++ b/static/src/app/pos_order_patch.js @@ -98,7 +98,7 @@ patch(PosOrder.prototype, { (sum, line) => sum + (line.combo_line_ids.length > 0 - ? line.comboTotalPriceWithoutTax + ? line.comboTotalPriceWithoutTax * line.getQuantity() : line.prices.total_excluded), 0 ); @@ -143,7 +143,7 @@ patch(PosOrder.prototype, { } const priceToUse = rule.money_reward_point_mode === "before_tax" - ? (line.combo_line_ids.length > 0 ? line.comboTotalPriceWithoutTax : line.prices.total_excluded) + ? (line.combo_line_ids.length > 0 ? line.comboTotalPriceWithoutTax * line.getQuantity() : line.prices.total_excluded) : (line.combo_line_ids.length > 0 ? line.comboTotalPrice : line.prices.total_included); orderedProductPaid += priceToUse;