Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0034299 | Retail Modules | Discounts and Promotions | public | 2016-10-26 09:28 | 2016-12-16 08:40 |
|
Reporter | prakashmurugesan88 | |
Assigned To | mario_castello | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | RR17Q1 | |
Merge Request Status | |
Review Assigned To | marvintm |
OBNetwork customer | OBPS |
Support ticket | |
Regression level | Production - QA Approved |
Regression date | 2016-09-27 |
Regression introduced in release | RR16Q3 |
Regression introduced by commit | https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/97c95e2c63c9 [^] |
Triggers an Emergency Pack | No |
|
Summary | 0034299: [SER-QA 1942] Error while deleting a receipt that has line with discounts applied. |
Description | It appears an error in the console "Divide by 0" when deleting a receipt that has line with discounts applied.
Error occurs in the following line,
https://code.openbravo.com/erp/pmods-branches/org.openbravo.retail.discounts-but-dev/file/6c275711a250/web/org.openbravo.retail.discounts/js/promotion-discount.js#l36 [^] |
Steps To Reproduce | Steps to reproduce in live builds,
Backend:
Set Preference "Web POS Save Removed Tickets" = "Y".
POS Terminal:
create a new receipt.
Add a product GPS handheld.
Ensure discount GPS_10_per is applied to the line.
Click on thrash icon and confirm deletion of the receipt.
Check in browser console "Divide by 0" error will be displayed. |
Proposed Solution | |
Additional Information | |
Tags | SER-QA |
Relationships | depends on | backport | 0034388 | RR16Q4 | closed | mario_castello | [SER-QA 1942] Error while deleting a receipt that has line with discounts applied. | has duplicate | defect | 0034387 | | closed | Retail | [RR16Q4] Close a Layaway with discounts in POS throws an error: "Cannot calculate receipt taxes" | related to | defect | 0034372 | | closed | ranjith_qualiantech_com | [RR16Q4] Persistent deleted tickets do not keep manual discounts |
|
Attached Files | DivedByZeroSuggestedFixScenario2.patch (1,182) 2016-10-28 10:21 https://issues.openbravo.com/file_download.php?file_id=9984&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2016-10-26 09:28 | prakashmurugesan88 | New Issue | |
2016-10-26 09:28 | prakashmurugesan88 | Assigned To | => Retail |
2016-10-26 09:28 | prakashmurugesan88 | OBNetwork customer | => No |
2016-10-26 09:28 | prakashmurugesan88 | Triggers an Emergency Pack | => No |
2016-10-26 09:50 | adrianromero | OBNetwork customer | No => Yes |
2016-10-26 09:50 | adrianromero | Resolution time | => 1478646000 |
2016-10-26 09:50 | adrianromero | Summary | Error while deleting a receipt that has line with discounts applied. => [SER-QA 1942] Error while deleting a receipt that has line with discounts applied. |
2016-10-26 09:50 | adrianromero | Description Updated | bug_revision_view_page.php?rev_id=13483#r13483 |
2016-10-26 09:50 | adrianromero | Tag Attached: SER-QA | |
2016-10-26 14:08 | prakashmurugesan88 | Description Updated | bug_revision_view_page.php?rev_id=13489#r13489 |
2016-10-27 15:58 | marvintm | Assigned To | Retail => prakashmurugesan88 |
2016-10-27 15:58 | marvintm | Note Added: 0090961 | |
2016-10-27 15:58 | marvintm | Status | new => feedback |
2016-10-28 10:20 | prakashmurugesan88 | Note Added: 0090983 | |
2016-10-28 10:21 | prakashmurugesan88 | File Added: DivedByZeroSuggestedFixScenario2.patch | |
2016-10-28 10:21 | prakashmurugesan88 | Status | feedback => new |
2016-10-28 10:22 | prakashmurugesan88 | Assigned To | prakashmurugesan88 => marvintm |
2016-10-28 10:23 | prakashmurugesan88 | Note Edited: 0090983 | bug_revision_view_page.php?bugnote_id=0090983#r13503 |
2016-10-28 21:12 | mario_castello | Assigned To | marvintm => mario_castello |
2016-10-28 21:12 | mario_castello | Status | new => acknowledged |
2016-10-28 21:13 | mario_castello | Status | acknowledged => scheduled |
2016-10-31 21:58 | hgbot | Checkin | |
2016-10-31 21:58 | hgbot | Note Added: 0091029 | |
2016-10-31 21:58 | hgbot | Status | scheduled => resolved |
2016-10-31 21:58 | hgbot | Resolution | open => fixed |
2016-10-31 21:58 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/8eec55651e77c64fb85720d618279c9f01e8e714 [^] |
2016-10-31 21:59 | hgbot | Checkin | |
2016-10-31 21:59 | hgbot | Note Added: 0091030 | |
2016-11-01 08:53 | marvintm | Review Assigned To | => marvintm |
2016-11-01 08:53 | marvintm | Status | resolved => closed |
2016-11-01 08:53 | marvintm | Fixed in Version | => RR17Q1 |
2016-11-04 10:11 | marvintm | Status | closed => new |
2016-11-04 10:11 | marvintm | Resolution | fixed => open |
2016-11-04 10:11 | marvintm | Fixed in Version | RR17Q1 => |
2016-11-04 10:11 | marvintm | Status | new => scheduled |
2016-11-04 10:11 | marvintm | Status | scheduled => resolved |
2016-11-04 10:11 | marvintm | Fixed in Version | => RR17Q1 |
2016-11-04 10:11 | marvintm | Resolution | open => fixed |
2016-11-04 10:11 | marvintm | Status | resolved => closed |
2016-11-04 10:11 | marvintm | Relationship added | has duplicate 0034387 |
2016-11-04 10:12 | marvintm | Status | closed => new |
2016-11-04 10:12 | marvintm | Resolution | fixed => open |
2016-11-04 10:12 | marvintm | Fixed in Version | RR17Q1 => |
2016-11-04 10:13 | marvintm | Status | new => scheduled |
2016-11-04 10:13 | marvintm | Status | scheduled => resolved |
2016-11-04 10:13 | marvintm | Resolution | open => fixed |
2016-11-04 10:13 | marvintm | Status | resolved => closed |
2016-11-04 10:13 | marvintm | Fixed in Version | => RR17Q1 |
2016-11-09 11:47 | ranjith_qualiantech_com | Relationship added | related to 0034372 |
2016-11-16 18:19 | mario_castello | Regression level | => Production - QA Approved |
2016-11-16 18:19 | mario_castello | Regression date | => 2016-09-27 |
2016-11-16 18:19 | mario_castello | Regression introduced in release | => RR16Q3 |
2016-11-16 18:19 | mario_castello | Regression introduced by commit | => https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/97c95e2c63c9 [^] |
2016-12-06 10:54 | hgbot | Checkin | |
2016-12-06 10:54 | hgbot | Note Added: 0092129 | |
2016-12-09 14:58 | hgbot | Checkin | |
2016-12-09 14:58 | hgbot | Note Added: 0092250 | |
2016-12-09 15:03 | Orekaria | Note Deleted: 0092129 | |
2016-12-09 15:19 | hgbot | Checkin | |
2016-12-09 15:19 | hgbot | Note Added: 0092251 | |
2016-12-16 08:40 | hgbot | Checkin | |
2016-12-16 08:40 | hgbot | Note Added: 0092443 | |
Notes |
|
|
We have been unable to reproduce the issue with the current code in pi. There have been several fixes in the last days which affected the Save Delete Tickets project, so it's possible that one of them fixed this problem. Can you confirm please? |
|
|
|
Its working fine for the above mentioned scenario.
But however there is another scenario where similar issue occurs.
Steps to reproduce this issue in live builds,
Backend:
Set Preference "Web POS Save Removed Tickets" = "Y".
POS Terminal:
create a new receipt.
Add a product GPS handheld.
Ensure discount GPS_10_per is applied to the line.
Pay the receipt.
From menu select "Verified Returns".
Select the receipt created above and add all products.
Now click on thrash icon and confirm deletion of the receipt.
Shows "Divide by 0" error message.
Suggested Fix:
Please check the attachement(DivedByZeroSuggestedFixScenario2.patch) for suggested fix.
|
|
|
(0091029)
|
hgbot
|
2016-10-31 21:58
|
|
|
|
(0091030)
|
hgbot
|
2016-10-31 21:59
|
|
Repository: tools/automation/pi-mobile
Changeset: 1c4a6b8c3b6b02156d92e7c9ac9fd09e0691cdf4
Author: Mario Castello <mario.castello <at> peoplewalking.com>
Date: Fri Oct 28 13:02:10 2016 -0600
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/1c4a6b8c3b6b02156d92e7c9ac9fd09e0691cdf4 [^]
Related to issue 34299: Added automated test I34299_VerifiedReturnsWithDiscountAndSaveRemoveTicket
---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/returns/I34299_VerifiedReturnsWithDiscountAndSaveRemoveTicket.java
---
|
|
|
(0092250)
|
hgbot
|
2016-12-09 14:58
|
|
|
|
(0092251)
|
hgbot
|
2016-12-09 15:19
|
|
|
|
(0092443)
|
hgbot
|
2016-12-16 08:40
|
|
|