Openbravo Issue Tracking System - POS2
View Issue Details
0055412POS2POSpublic2024-03-19 20:492024-05-07 09:11
sdossantos 
Triage Omni OMS 
highmajoralways
closedfixed 
5
pi 
24Q2 
No
0055412: 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 => 24Q2
2024-05-07 09:11hgbotResolutionopen => fixed
2024-05-07 09:11hgbotStatusscheduled => closed
2024-05-07 09:11hgbotNote Added: 0164127

Notes
(0164127)
hgbot   
2024-05-07 09:11   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.combo [^]
Changeset: 27c5ed3ec534a153ecbfee9925cb4a5ec7161337
Author: Kousalya Ramasamy <kousalya.ramasamy@openbravo.com>
Date: 07-05-2024 09:07:41
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.combo/-/commit/27c5ed3ec534a153ecbfee9925cb4a5ec7161337 [^]

Fixed ISSUE-55412: 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
---