Openbravo Issue Tracking System - Retail Modules
View Issue Details
0032225Retail ModulesDiscounts and Promotionspublic2016-02-12 12:132016-03-07 11:32
malsasua 
guilleaer 
highmajoralways
closedfixed 
20Community Appliance
 
RR16Q1RR16Q1 
marvintm
No
0032225: [RR15Q4] [Multipricelist] discretionary discounts are removed when business partner is changed (with multiprice list)
with multiprice list activated, when the business partner is changed, the discretionary discounts are removed in ticket
in webpos: store MPL1
. business partner: Arturo Montoro
. add "adhesive body warmers"
. apply discretionary discount "disc 5%"
. change the business partner to Bryan Raymond
the discretionary discount has been removed
No tags attached.
blocks defect 0032217 closed jorge-garcia [RR15Q4] [Multipricelist] discretionary discounts are removed when business partner is changed (with multiprice list) 
Issue History
2016-02-12 13:32OrekariaTypedefect => backport
2016-02-12 13:32OrekariaTarget Version => RR16Q1
2016-02-25 19:52hgbotCheckin
2016-02-25 19:52hgbotNote Added: 0084528
2016-02-25 19:52hgbotStatusscheduled => resolved
2016-02-25 19:52hgbotResolutionopen => fixed
2016-02-25 19:52hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR16Q1/org.openbravo.retail.posterminal/rev/acd5bc4aa9cb6dfbc8632d8e9843a127bb6ccce5 [^]
2016-02-25 19:53guilleaerAssigned ToRetail => guilleaer
2016-03-03 16:08marvintmNote Added: 0084691
2016-03-03 16:08marvintmStatusresolved => new
2016-03-03 16:08marvintmResolutionfixed => open
2016-03-03 16:08marvintmStatusnew => scheduled
2016-03-04 09:31hgbotCheckin
2016-03-04 09:31hgbotNote Added: 0084714
2016-03-04 10:11marvintmStatusscheduled => resolved
2016-03-04 10:11marvintmFixed in Version => RR16Q1
2016-03-04 10:11marvintmResolutionopen => fixed
2016-03-07 11:32marvintmReview Assigned To => marvintm
2016-03-07 11:32marvintmStatusresolved => closed

Notes
(0084528)
hgbot   
2016-02-25 19:52   
Repository: retail/backports/3.0RR16Q1/org.openbravo.retail.posterminal
Changeset: acd5bc4aa9cb6dfbc8632d8e9843a127bb6ccce5
Author: Guillermo Alvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Thu Feb 25 19:50:45 2016 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR16Q1/org.openbravo.retail.posterminal/rev/acd5bc4aa9cb6dfbc8632d8e9843a127bb6ccce5 [^]

Fixed issue 32225, Backport of 32217: Discretionary discounts are not removed when BP is changed using multiprice list

---
M web/org.openbravo.retail.posterminal/js/model/order.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
---
(0084691)
marvintm   
2016-03-03 16:08   
The fix can be improved so that instead of executing calculateReceipt twice, it's done just once.
(0084714)
hgbot   
2016-03-04 09:31   
Repository: retail/backports/3.0RR16Q1/org.openbravo.retail.posterminal
Changeset: 4cfb83afc40611119558f5edd80c1e74da1f0412
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Mar 04 09:30:50 2016 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR16Q1/org.openbravo.retail.posterminal/rev/4cfb83afc40611119558f5edd80c1e74da1f0412 [^]

Related to issue 32225: Discretionary discounts are removed when business
partner is changed (with multiprice list)

Some changes are necessary to improve performance.

---
M web/org.openbravo.retail.posterminal/js/model/discounts.js
M web/org.openbravo.retail.posterminal/js/model/order.js
---