Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0040666 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Discounts and Promotions | major | always | 2019-04-24 11:09 | 2019-05-30 15:52 | |||
Reporter | Leyre | View Status | public | |||||
Assigned To | ranjith_qualiantech_com | |||||||
Priority | high | Resolution | fixed | Fixed in Version | RR19Q3 | |||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
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. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ![]() ![]() | |||||||
![]() |
|||||||||||||||
|
![]() |
|
(0111454) hgbot (developer) 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 (developer) 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 (developer) 2019-05-03 14:06 |
Repository: erp/pmods/org.openbravo.retail.discounts.bytotal Changeset: 4e94d834773131e44f244186f2f4d5fa1bed88f1 Author: Ranjith S R <ranjith <at> qualiantech.com> Date: Fri May 03 17:35:58 2019 +0530 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.bytotal/rev/4e94d834773131e44f244186f2f4d5fa1bed88f1 [^] Related to issue 40666 : Backed out changeset: 475ed764a500 --- M web/org.openbravo.retail.discounts.bytotal/js/preApplyAutomaticDiscountHook.js --- |
(0111481) hgbot (developer) 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 (developer) 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 (viewer) 2019-05-09 15:43 |
Code reviewed and tested |
(0112162) jorgewederago (viewer) 2019-05-27 11:52 |
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. |
(0112179) ranjith_qualiantech_com (viewer) 2019-05-27 15:29 |
Fixed in https://issues.openbravo.com/view.php?id=40812 [^] Changeset: https://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts.bytotal/rev/2b9c28f2fe3250e21cf413407157e38ffef9dd55 [^] |
(0112273) jorge-garcia (viewer) 2019-05-30 15:52 |
Code reviewed and tested |
![]() |
|||
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 | View Revisions |
2019-04-26 11:18 | marvintm | Steps to Reproduce Updated | View Revisions |
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 |
Copyright © 2000 - 2009 MantisBT Group |