Openbravo Issue Tracking System - Retail Modules
View Issue Details
0041553Retail ModulesWeb POSpublic2019-08-06 10:092019-08-12 12:03
nicolasuriz 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR19Q4 
marvintm
No
0041553: A JS error is displayed while doing a C&R with product lines and discounts applied to them.
A JS error is displayed while doing a C&R with product lines and discounts applied to them. It happens while trying to delete one of the orderlines.
1. Create two discounts and promotions records, one of "User defined amount" and another of "User defined line amount" and a discount category related to it.
2. Login to WebPOS
3. Create a layaway with 3 different products
4. Add the "user defined line amount" discount for the two firsts product lines and "User defined amount" for the last order line.
5. Synch the layaway.
6. Open again the layaway and do a C&R
7. Try to delete the first order line
8. Check that a JS error is displayed and the screen gets stuck
No tags attached.
Issue History
2019-08-06 10:09nicolasurizNew Issue
2019-08-06 10:09nicolasurizAssigned To => Retail
2019-08-06 10:09nicolasurizResolution time => 1566165600
2019-08-06 10:09nicolasurizTriggers an Emergency Pack => No
2019-08-06 10:12nicolasurizSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=19259#r19259
2019-08-06 12:23nicolasurizReproducibilityhave not tried => always
2019-08-06 14:53ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2019-08-06 15:30ranjith_qualiantech_comStatusnew => scheduled
2019-08-12 08:35hgbotCheckin
2019-08-12 08:35hgbotNote Added: 0113938
2019-08-12 08:35hgbotStatusscheduled => resolved
2019-08-12 08:35hgbotResolutionopen => fixed
2019-08-12 08:35hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/dcfa1957bb650dcb687e4537db1115dfbd7e5d15 [^]
2019-08-12 12:03marvintmReview Assigned To => marvintm
2019-08-12 12:03marvintmStatusresolved => closed
2019-08-12 12:03marvintmFixed in Version => RR19Q4

Notes
(0113938)
hgbot   
2019-08-12 08:35   
Repository: erp/pmods/org.openbravo.retail.discounts
Changeset: dcfa1957bb650dcb687e4537db1115dfbd7e5d15
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Mon Aug 12 12:05:20 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/dcfa1957bb650dcb687e4537db1115dfbd7e5d15 [^]

Fixed issue 41553 : User Line discount amount should not be recalculated when loading paid receipt

* When loading paid receipt, user lineDiscount amt will be lost, because it will calculated when adding discount.
  So, amount should not be calculated again

---
M web/org.openbravo.retail.discounts/js/promotion-manual.js
---