Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035082Retail ModulesDiscounts and Promotionspublic2017-01-30 11:362017-03-09 10:30
malsasua 
jorge-garcia 
highmajoralways
closedfixed 
20Community Appliance
 
RR17Q2 
marvintm
No
0035082: total line is set to 0 with a concrete configuration of discount and promotions
with a concrete configuration of discount and promotion, the total line is set to 0, and total ticket is not properly calculated
in backoffice:
. In discount and promotion window:
 Create a new discount of type "price adjustment". "Apply next discount" must be set to Y, "Included products" set as Only those defined and "Included Price List" set as Only those defined. Set a percentage 33.33.
 In product tab, add adhesive body warners.
 In price list tab, add "The White Valley Group Sale Price List" and "The White Valley Group Sale Price list (Opening Store)".
 Save the record

in POS
. Add to the receipt expedition tent 4 season 2 person.
. Add to the receipt adhesive body warners. The button of total, new and delete is not enable ever and the last line has a gross of 0.00
No tags attached.
Issue History
2017-01-30 11:36malsasuaNew Issue
2017-01-30 11:36malsasuaAssigned To => Retail
2017-01-30 11:36malsasuaResolution time => 1487372400
2017-01-30 11:36malsasuaTriggers an Emergency Pack => No
2017-02-01 16:27jorge-garciaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=14437#r14437
2017-02-01 21:22mario_castelloAssigned ToRetail => mario_castello
2017-02-03 13:25jorge-garciaAssigned Tomario_castello => jorge-garcia
2017-02-15 09:14marvintmStatusnew => scheduled
2017-02-17 08:44hgbotCheckin
2017-02-17 08:44hgbotNote Added: 0094437
2017-02-17 08:45hgbotCheckin
2017-02-17 08:45hgbotNote Added: 0094438
2017-02-17 08:47hgbotCheckin
2017-02-17 08:47hgbotNote Added: 0094440
2017-02-17 08:47hgbotStatusscheduled => resolved
2017-02-17 08:47hgbotResolutionopen => fixed
2017-02-17 08:47hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/cade8ccdbe458dec6cc35e589cd5cf8222d1f8f6 [^]
2017-02-20 11:54marvintmReview Assigned To => marvintm
2017-02-20 11:54marvintmStatusresolved => closed
2017-02-20 11:54marvintmFixed in Version => RR17Q2
2017-03-09 10:30jorge-garciaNote Added: 0094859

Notes
(0094437)
hgbot   
2017-02-17 08:44   
Repository: tools/automation/pi-mobile
Changeset: 983fdb98ea95a102dc834c512260e8831680c8c1
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Tue Feb 07 08:53:51 2017 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/983fdb98ea95a102dc834c512260e8831680c8c1 [^]

Verifies issue 35082: total line is set to 0 with a concrete configuration of
discount and promotions

Added test I35082_PriceAdjusmentWithALineCandidateForPack.

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/discountsandpromotions/I35082_PriceAdjusmentWithALineCandidateForPack.java
---
(0094438)
hgbot   
2017-02-17 08:45   
Repository: erp/pmods/org.openbravo.retail.sampledata
Changeset: cae07e4f0e8c3ee9b3ee1f9ebe3e15b40339886a
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Mon Feb 06 17:23:36 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.sampledata/rev/cae07e4f0e8c3ee9b3ee1f9ebe3e15b40339886a [^]

Related to issue 35082: total line is set to 0 with a concrete configuration of
discount and promotions

Added a new promotion of type Price Adjusment.

---
M referencedata/sampledata/The_White_Valley_Group/M_OFFER.xml
M referencedata/sampledata/The_White_Valley_Group/M_OFFER_PRICELIST.xml
M referencedata/sampledata/The_White_Valley_Group/M_OFFER_PRODUCT.xml
---
(0094440)
hgbot   
2017-02-17 08:47   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: cade8ccdbe458dec6cc35e589cd5cf8222d1f8f6
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Thu Feb 16 11:52:01 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/cade8ccdbe458dec6cc35e589cd5cf8222d1f8f6 [^]

Fixed issue 35082: total line is set to 0 with a concrete configuration of
discount and promotions

Change Price Adjusment implementation to work as other rules, taking into
account the rest of lines of the receipt.

---
M web/org.openbravo.retail.posterminal/js/model/discounts.js
---
(0094859)
jorge-garcia   
2017-03-09 10:30   
There are two more commits related with this fix

[1] https://code.openbravo.com/erp/pmods/org.openbravo.retail.discounts/rev/2ef212a2dee6 [^]
[2] https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/ae69548886de [^]