Openbravo Issue Tracking System - Retail Modules
View Issue Details
0034069Retail ModulesWeb POSpublic2016-09-22 14:042016-11-16 09:37
guillermogil 
jorge-garcia 
immediatemajoralways
closedfixed 
5
 
RR16Q3.3RR16Q3.3 
migueldejuana
Production - Confirmed Stable
RR16Q2
https://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/09dc9563011a [^]
No
0034069: 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 => RR16Q3.2
2016-09-28 11:44marvintmTarget VersionRR16Q3.2 => RR16Q3.3
2016-11-11 08:51hgbotCheckin
2016-11-11 08:51hgbotNote Added: 0091363
2016-11-14 13:34marvintmAssigned ToRetail => jorge-garcia
2016-11-14 13:34marvintmStatusscheduled => resolved
2016-11-14 13:34marvintmFixed in Version => RR16Q3.3
2016-11-14 13:34marvintmResolutionopen => fixed
2016-11-14 15:23migueldejuanaReview Assigned To => migueldejuana
2016-11-14 15:23migueldejuanaNote Added: 0091465
2016-11-14 15:23migueldejuanaStatusresolved => closed
2016-11-16 09:37lorenzofidalgoSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=13766#r13766

Notes
(0091363)
hgbot   
2016-11-11 08:51   
Repository: retail/backports/3.0RR16Q3.3/org.openbravo.retail.posterminal
Changeset: 7c08268959f6bc11a90cd19a82689e3c5af5940d
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.0RR16Q3.3/org.openbravo.retail.posterminal/rev/7c08268959f6bc11a90cd19a82689e3c5af5940d [^]

Fixed issue 34058, backport of issue 34069: 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
---
(0091465)
migueldejuana   
2016-11-14 15:23   
Tested and reviewed