Openbravo Issue Tracking System - Retail Modules |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0040666 | Retail Modules | Discounts and Promotions | public | 2019-04-24 11:09 | 2019-05-30 15:52 |
|
Reporter | Leyre | |
Assigned To | ranjith_qualiantech_com | |
Priority | high | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | RR19Q3 | |
Merge Request Status | |
Review Assigned To | jorge-garcia |
OBNetwork customer | Gold |
Support ticket | 9342 |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0040666: Several discounts do not apply to all lines |
Description | Several discounts do not apply to all lines |
Steps To Reproduce | BACKEND:
https://livebuilds.openbravo.com/retail_modules_pgsql_pi [^]
1. Define a discount type "User Defined Amount"
2. Define a discount type "Variable Discount per Total Amount"
WEB POS:
https://livebuilds.openbravo.com/retail_modules_pgsql_pi/web/org.openbravo.retail.posterminal/?terminal=VBS-1 [^]
1. Add three units of a product, for example: Avalanche transceiver. This product must be marked as "non grouped"
2. Add the first defined discount -> User Defined Amount
3. Add the second defined discount -> Variable Discount per Total Amount
Verify that the last discount does not apply to all lines. |
Proposed Solution | |
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0040812 | | closed | ranjith_qualiantech_com | If a manual discount is applied to an order, it is not possible to apply it again. It will remain the first discount | causes | defect | 0041097 | | closed | ranjith_qualiantech_com | When adding multiple discounts the override functionality is not working as expected under certain conditions |
|
Attached Files | issue 40666 source discountsbytotal.patch (1,137) 2019-04-29 15:40 https://issues.openbravo.com/file_download.php?file_id=12895&type=bug
issue 40666 source pi-mobile.patch (6,044) 2019-04-30 07:55 https://issues.openbravo.com/file_download.php?file_id=12898&type=bug |
|
Issue History |
Date Modified | Username | Field | Change |
2019-04-24 11:09 | Leyre | New Issue | |
2019-04-24 11:09 | Leyre | Assigned To | => Retail |
2019-04-24 11:09 | Leyre | OBNetwork customer | => Gold |
2019-04-24 11:09 | Leyre | Support ticket | => 9342 |
2019-04-24 11:09 | Leyre | Resolution time | => 1557871200 |
2019-04-24 11:09 | Leyre | Triggers an Emergency Pack | => No |
2019-04-25 11:41 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com |
2019-04-25 11:41 | ranjith_qualiantech_com | Status | new => scheduled |
2019-04-26 11:18 | marvintm | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=18681#r18681 |
2019-04-26 11:18 | marvintm | Steps to Reproduce Updated | bug_revision_view_page.php?rev_id=18682#r18682 |
2019-04-29 15:40 | ranjith_qualiantech_com | File Added: issue 40666 source discountsbytotal.patch | |
2019-04-30 07:55 | ranjith_qualiantech_com | File Added: issue 40666 source pi-mobile.patch | |
2019-05-03 08:32 | hgbot | Checkin | |
2019-05-03 08:32 | hgbot | Note Added: 0111454 | |
2019-05-03 11:43 | hgbot | Checkin | |
2019-05-03 11:43 | hgbot | Note Added: 0111468 | |
2019-05-03 14:06 | hgbot | Checkin | |
2019-05-03 14:06 | hgbot | Note Added: 0111477 | |
2019-05-04 09:04 | hgbot | Checkin | |
2019-05-04 09:04 | hgbot | Note Added: 0111481 | |
2019-05-04 12:44 | hgbot | Checkin | |
2019-05-04 12:44 | hgbot | Note Added: 0111482 | |
2019-05-04 12:44 | ranjith_qualiantech_com | Status | scheduled => resolved |
2019-05-04 12:44 | ranjith_qualiantech_com | Resolution | open => fixed |
2019-05-09 15:43 | jorge-garcia | Review Assigned To | => jorge-garcia |
2019-05-09 15:44 | jorge-garcia | Note Added: 0111604 | |
2019-05-09 15:44 | jorge-garcia | Status | resolved => closed |
2019-05-09 15:44 | jorge-garcia | Fixed in Version | => RR19Q3 |
2019-05-15 10:15 | Leyre | Relationship added | causes 0040881 |
2019-05-15 11:06 | Leyre | Relationship deleted | causes 0040881 |
2019-05-27 11:52 | jorgewederago | Note Added: 0112162 | |
2019-05-27 11:52 | jorgewederago | Status | closed => new |
2019-05-27 11:52 | jorgewederago | Resolution | fixed => open |
2019-05-27 11:52 | jorgewederago | Fixed in Version | RR19Q3 => |
2019-05-27 11:52 | jorgewederago | Relationship added | related to 0040812 |
2019-05-27 15:28 | ranjith_qualiantech_com | Status | new => scheduled |
2019-05-27 15:29 | ranjith_qualiantech_com | Note Added: 0112179 | |
2019-05-27 15:29 | ranjith_qualiantech_com | Status | scheduled => resolved |
2019-05-27 15:29 | ranjith_qualiantech_com | Resolution | open => fixed |
2019-05-30 15:52 | jorge-garcia | Note Added: 0112273 | |
2019-05-30 15:52 | jorge-garcia | Status | resolved => closed |
2019-05-30 15:52 | jorge-garcia | Fixed in Version | => RR19Q3 |
2019-06-24 11:15 | ranjith_qualiantech_com | Relationship added | causes 0041097 |
Notes |
|
(0111454)
|
hgbot
|
2019-05-03 08:32
|
|
Repository: erp/pmods/org.openbravo.retail.discounts.bytotal
Changeset: 76c3dce67191de78e51842320809f87f68949df1
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri May 03 12:02:09 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.bytotal/rev/76c3dce67191de78e51842320809f87f68949df1 [^]
Related to issue 40666 : Discount by Total should be calculated again when PreApplyAutomaticDiscount hook is called
* When PreApplyAutomaticDiscount hook is called, line orderManualPromotionsAlreadyApplied should be set as false
for recalculating the discount by total.
---
M web/org.openbravo.retail.discounts.bytotal/js/preApplyAutomaticDiscountHook.js
---
|
|
|
(0111468)
|
hgbot
|
2019-05-03 11:43
|
|
Repository: erp/pmods/org.openbravo.retail.discounts.bytotal
Changeset: 475ed764a500f00d99f788e1ce5f90dbde0ccb1a
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Fri May 03 15:13:14 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.bytotal/rev/475ed764a500f00d99f788e1ce5f90dbde0ccb1a [^]
Related to issue 40666 : Discount by Total should be calculated again when PreApplyAutomaticDiscount hook is called
* When PreApplyAutomaticDiscount hook is called, line orderManualPromotionsAlreadyApplied should be set as false
for recalculating the discount by total only if product is non grouped.
---
M web/org.openbravo.retail.discounts.bytotal/js/preApplyAutomaticDiscountHook.js
---
|
|
|
(0111477)
|
hgbot
|
2019-05-03 14:06
|
|
|
|
(0111481)
|
hgbot
|
2019-05-04 09:04
|
|
Repository: erp/pmods/org.openbravo.retail.discounts.bytotal
Changeset: cd409d69cbafa07ffc091a78953beb63cb0e6d07
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Sat May 04 12:33:53 2019 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.bytotal/rev/cd409d69cbafa07ffc091a78953beb63cb0e6d07 [^]
Related to issue 40666 : Discount by Total should be calculated again when PreApplyAutomaticDiscount hook is called
* When PreApplyAutomaticDiscount hook is called, line orderManualPromotionsAlreadyApplied should be set as false
for recalculating the discount by total only if product is non grouped.
---
M web/org.openbravo.retail.discounts.bytotal/js/preApplyAutomaticDiscountHook.js
---
|
|
|
(0111482)
|
hgbot
|
2019-05-04 12:44
|
|
Repository: tools/automation/pi-mobile
Changeset: d0dd0843aae82d79b249635c0d4d47b61238f0a9
Author: Ranjith S R <ranjith <at> qualiantech.com>
Date: Sat May 04 16:14:33 2019 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/d0dd0843aae82d79b249635c0d4d47b61238f0a9 [^]
Verifies issue 40666 : Added automated test 'I40666_VerifyTotalDiscountWithNonGroupedProduct'
---
M src-test/org/openbravo/test/mobile/retail/pack/selenium/TestIdPack.java
A src-test/org/openbravo/test/mobile/retail/extmodules/selenium/tests/discounts_bytotal/I40666_VerifyTotalDiscountWithNonGroupedProduct.java
---
|
|
|
(0111604)
|
jorge-garcia
|
2019-05-09 15:43
|
|
|
|
|
If the same case is done with one product marked as non grouped and another one marked as grouped. The one marked as grouped will have the discount applied twice.
Steps to reproduce the issue in pi with modules:
*Add Avalanche Transciever
*Add GPS Handheld (is ok to use the default discount in the environment)
*Select the GPS Handheld line and add the discount disc_5_var_euro - 5 EUR to the line
*Add a new discount: Variable Perfecntage Discount by Total 23%
*Check that the Avalanche Transciever will have the discount applied twice. |
|
|
|
|
|
(0112273)
|
jorge-garcia
|
2019-05-30 15:52
|
|
|