Openbravo Issue Tracking System - Retail Modules
View Issue Details
0051035Retail ModulesDiscounts and Promotionspublic2022-11-29 18:202023-01-04 07:42
rmagnoli 
radhakrishnan 
highmajoralways
closedfixed 
5
pi 
RR23Q1 
No
0051035: Wrong baseGrossUnitPrice when applying a manual price modification.
The base gross unit price is set wrong on the second line JSON of an order when a discount is applied.
Here is an explicative video: https://www.youtube.com/watch?v=PPu2tQg_cwg [^]
No tags attached.
Issue History
2022-11-29 18:20rmagnoliNew Issue
2022-11-29 18:20rmagnoliAssigned To => Retail
2022-11-29 18:20rmagnoliTriggers an Emergency Pack => No
2022-11-29 18:22PracticsIssue Monitored: Practics
2022-11-30 06:10radhakrishnanAssigned ToRetail => radhakrishnan
2022-11-30 06:11radhakrishnanStatusnew => scheduled
2022-12-02 06:51hgbotNote Added: 0144325
2023-01-04 07:42hgbotResolutionopen => fixed
2023-01-04 07:42hgbotStatusscheduled => closed
2023-01-04 07:42hgbotNote Added: 0145143
2023-01-04 07:42hgbotFixed in Version => RR23Q1
2023-01-04 07:42hgbotNote Added: 0145144

Notes
(0144325)
hgbot   
2022-12-02 06:51   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/75 [^]
(0145143)
hgbot   
2023-01-04 07:42   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/merge_requests/75 [^]
(0145144)
hgbot   
2023-01-04 07:42   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts [^]
Changeset: cbf63b2a54faced39d101ec7d5464d02ec35671b
Author: Radhakrishnan Seeman <radhakrishnan@qualiantech.com>
Date: 04-01-2023 06:42:12
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.discounts/-/commit/cbf63b2a54faced39d101ec7d5464d02ec35671b [^]

Fixed ISSUE-51035: AccumulatedUnitDiscount should be calculated for each discount line
* BaseGrossUnitPrice of discounts line should be calculated by accumulatedUnitDiscount for
  each discount line

---
M web/org.openbravo.retail.discounts/app/model/business-logic/discounts-engine/interface/discount-posinterface.js
---