Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035096Retail ModulesWeb POSpublic2017-01-26 15:432017-03-03 14:27
plujan 
jorge-garcia 
normalmajorhave not tried
closedfixed 
5
 
RR16Q4.2RR16Q4.2 
marvintm
No
0035096: [RR16Q4] Split lines shows an exception when changing the pricelist
Having multi price list enabled, the lines of a ticket are recalculated if the business partner changes. This results in an exception "Cannot read the property 'set' of undefined"
1. Enable multi price list
2. Create a ticket for a specific business partner
3. Add 4 units of a product and split the lines in 3 and 1.
4. Change the business partner. Pick one using a different price list than the former one.
5. An exception is shown (see screenshot)
6. Note that the ticket now have a single line instead of the two it has before.
No tags attached.
blocks defect 0035061 closed jorge-garcia [RR16Q4] Split lines shows an exception when changing the pricelist 
Issue History
2017-01-31 08:58marvintmTypedefect => backport
2017-01-31 08:58marvintmTarget Version => RR16Q4.2
2017-02-07 12:27hgbotCheckin
2017-02-07 12:27hgbotNote Added: 0094118
2017-02-07 12:27hgbotStatusscheduled => resolved
2017-02-07 12:27hgbotResolutionopen => fixed
2017-02-07 12:27hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4c4b1ca65a8c8a1577a9f06b7d3d6edec8964854 [^] => http://code.openbravo.com/retail/backports/3.0RR16Q4.2/org.openbravo.retail.posterminal/rev/968fc1e3d8404ab67baff413cd1bbaec7b626454 [^]
2017-02-07 12:27hgbotCheckin
2017-02-07 12:27hgbotNote Added: 0094119
2017-03-03 14:27marvintmStatusresolved => closed
2017-03-03 14:27marvintmFixed in Version => RR16Q4.2

Notes
(0094118)
hgbot   
2017-02-07 12:27   
Repository: retail/backports/3.0RR16Q4.2/org.openbravo.retail.posterminal
Changeset: 968fc1e3d8404ab67baff413cd1bbaec7b626454
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Tue Feb 07 12:26:41 2017 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR16Q4.2/org.openbravo.retail.posterminal/rev/968fc1e3d8404ab67baff413cd1bbaec7b626454 [^]

Fixed issue 35096: [RR16Q4] Split lines shows an exception when changing
the pricelist

The problem was the creation of new lines when the customer changes was not
taking into account the attribute of splitlines.

The solution is to send this attribute and the original line to the addProduct
function.

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0094119)
hgbot   
2017-02-07 12:27   
Repository: retail/backports/3.0RR16Q4.2/pi-mobile
Changeset: 76d526b2dbbb6f9073c38859bb95b02a8e3dad71
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Tue Feb 07 12:26:08 2017 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR16Q4.2/pi-mobile/rev/76d526b2dbbb6f9073c38859bb95b02a8e3dad71 [^]

Verifies issue 35096: [RR16Q4] Split lines shows an exception when changing
the pricelist

Added test I35061_ChangeCustomerWithSplitLines.

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/multipricelists/I35061_ChangeCustomerWithSplitLines.java
---