Openbravo Issue Tracking System - POS2
View Issue Details
0055000POS2POSpublic2024-03-19 20:492024-05-06 17:57
sdossantos 
Triage Omni OMS 
highmajoralways
closedfixed 
5
pi 
 
No
0055000: 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.
depends on backport 005541224Q2 closed Triage Omni OMS POS2 Error with Combo Fixed Price in POS 2 
depends on backport 005541324Q1.3 closed Triage Omni OMS POS2 Error with Combo Fixed Price in POS 2 
related to defect 0048934 closed rqueralta Retail Modules Combo fixed price discount are not applying well 
png Captura de pantalla -2024-03-19 16-46-51.png (95,945) 2024-03-19 20:49
https://issues.openbravo.com/file_download.php?file_id=19566&type=bug
png

png Captura de pantalla -2024-03-19 16-46-38.png (114,438) 2024-03-19 20:50
https://issues.openbravo.com/file_download.php?file_id=19567&type=bug
png
Issue History
2024-03-19 20:49sdossantosNew Issue
2024-03-19 20:49sdossantosAssigned To => Retail
2024-03-19 20:49sdossantosTriggers an Emergency Pack => No
2024-03-19 20:49sdossantosFile Added: Captura de pantalla -2024-03-19 16-46-51.png
2024-03-19 20:50sdossantosFile Added: Captura de pantalla -2024-03-19 16-46-38.png
2024-03-19 20:50sdossantosNote Added: 0162392
2024-03-20 11:21guilleaerAssigned ToRetail => Triage Omni OMS
2024-03-20 12:46frank_gonzalezNote Added: 0162416
2024-04-03 14:40hgbotNote Added: 0162814
2024-04-08 13:01sdossantosNote Added: 0162918
2024-04-15 10:08aferrazRelationship addedrelated to 0048934
2024-05-03 15:23hgbotNote Added: 0164074
2024-05-03 16:51hgbotNote Added: 0164076
2024-05-06 10:39aferrazNote Deleted: 0162814
2024-05-06 10:39aferrazNote Deleted: 0164076
2024-05-06 12:40hgbotResolutionopen => fixed
2024-05-06 12:40hgbotStatusnew => closed
2024-05-06 12:40hgbotNote Added: 0164108
2024-05-06 12:40hgbotNote Added: 0164109
2024-05-06 17:56aferrazNote Added: 0164121
2024-05-06 17:56aferrazStatusclosed => new
2024-05-06 17:56aferrazResolutionfixed => open
2024-05-06 17:57aferrazStatusnew => scheduled
2024-05-06 17:57aferrazStatusscheduled => resolved
2024-05-06 17:57aferrazResolutionopen => fixed
2024-05-06 17:57aferrazStatusresolved => closed

Notes
(0162392)
sdossantos   
2024-03-19 20:50   
video https://drive.google.com/file/d/1wy1vT43fBzQCTIUCiLgNLVXsrFfenX-X/view?usp=sharing [^]
(0162416)
frank_gonzalez   
2024-03-20 12:46   
Jira: https://openbravo.atlassian.net/browse/RM-12527 [^]
(0162918)
sdossantos   
2024-04-08 13:01   
Any news?
(0164074)
hgbot   
2024-05-03 15:23   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.combo/-/merge_requests/47 [^]
(0164108)
hgbot   
2024-05-06 12:40   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.combo [^]
Changeset: 2c13decd07eb9c994a53aa420f950ecf165235c8
Author: Kousalya Ramasamy <kousalya.ramasamy@openbravo.com>
Date: 06-05-2024 10:40:53
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.combo/-/commit/2c13decd07eb9c994a53aa420f950ecf165235c8 [^]

Fixed ISSUE-55000: 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
---
(0164109)
hgbot   
2024-05-06 12:40   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts.combo/-/merge_requests/47 [^]
(0164121)
aferraz   
2024-05-06 17:56   
Reopened to create backports