Openbravo Issue Tracking System - Retail Modules | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0039392 | Retail Modules | Discounts and Promotions | public | 2018-10-02 17:01 | 2018-11-22 10:27 |
Reporter | lbressan | ||||
Assigned To | ranjith_qualiantech_com | ||||
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | 5 | OS Version | ||
Product Version | RR18Q1.1 | ||||
Target Version | Fixed in Version | RR19Q1 | |||
Merge Request Status | |||||
Review Assigned To | marvintm | ||||
OBNetwork customer | OBPS | ||||
Support ticket | 4574 | ||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0039392: Division by zero error when several products are included in both a pack discount and another discount. | ||||
Description | When products that belong to a pack discount, are also included in a higher priority discount, a "division by zero" error may occur. | ||||
Steps To Reproduce | Define a Pack discount with more than 1 product: Pack discount: - Apply next discount = Yes - Priority = 2 - Product A - Product B Define a Price Adjustment discount with the same products Price Adjustment discount: - Apply next discount = Yes - Priority = 1 - Product A - Product B Create a Sales Order and press the "Add Pack" button. Select the "Pack discount" just created. A division by zero error should display, while executing OBDISC_Pack function. The same error is visible if manually adding pack products and then Booking the Sales Order. The issue is in the OBDISC_Pack, with a variable v_totalAmount. This variable starts as 0 and gets filled in a loop, but if this loops is not executed, then a division by zero will occur. With the above configuration, for one specific orderline, the loop won't be executed and then the error happens. | ||||
Proposed Solution | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=12239&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=12240&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=12241&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=12242&type=bug | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2018-10-02 17:01 | lbressan | New Issue | |||
2018-10-02 17:01 | lbressan | Assigned To | => Retail | ||
2018-10-02 17:01 | lbressan | OBNetwork customer | => Yes | ||
2018-10-02 17:01 | lbressan | Support ticket | => 4574 | ||
2018-10-02 17:01 | lbressan | Resolution time | => 1540245600 | ||
2018-10-02 17:01 | lbressan | Triggers an Emergency Pack | => No | ||
2018-10-03 08:56 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | ||
2018-10-03 08:56 | ranjith_qualiantech_com | Status | new => scheduled | ||
2018-10-03 12:31 | jorge-garcia | Note Added: 0107135 | |||
2018-10-03 12:31 | jorge-garcia | Assigned To | ranjith_qualiantech_com => lbressan | ||
2018-10-03 12:32 | jorge-garcia | Status | scheduled => feedback | ||
2018-10-03 12:32 | jorge-garcia | Note Edited: 0107135 | bug_revision_view_page.php?bugnote_id=0107135#r17734 | ||
2018-10-04 21:17 | lbressan | File Added: Screen Shot 2018-10-04 at 16.14.38.png | |||
2018-10-04 21:17 | lbressan | File Added: Screen Shot 2018-10-04 at 16.14.52.png | |||
2018-10-04 21:18 | lbressan | File Added: Screen Shot 2018-10-04 at 16.15.13.png | |||
2018-10-04 21:18 | lbressan | File Added: Screen Shot 2018-10-04 at 16.15.26.png | |||
2018-10-04 21:22 | lbressan | Note Added: 0107163 | |||
2018-10-04 21:22 | lbressan | Assigned To | lbressan => jorge-garcia | ||
2018-10-04 21:23 | lbressan | Status | feedback => new | ||
2018-10-04 21:23 | lbressan | Note Edited: 0107163 | bug_revision_view_page.php?bugnote_id=0107163#r17743 | ||
2018-10-10 20:23 | lbressan | OBNetwork customer | OBPS => Gold | ||
2018-10-16 08:39 | jorge-garcia | Assigned To | jorge-garcia => Retail | ||
2018-10-16 11:36 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | ||
2018-10-16 11:36 | ranjith_qualiantech_com | Status | new => scheduled | ||
2018-10-18 16:07 | ngarcia | OBNetwork customer | Gold => OBPS | ||
2018-11-12 13:15 | mgonzalezh | Issue Monitored: mgonzalezh | |||
2018-11-13 07:37 | hgbot | Checkin | |||
2018-11-13 07:37 | hgbot | Note Added: 0107866 | |||
2018-11-13 07:37 | hgbot | Status | scheduled => resolved | ||
2018-11-13 07:37 | hgbot | Resolution | open => fixed | ||
2018-11-13 07:37 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/816f4f4497b14682e2029d6c603d72e7870e7c48 [^] | ||
2018-11-13 10:59 | hgbot | Checkin | |||
2018-11-13 10:59 | hgbot | Note Added: 0107877 | |||
2018-11-14 11:16 | ranjith_qualiantech_com | Note Added: 0107902 | |||
2018-11-14 11:16 | ranjith_qualiantech_com | Status | resolved => new | ||
2018-11-14 11:16 | ranjith_qualiantech_com | Resolution | fixed => open | ||
2018-11-14 11:16 | ranjith_qualiantech_com | Status | new => scheduled | ||
2018-11-16 13:01 | hgbot | Checkin | |||
2018-11-16 13:01 | hgbot | Note Added: 0107948 | |||
2018-11-16 13:01 | hgbot | Status | scheduled => resolved | ||
2018-11-16 13:01 | hgbot | Resolution | open => fixed | ||
2018-11-16 13:01 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/816f4f4497b14682e2029d6c603d72e7870e7c48 [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/2e5923e545dfca37a1d8f043614d95bf72f28203 [^] | ||
2018-11-16 13:50 | marvintm | Review Assigned To | => marvintm | ||
2018-11-16 13:50 | marvintm | Status | resolved => closed | ||
2018-11-16 13:50 | marvintm | Fixed in Version | => RR19Q1 | ||
2018-11-22 10:27 | hgbot | Checkin | |||
2018-11-22 10:27 | hgbot | Note Added: 0108052 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|