Openbravo Issue Tracking System - POS2
View Issue Details
0055413POS2POSpublic2024-03-19 20:492024-05-06 18:03
sdossantos 
Triage Omni OMS 
highmajoralways
closedfixed 
5
pi 
24Q1.3 
No
0055413: Error with Combo Fixed Price in POS 2
When I configure two combos, which are related, it does not calculate the discount correctly.

Attached video - reproduced in https://livebuilds.openbravo.com/context/retail_pos2_modules_pgsql [^]
1 - Create 2 discount - type Combo Fixed Price.
I attach the images of the discounts, the families are the same, that is, configure the same products in the same families of the two discounts.

2 - Do a sales with the 3 product (1 each family) adn see 1 discount - COMBO SINGLE
, then add more products to see the another discount - Combo DUO, and if you continue add more quantity, you see wrong amount

In the video you the final -The amount I expected is 56, since I see a duo combo for $36 and a single for $20 ---> total 56
No tags attached.
blocks defect 0055000 closed Triage Omni OMS Error with Combo Fixed Price in POS 2 
Issue History
2024-05-06 17:57aferrazTypedefect => backport
2024-05-06 17:57aferrazTarget Version => 24Q1.3
2024-05-06 18:03hgbotResolutionopen => fixed
2024-05-06 18:03hgbotStatusscheduled => closed
2024-05-06 18:03hgbotNote Added: 0164122

Notes
(0164122)
hgbot   
2024-05-06 18:03   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.combo [^]
Changeset: cad40cba55cbc9f648ff2820765165d1d5fe5221
Author: Kousalya Ramasamy <kousalya.ramasamy@openbravo.com>
Date: 06-05-2024 18:02:39
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.combo/-/commit/cad40cba55cbc9f648ff2820765165d1d5fe5221 [^]

Fixed ISSUE-55413: Apply next flag condition added to accumDiscounted calc

---
M web/org.openbravo.retail.discounts.combo/app/model/business-logic/discounts-engine/engine/rules/fixed-combo-discount.js
---