Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034070Retail ModulesWeb POSpublic2016-09-22 14:042016-11-16 09:37
guillermogil 
Retail 
immediatemajoralways
closedfixed 
5
 
RR16Q2.4 
migueldejuana
Production - Confirmed Stable
RR16Q2
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/09dc9563011a [^]
No
0034070: If deleteCurrent function forces to create a new order the document Sequence is wrongly generated
If deleteCurrent function (OB.MobileApp.model.orderlist.deleteCurrent(true)) forces to create a new order the document Sequence is wrongly generated.
It is not taking into account the new orderList order when it is adding the new order to the orderList.
Login on WebPOS
Add a product
New ticket
Add a product
New ticket
Add a product
Set the following command on the console:
OB.MobileApp.model.orderList.deleteCurrent(true);
Set the following command on the console:
OB.MobileApp.model.orderList.deleteCurrent(true);

You will see that on the orderList are several document numbers wrong
See attached diff
No tags attached.
blocks defect 0034058 closed jorge-garcia If deleteCurrent function forces to create a new order the document Sequence is wrongly generated 
Issue History
2016-09-23 10:47jorge-garciaTypedefect => backport
2016-09-23 10:47jorge-garciaTarget Version => RR16Q2.3
2016-09-28 11:44marvintmTarget VersionRR16Q2.3 => RR16Q2.4
2016-11-11 08:49hgbotCheckin
2016-11-11 08:49hgbotNote Added: 0091353
2016-11-11 08:49hgbotStatusscheduled => resolved
2016-11-11 08:49hgbotResolutionopen => fixed
2016-11-11 08:49hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR16Q2.4/org.openbravo.retail.posterminal/rev/fda289a0a3c41e7061cad2610c9c93e9f8e677dd [^]
2016-11-11 14:24migueldejuanaReview Assigned To => migueldejuana
2016-11-11 14:24migueldejuanaNote Added: 0091402
2016-11-11 14:24migueldejuanaStatusresolved => closed
2016-11-16 09:37lorenzofidalgoSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=13768#r13768

Notes
(0091353)
hgbot   
2016-11-11 08:49   
Repository: retail/backports/3.0RR16Q2.4/org.openbravo.retail.posterminal
Changeset: fda289a0a3c41e7061cad2610c9c93e9f8e677dd
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Fri Sep 23 11:17:23 2016 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR16Q2.4/org.openbravo.retail.posterminal/rev/fda289a0a3c41e7061cad2610c9c93e9f8e677dd [^]

Fixed issue 34070, backport of issue 34058: If deleteCurrent function forces to create a new order
the document Sequence is wrongly generated

If the creation of a new order is forced, the sequence number must be updated
correctly.

---
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0091402)
migueldejuana   
2016-11-11 14:24   
Tested and reviewed