Openbravo Issue Tracking System - Retail Modules
View Issue Details
0053230Retail ModulesDiscounts and Promotionspublic2023-08-17 14:442023-08-24 09:56
sofidossant 
sreehari 
highmajoralways
closedfixed 
5
pi 
RR23Q4 
No
0053230: Add baseGrossUnitPrice field of the promotion in WEBPOS paid orders
When we add a discounted product the baseGrossUnitPrice field is in the promotion but when we finish the order and load it, we don't have the baseGrossUnitPrice field

VIDEO: https://www.youtube.com/watch?v=MwLXvzdWcPs&ab_channel=CristianAdrian%7CPracticsBS [^]
1- Open WEBPos
2 - Add product with discount (checked in the console the promotion in the line - field baseGrossUnitPrice)
3- Finish the sales order
4 - Open the sales order and check in the console, if the promotions has the field baseGrossUnitPrice.
--- a/modules/org.openbravo.retail.posterminal/src/org/openbravo/retail/posterminal/PaidReceipts.java 2023-07-07 11:36:51.000000000 +0200
+++ b/modules/org.openbravo.retail.posterminal/src/org/openbravo/retail/posterminal/PaidReceipts.java 2023-08-17 13:35:27.252606000 +0200
@@ -326,6 +326,7 @@
             jsonPromo.put("actualAmt", promotion.getTotalAmount());
             jsonPromo.put("hidden", BigDecimal.ZERO.equals(displayedAmount));
             jsonPromo.put("displayedTotalAmount", promotion.getDisplayedTotalAmount());
+ jsonPromo.put("baseGrossUnitPrice", promotion.getBaseGrossUnitPrice());
             jsonPromo.put("qtyOffer", promotion.getObdiscQtyoffer());
             if (promotion.getObdiscIdentifier() != null) {
               jsonPromo.put("identifier", promotion.getObdiscIdentifier());
No tags attached.
diff PaidReceipts.diff (826) 2023-08-17 14:44
https://issues.openbravo.com/file_download.php?file_id=18878&type=bug
Issue History
2023-08-17 14:44sofidossantNew Issue
2023-08-17 14:44sofidossantAssigned To => Retail
2023-08-17 14:44sofidossantFile Added: PaidReceipts.diff
2023-08-17 14:44sofidossantTriggers an Emergency Pack => No
2023-08-17 17:40PracticsIssue Monitored: Practics
2023-08-18 15:37sreehariAssigned ToRetail => sreehari
2023-08-19 06:42sreehariStatusnew => scheduled
2023-08-19 10:57hgbotNote Added: 0153689
2023-08-24 09:56hgbotNote Added: 0153881
2023-08-24 09:56hgbotResolutionopen => fixed
2023-08-24 09:56hgbotStatusscheduled => closed
2023-08-24 09:56hgbotFixed in Version => RR23Q4
2023-08-24 09:56hgbotNote Added: 0153882

Notes
(0153689)
hgbot   
2023-08-19 10:57   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1309 [^]
(0153881)
hgbot   
2023-08-24 09:56   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/merge_requests/1309 [^]
(0153882)
hgbot   
2023-08-24 09:56   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal [^]
Changeset: 1cccfe4887b6bc123381a7e2fbac4d21f661c298
Author: Sreehari Venkataraman <sreehari@qualiantech.com>
Date: 24-08-2023 07:56:09
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.posterminal/-/commit/1cccfe4887b6bc123381a7e2fbac4d21f661c298 [^]

Fixes ISSUE-53230: Added baseGrossUnitPrice in promotions of lines

---
M src/org/openbravo/retail/posterminal/PaidReceipts.java
---