Openbravo Issue Tracking System - Retail Modules | |||||||||||||||||||
View Issue Details | |||||||||||||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||||||||
0039536 | Retail Modules | Discounts and Promotions | public | 2018-10-25 14:02 | 2018-12-27 13:58 | ||||||||||||||
Reporter | inaki_garcia | ||||||||||||||||||
Assigned To | ranjith_qualiantech_com | ||||||||||||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||||||||||||
Status | closed | Resolution | fixed | ||||||||||||||||
Platform | OS | 5 | OS Version | ||||||||||||||||
Product Version | main | ||||||||||||||||||
Target Version | Fixed in Version | RR19Q1 | |||||||||||||||||
Merge Request Status | |||||||||||||||||||
Review Assigned To | marvintm | ||||||||||||||||||
OBNetwork customer | No | ||||||||||||||||||
Support ticket | |||||||||||||||||||
Regression level | Packaging and release | ||||||||||||||||||
Regression date | 2018-01-12 | ||||||||||||||||||
Regression introduced in release | main | ||||||||||||||||||
Regression introduced by commit | https://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.bytotal/rev/edd903ba2305#l8.75 [^] | ||||||||||||||||||
Triggers an Emergency Pack | No | ||||||||||||||||||
Summary | 0039536: [RR18Q4] Total Amount discounts get removed when splitting lines | ||||||||||||||||||
Description | A ticket with a Total Amount type discount applied, which shows on all lines, gets removed when using the Split Lines feature. Said discount cannot be reapplied again unless the ticket is removed. Further observations after the steps to reproduce are executed: - Adding a product which requires providing extra contact info ("Item Declaration" popup appears) throws the following error and makes the POS unusable (check the attached "2018-10-11 13-33-09.png" screenshot and the following error log message). 'Contact customer info for product' module is required to be installed and the 'WEB POS Show BusinessPartner Birth Information' set to 'Y' to execute this step: Uncaught TypeError: discountRule.set is not a function at 2de4b76c91e46e250b8a916b152d94d1.js:3516 at Array.forEach (<anonymous>) at Function.b.each.b.forEach (underscore-1.3.3.min.js:11) at Object.manualByTotalPromotionsExecutor (2de4b76c91e46e250b8a916b152d94d1.js:3516) at Object.implementation (2de4b76c91e46e250b8a916b152d94d1.js:3516) at G.d.applyRule (2de4b76c91e46e250b8a916b152d94d1.js:1915) at G.d.nextAction (2de4b76c91e46e250b8a916b152d94d1.js:1903) at G.d.<anonymous> (2de4b76c91e46e250b8a916b152d94d1.js:1903) at g.Model.trigger (backbone-0.9.2.min.js:9) at 2de4b76c91e46e250b8a916b152d94d1.js:1912 - If another type of discount is applied (such as "Fixed Percentage Disount" type discount) for one or more lines, the Total Amount discount reappears only for that/those line(s) (check the attached "Screenshot from 2018-10-25 14-08-11.png" screenshot) | ||||||||||||||||||
Steps To Reproduce | Precondition: the "Discount rules for Retail by total" module is required to be installed and a Total Amount type discount configured. Use this test case in as a guide to configure a Total Amount discount: https://testlink.openbravo.com/testlink/linkto.php?tprojectPrefix=Communit&item=testcase&id=Communit-10507 [^] 0. Log into the WebPOS 1. Add some products to the ticket to insert several lines and quantities 2. Open the "Receipt disounts" popup by selecting it from the dropdown menu 3. Apply the previously created Total Amount to the ticket by selecting it and clicking on "Apply" 4. Select a line with Quantity greater than 1, and click on the "Split" option from the right pane 5. Click "Apply" on the "Split" popup 6. NOTICE that the applied discount has dissappeared from all lines Steps are reproduced in the attached video | ||||||||||||||||||
Proposed Solution | |||||||||||||||||||
Additional Information | |||||||||||||||||||
Tags | No tags attached. | ||||||||||||||||||
Relationships |
| ||||||||||||||||||
Attached Files | ![]() https://issues.openbravo.com/file_download.php?file_id=12321&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=12322&type=bug ![]() https://issues.openbravo.com/file_download.php?file_id=12323&type=bug | ||||||||||||||||||
Issue History | |||||||||||||||||||
Date Modified | Username | Field | Change | ||||||||||||||||
2018-10-25 14:02 | inaki_garcia | New Issue | |||||||||||||||||
2018-10-25 14:02 | inaki_garcia | Assigned To | => Retail | ||||||||||||||||
2018-10-25 14:02 | inaki_garcia | OBNetwork customer | => No | ||||||||||||||||
2018-10-25 14:02 | inaki_garcia | Triggers an Emergency Pack | => No | ||||||||||||||||
2018-10-25 14:04 | inaki_garcia | File Added: ScreenRecording 2018-10-25 at 13.01.54.avi | |||||||||||||||||
2018-10-25 14:06 | inaki_garcia | File Added: 2018-10-11 13-33-09.png | |||||||||||||||||
2018-10-25 14:08 | inaki_garcia | File Added: Screenshot from 2018-10-25 14-08-11.png | |||||||||||||||||
2018-10-25 14:09 | inaki_garcia | Description Updated | bug_revision_view_page.php?rev_id=17857#r17857 | ||||||||||||||||
2018-10-25 14:10 | inaki_garcia | Description Updated | bug_revision_view_page.php?rev_id=17858#r17858 | ||||||||||||||||
2018-10-25 14:11 | inaki_garcia | Description Updated | bug_revision_view_page.php?rev_id=17859#r17859 | ||||||||||||||||
2018-11-23 11:03 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com | ||||||||||||||||
2018-11-23 11:04 | ranjith_qualiantech_com | Status | new => scheduled | ||||||||||||||||
2018-12-06 14:22 | ranjith_qualiantech_com | Regression level | => Packaging and release | ||||||||||||||||
2018-12-06 14:22 | ranjith_qualiantech_com | Regression date | => 2018-01-12 | ||||||||||||||||
2018-12-06 14:22 | ranjith_qualiantech_com | Regression introduced in release | => main | ||||||||||||||||
2018-12-06 14:22 | ranjith_qualiantech_com | Regression introduced by commit | => https://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.bytotal/rev/edd903ba2305#l8.75 [^] | ||||||||||||||||
2018-12-06 14:22 | hgbot | Checkin | |||||||||||||||||
2018-12-06 14:22 | hgbot | Note Added: 0108318 | |||||||||||||||||
2018-12-07 04:14 | hgbot | Checkin | |||||||||||||||||
2018-12-07 04:14 | hgbot | Note Added: 0108320 | |||||||||||||||||
2018-12-07 04:36 | ranjith_qualiantech_com | Regression level | Packaging and release => | ||||||||||||||||
2018-12-07 04:36 | ranjith_qualiantech_com | Regression date | 2018-01-12 => | ||||||||||||||||
2018-12-07 04:36 | ranjith_qualiantech_com | Regression introduced in release | main => | ||||||||||||||||
2018-12-07 04:36 | ranjith_qualiantech_com | Regression introduced by commit | https://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.bytotal/rev/edd903ba2305#l8.75 [^] => | ||||||||||||||||
2018-12-17 07:03 | hgbot | Checkin | |||||||||||||||||
2018-12-17 07:03 | hgbot | Note Added: 0108627 | |||||||||||||||||
2018-12-17 09:08 | hgbot | Checkin | |||||||||||||||||
2018-12-17 09:08 | hgbot | Note Added: 0108628 | |||||||||||||||||
2018-12-17 09:08 | hgbot | Checkin | |||||||||||||||||
2018-12-17 09:08 | hgbot | Note Added: 0108629 | |||||||||||||||||
2018-12-17 10:29 | ranjith_qualiantech_com | Regression level | => Packaging and release | ||||||||||||||||
2018-12-17 10:29 | ranjith_qualiantech_com | Regression date | => 2018-01-12 | ||||||||||||||||
2018-12-17 10:29 | ranjith_qualiantech_com | Regression introduced in release | => main | ||||||||||||||||
2018-12-17 10:29 | ranjith_qualiantech_com | Regression introduced by commit | => https://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.bytotal/rev/edd903ba2305#l8.75 [^] | ||||||||||||||||
2018-12-17 10:29 | ranjith_qualiantech_com | Note Added: 0108631 | |||||||||||||||||
2018-12-17 10:29 | ranjith_qualiantech_com | Status | scheduled => resolved | ||||||||||||||||
2018-12-17 10:29 | ranjith_qualiantech_com | Resolution | open => fixed | ||||||||||||||||
2018-12-24 09:46 | marvintm | Note Added: 0108727 | |||||||||||||||||
2018-12-24 09:46 | marvintm | Status | resolved => new | ||||||||||||||||
2018-12-24 09:46 | marvintm | Resolution | fixed => open | ||||||||||||||||
2018-12-26 08:37 | ranjith_qualiantech_com | Status | new => scheduled | ||||||||||||||||
2018-12-27 13:55 | marvintm | Status | scheduled => resolved | ||||||||||||||||
2018-12-27 13:55 | marvintm | Fixed in Version | => RR19Q1 | ||||||||||||||||
2018-12-27 13:55 | marvintm | Resolution | open => fixed | ||||||||||||||||
2018-12-27 13:56 | marvintm | Review Assigned To | => marvintm | ||||||||||||||||
2018-12-27 13:56 | marvintm | Note Added: 0108768 | |||||||||||||||||
2018-12-27 13:56 | marvintm | Status | resolved => closed | ||||||||||||||||
2018-12-27 13:58 | marvintm | Relationship added | related to 0039858 | ||||||||||||||||
2019-01-28 07:22 | ranjith_qualiantech_com | Relationship added | related to 0040007 |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|