Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035095Retail ModulesWeb POSpublic2017-01-26 15:432017-03-15 14:12
plujan 
jorge-garcia 
normalmajorhave not tried
closedfixed 
5
 
RR17Q1RR17Q1 
marvintm
No
0035095: [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 => RR17Q1
2017-02-07 12:06hgbotCheckin
2017-02-07 12:06hgbotNote Added: 0094114
2017-02-07 12:06hgbotStatusscheduled => resolved
2017-02-07 12:06hgbotResolutionopen => fixed
2017-02-07 12:06hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4c4b1ca65a8c8a1577a9f06b7d3d6edec8964854 [^] => http://code.openbravo.com/retail/backports/3.0RR17Q1/org.openbravo.retail.posterminal/rev/a15c34a65e587047e636b90ab8b8c29eece24183 [^]
2017-02-07 12:06hgbotCheckin
2017-02-07 12:06hgbotNote Added: 0094115
2017-03-03 14:29marvintmStatusresolved => closed
2017-03-03 14:29marvintmFixed in Version => RR17Q1
2017-03-15 14:12hgbotCheckin
2017-03-15 14:12hgbotNote Added: 0095041

Notes
(0094114)
hgbot   
2017-02-07 12:06   
Repository: retail/backports/3.0RR17Q1/org.openbravo.retail.posterminal
Changeset: a15c34a65e587047e636b90ab8b8c29eece24183
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Tue Feb 07 12:05:24 2017 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR17Q1/org.openbravo.retail.posterminal/rev/a15c34a65e587047e636b90ab8b8c29eece24183 [^]

Fixed issue 35095: [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
---
(0094115)
hgbot   
2017-02-07 12:06   
Repository: retail/backports/3.0RR17Q1/pi-mobile
Changeset: b53817402bc3170f9ea9235c1e0afe1e21c45873
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Tue Feb 07 12:04:43 2017 +0100
URL: http://code.openbravo.com/retail/backports/3.0RR17Q1/pi-mobile/rev/b53817402bc3170f9ea9235c1e0afe1e21c45873 [^]

Verifies issue 35095: [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
---
(0095041)
hgbot   
2017-03-15 14:12   
Repository: tools/automation/pi-mobile
Changeset: b53817402bc3170f9ea9235c1e0afe1e21c45873
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Tue Feb 07 12:04:43 2017 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/b53817402bc3170f9ea9235c1e0afe1e21c45873 [^]

Verifies issue 35095: [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
---