Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0028164 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Discounts and Promotions | major | have not tried | 2014-11-12 18:33 | 2014-11-14 10:44 | |||
Reporter | malsasua | View Status | public | |||||
Assigned To | migueldejuana | |||||||
Priority | urgent | Resolution | fixed | Fixed in Version | RR14Q3.1 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 2930de98c063 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Linux 32 bit | Database | PostgreSQL | Java version | 1.6.0_18 | |||
OS Version | Community Appliance | Database version | 8.3.9 | Ant version | 1.7.1 | |||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | Orekaria | |||||||
OBNetwork customer | No | |||||||
Support ticket | ||||||||
Regression level | Production - QA Approved | |||||||
Regression date | 2014-06-10 | |||||||
Regression introduced in release | RR14Q3 | |||||||
Regression introduced by commit | https://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/ff64aefab4b0 [^] | |||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0028164: discount is removed when exists other line negative | |||||||
Description | when there are lines negatives in receipt, and one positive line has got a discretionary discount and also automatic discount, the automatic discount is removed in positive line, and it should not be removed | |||||||
Steps To Reproduce | . in F&B . add Avalanche Receiver . qty 1 . add GPS handheld (automatic discount: "GPS_10_per" is added) . qty 1 . apply discretionary discount disc_5_var_perc to all lines the receipt: . Avalance Receiver: qty 1 - discounts: disc_5_var_perc . GPS handheld: qty 1 - discounts: disc_5_var_perc GPS_10_per . return line Avalance Receiver expected receipt: . Avalance Receiver: qty -1 . GPS handheld: qty 1 - discounts: disc_5_var_perc GPS_10_per receipt: . Avalance Receiver: qty -1 . GPS handheld: qty 1 - discounts: disc_5_var_perc the discount GPS_10_per has been removed, and it should not be removed | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|||||||||||||||
|
![]() |
|
(0071647) hgbot (developer) 2014-11-14 09:01 |
Repository: erp/pmods/org.openbravo.retail.posterminal Changeset: 2930de98c0637d8202a10d368cc72686b45ccd54 Author: Miguel de Juana <miguel.dejuana <at> openbravo.com> Date: Fri Nov 14 09:00:30 2014 +0100 URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2930de98c0637d8202a10d368cc72686b45ccd54 [^] Fixed issue 0028164: discount is removed when exists other line negative Order lines by qty desc before applying discount rules in order to have first higher qty and positive lines. --- M web/org.openbravo.retail.posterminal/js/model/discounts.js --- |
(0071650) hgbot (developer) 2014-11-14 10:43 |
Repository: tools/automation/pi-mobile Changeset: ee610ff136be31caff6a95361a682c11c1a9176f Author: Rafa Alonso <rafael.alonso <at> openbravo.com> Date: Fri Nov 14 10:43:18 2014 +0100 URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/ee610ff136be31caff6a95361a682c11c1a9176f [^] Related to issue 28164: 2 tests have been added These tests verify that the discounts are correctly applied and that a receipt with a return in the first or the second line, will give the same results --- M src-test/org/openbravo/retail/standard/automation/suites/DiscountsAndPromotionsSuite.java A src-test/org/openbravo/retail/standard/automation/level20/discountsandpromotions/issues/I28164_DiscountsRemovedWhenReturnPresentI.java A src-test/org/openbravo/retail/standard/automation/level20/discountsandpromotions/issues/I28164_DiscountsRemovedWhenReturnPresentII.java --- |
![]() |
|||
Date Modified | Username | Field | Change |
2014-11-12 18:33 | malsasua | New Issue | |
2014-11-12 18:33 | malsasua | Assigned To | => marvintm |
2014-11-12 18:33 | malsasua | OBNetwork customer | => No |
2014-11-12 18:33 | malsasua | Regression level | => Production - QA Approved |
2014-11-12 18:33 | malsasua | Regression date | => 2014-06-10 |
2014-11-12 18:33 | malsasua | Regression introduced in release | => RR14Q3 |
2014-11-12 18:33 | malsasua | Regression introduced by commit | => https://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/ff64aefab4b0 [^] |
2014-11-12 18:33 | malsasua | Triggers an Emergency Pack | => No |
2014-11-14 08:56 | migueldejuana | Assigned To | marvintm => migueldejuana |
2014-11-14 08:59 | Orekaria | Relationship added | depends on 0028120 |
2014-11-14 09:01 | hgbot | Checkin | |
2014-11-14 09:01 | hgbot | Note Added: 0071647 | |
2014-11-14 09:01 | hgbot | Status | new => resolved |
2014-11-14 09:01 | hgbot | Resolution | open => fixed |
2014-11-14 09:01 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2930de98c0637d8202a10d368cc72686b45ccd54 [^] |
2014-11-14 09:11 | Orekaria | Relationship added | related to 0028100 |
2014-11-14 10:43 | hgbot | Checkin | |
2014-11-14 10:43 | hgbot | Note Added: 0071650 | |
2014-11-14 10:44 | Orekaria | Review Assigned To | => Orekaria |
2014-11-14 10:44 | Orekaria | Status | resolved => closed |
2014-11-14 10:44 | Orekaria | Fixed in Version | => RR14Q3.1 |
Copyright © 2000 - 2009 MantisBT Group |