Openbravo Issue Tracking System - Retail Modules
View Issue Details
0046988Retail ModulesWeb POSpublic2021-06-04 13:112021-07-23 12:45
0046988: Reproducible in 19Q3 version. Deleted ticket stuck in the EWI because a NaN discount is calculated under some circumstances
The problem is that a Total Discount is calculated for a line of 0 (which already had a User Defined Amount discount). This total discount is calculated as a NaN value. In case this ticket is deleted it will be stuck in the Errors While Importing window with the following message: Error in OrderLoader: JSONObject["amt"] not found.
1. Add Avalanche product to the ticket
2. Add Insect repellent product to the ticket
3. Click on Discount and apply a User Defined Amount discount of 14.50 to the Insect Repellent line (so the amount for this line is 0)
4. Click on Discount and apply a Variable discount total amount of 10 to the ticket

The discount of 10 amount will be distributed for both lines, calculating a NaN discount amount for the second line, which is wrong (attached image from the customer for reference)

No tags attached.
png NaN.png (75,775) 2021-06-04 13:13

patch 0001-Fixed-BUG-46988-If-roundedDiscount-variable-is-undef.patch (2,594) 2021-07-14 14:43
Issue History
2021-06-04 13:11maiteNew Issue
2021-06-04 13:11maiteAssigned To => Retail
2021-06-04 13:11maiteResolution time => 1624572000
2021-06-04 13:11maiteTriggers an Emergency Pack => No
2021-06-04 13:13maiteFile Added: NaN.png
2021-06-04 13:13maiteIssue Monitored: networkb
2021-06-08 10:53marvintmCategoryDiscounts by Total => Web POS
2021-06-17 00:51rqueraltaAssigned ToRetail => rqueralta
2021-06-17 00:51rqueraltaStatusnew => scheduled
2021-06-23 17:32rqueraltaIssue Monitored: rqueralta
2021-07-14 14:43rqueraltaFile Added: 0001-Fixed-BUG-46988-If-roundedDiscount-variable-is-undef.patch
2021-07-23 12:44adrianromeroStatusscheduled => resolved
2021-07-23 12:44adrianromeroResolutionopen => fixed
2021-07-23 12:45adrianromeroReview Assigned To => adrianromero
2021-07-23 12:45adrianromeroStatusresolved => closed
2021-07-23 12:45adrianromeroFixed in Version => RR19Q3.3

There are no notes attached to this issue.