Openbravo Issue Tracking System - Retail Modules | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0046988 | Retail Modules | Web POS | public | 2021-06-04 13:11 | 2021-07-23 12:45 |
| Reporter | maite | ||||
| Assigned To | rqueralta | ||||
| Priority | urgent | Severity | major | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Platform | OS | 5 | OS Version | ||
| Product Version | |||||
| Target Version | Fixed in Version | RR19Q3.3 | |||
| Merge Request Status | |||||
| Review Assigned To | adrianromero | ||||
| OBNetwork customer | Gold | ||||
| Support ticket | 24956 | ||||
| Regression level | |||||
| Regression date | |||||
| Regression introduced in release | |||||
| Regression introduced by commit | |||||
| Triggers an Emergency Pack | No | ||||
| Summary | 0046988: Reproducible in 19Q3 version. Deleted ticket stuck in the EWI because a NaN discount is calculated under some circumstances | ||||
| Description | 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. | ||||
| Steps To Reproduce | 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) | ||||
| Proposed Solution | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | https://issues.openbravo.com/file_download.php?file_id=15887&type=bug https://issues.openbravo.com/file_download.php?file_id=16010&type=bug | ||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2021-06-04 13:11 | maite | New Issue | |||
| 2021-06-04 13:11 | maite | Assigned To | => Retail | ||
| 2021-06-04 13:11 | maite | OBNetwork customer | => Gold | ||
| 2021-06-04 13:11 | maite | Support ticket | => 24956 | ||
| 2021-06-04 13:11 | maite | Resolution time | => 1624572000 | ||
| 2021-06-04 13:11 | maite | Triggers an Emergency Pack | => No | ||
| 2021-06-04 13:13 | maite | File Added: NaN.png | |||
| 2021-06-04 13:13 | maite | Issue Monitored: networkb | |||
| 2021-06-08 10:53 | marvintm | Category | Discounts by Total => Web POS | ||
| 2021-06-17 00:51 | rqueralta | Assigned To | Retail => rqueralta | ||
| 2021-06-17 00:51 | rqueralta | Status | new => scheduled | ||
| 2021-06-23 17:32 | rqueralta | Issue Monitored: rqueralta | |||
| 2021-07-14 14:43 | rqueralta | File Added: 0001-Fixed-BUG-46988-If-roundedDiscount-variable-is-undef.patch | |||
| 2021-07-23 12:44 | adrianromero | Status | scheduled => resolved | ||
| 2021-07-23 12:44 | adrianromero | Resolution | open => fixed | ||
| 2021-07-23 12:45 | adrianromero | Review Assigned To | => adrianromero | ||
| 2021-07-23 12:45 | adrianromero | Status | resolved => closed | ||
| 2021-07-23 12:45 | adrianromero | Fixed in Version | => RR19Q3.3 | ||
| There are no notes attached to this issue. |