Openbravo Issue Tracking System - Retail Modules
View Issue Details
0033861Retail ModulesWeb POSpublic2016-08-31 11:062016-10-13 09:31
airaceburu 
jorge-garcia 
immediatemajoralways
closedfixed 
5
 
RR16Q3.2RR16Q3.2 
guilleaer
RR16Q2
No
0033861: Sequence number is getting incremented when empty bills are deleted through end session
Sequence number is getting incremented when empty bills are deleted through end session with "Web POS Save Removed Tickets" preference set to 'Y'.

This is because that empty bill is also getting synchronized during end session and set as deleted in the ERP.
Log in to Openbravo
Set "Web POS Save Removed Tickets" preference to 'Y'
Log in to Web POS
Complete a ticket
Write down the sequence number (The one of the new empty bill)
End Session
Log in again
(Notice that the sequence number has been incremented)
(If you log in to Openbravo and browse to the sales order window you will see the empty bill synchronized with the "Deleted" flag set to 'Y')
No tags attached.
blocks defect 0033860 closed jorge-garcia Sequence number is getting incremented when empty bills are deleted through end session 
Issue History
2016-08-31 11:27jorge-garciaTypedefect => backport
2016-08-31 11:27jorge-garciaTarget Version => RR16Q3.2
2016-09-14 10:51hgbotCheckin
2016-09-14 10:51hgbotNote Added: 0089942
2016-09-14 10:52hgbotCheckin
2016-09-14 10:52hgbotNote Added: 0089943
2016-09-14 10:52hgbotStatusscheduled => resolved
2016-09-14 10:52hgbotResolutionopen => fixed
2016-09-14 10:52hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR16Q3.2/org.openbravo.retail.posterminal/rev/fc8cd1f02ef5ca2ae6eb2de4f31360ea601c4214 [^]
2016-09-14 12:52jorge-garciaAssigned ToRetail => jorge-garcia
2016-09-26 17:19guilleaerReview Assigned To => guilleaer
2016-09-26 17:19guilleaerStatusresolved => closed
2016-09-26 17:19guilleaerFixed in Version => RR16Q3.2
2016-10-13 09:31hgbotCheckin
2016-10-13 09:31hgbotNote Added: 0090544

Notes
(0089942)
hgbot   
2016-09-14 10:51   
Repository: retail/backports/3.0RR16Q3.2/pi-mobile
Changeset: 3eeb6f35829cd569487289d7edc2fe8a45d5d3e4
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Wed Sep 14 10:50:52 2016 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR16Q3.2/pi-mobile/rev/3eeb6f35829cd569487289d7edc2fe8a45d5d3e4 [^]

Verifies issue 33861: Sequence number is getting incremented when empty bills
are deleted through end session

Added test I33860_DontDeleteOrderWhenLogout

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I33860_DontDeleteOrderWhenLogout.java
---
(0089943)
hgbot   
2016-09-14 10:52   
Repository: retail/backports/3.0RR16Q3.2/org.openbravo.retail.posterminal
Changeset: fc8cd1f02ef5ca2ae6eb2de4f31360ea601c4214
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Tue Sep 13 17:29:16 2016 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR16Q3.2/org.openbravo.retail.posterminal/rev/fc8cd1f02ef5ca2ae6eb2de4f31360ea601c4214 [^]

Fixed issue 33861: Sequence number is getting incremented when empty bills
are deleted through end session

When a logout is done, in the standard flow, all the tickets present in that
moment are deleted even if the receipt has no lines and is completely new.

This is a problem when the preference to Save Delete Tickets is active.

The solution, is to delete all the tickets with a document sequence lower than
the last ticket with lines.

---
M web/org.openbravo.retail.posterminal/js/login/model/login-model.js
M web/org.openbravo.retail.posterminal/js/model/order.js
---
(0090544)
hgbot   
2016-10-13 09:31   
Repository: tools/automation/pi-mobile
Changeset: 3eeb6f35829cd569487289d7edc2fe8a45d5d3e4
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Wed Sep 14 10:50:52 2016 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/3eeb6f35829cd569487289d7edc2fe8a45d5d3e4 [^]

Verifies issue 33861: Sequence number is getting incremented when empty bills
are deleted through end session

Added test I33860_DontDeleteOrderWhenLogout

---
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/receipts/I33860_DontDeleteOrderWhenLogout.java
---