Openbravo Issue Tracking System - Retail Modules
View Issue Details
0035061Retail ModulesWeb POSpublic2017-01-26 15:432017-01-31 08:58
plujan 
jorge-garcia 
normalmajorhave not tried
closedfixed 
5
 
RR17Q2 
marvintm
No
0035061: [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.
depends on backport 0035095RR17Q1 closed jorge-garcia [RR16Q4] Split lines shows an exception when changing the pricelist 
depends on backport 0035096RR16Q4.2 closed jorge-garcia [RR16Q4] Split lines shows an exception when changing the pricelist 
related to defect 0035101 closed ranjith_qualiantech_com [RR16Q4] Promotions in split lines are not recalculated when using multi price list 
png errorSplitLines.png (457,278) 2017-01-26 15:44
https://issues.openbravo.com/file_download.php?file_id=10350&type=bug
Issue History
2017-01-26 15:43plujanNew Issue
2017-01-26 15:43plujanAssigned To => Retail
2017-01-26 15:43plujanTriggers an Emergency Pack => No
2017-01-26 15:44plujanFile Added: errorSplitLines.png
2017-01-26 15:46plujanResolution time => 1486594800
2017-01-26 16:05malsasuaIssue Monitored: malsasua
2017-01-26 16:19heccamIssue Monitored: heccam
2017-01-26 16:29PracticsIssue Monitored: Practics
2017-01-27 12:54marvintmStatusnew => scheduled
2017-01-27 12:54marvintmAssigned ToRetail => jorge-garcia
2017-01-30 08:47hgbotCheckin
2017-01-30 08:47hgbotNote Added: 0093908
2017-01-30 08:47hgbotStatusscheduled => resolved
2017-01-30 08:47hgbotResolutionopen => fixed
2017-01-30 08:47hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4c4b1ca65a8c8a1577a9f06b7d3d6edec8964854 [^]
2017-01-30 08:48hgbotCheckin
2017-01-30 08:48hgbotNote Added: 0093909
2017-01-30 09:40marvintmReview Assigned To => marvintm
2017-01-30 09:40marvintmStatusresolved => closed
2017-01-30 09:40marvintmFixed in Version => RR17Q2
2017-01-31 08:58marvintmStatusclosed => new
2017-01-31 08:58marvintmResolutionfixed => open
2017-01-31 08:58marvintmFixed in VersionRR17Q2 =>
2017-01-31 08:58marvintmStatusnew => scheduled
2017-01-31 08:58marvintmStatusscheduled => resolved
2017-01-31 08:58marvintmResolutionopen => fixed
2017-01-31 08:58marvintmStatusresolved => closed
2017-01-31 08:58marvintmFixed in Version => RR17Q2
2017-01-31 11:14plujanRelationship addedrelated to 0035101

Notes
(0093908)
hgbot   
2017-01-30 08:47   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 4c4b1ca65a8c8a1577a9f06b7d3d6edec8964854
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Jan 27 14:12:48 2017 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/4c4b1ca65a8c8a1577a9f06b7d3d6edec8964854 [^]

Fixed issue 35061: [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
---
(0093909)
hgbot   
2017-01-30 08:48   
Repository: tools/automation/pi-mobile
Changeset: cffe128ae5c1724ba644f5d74dab159d44bdca0e
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Jan 27 14:38:15 2017 +0100
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/cffe128ae5c1724ba644f5d74dab159d44bdca0e [^]

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