Openbravo Issue Tracking System - Retail Modules
View Issue Details
0033862Retail ModulesWeb POSpublic2016-08-31 11:062016-10-05 12:39
airaceburu 
jorge-garcia 
immediatemajoralways
closedfixed 
5
 
RR16Q2.3RR16Q2.3 
guilleaer
RR16Q2
No
0033862: 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 => RR16Q2.3
2016-09-14 12:35hgbotCheckin
2016-09-14 12:35hgbotNote Added: 0089947
2016-09-14 12:36hgbotCheckin
2016-09-14 12:36hgbotNote Added: 0089949
2016-09-14 12:36hgbotStatusscheduled => resolved
2016-09-14 12:36hgbotResolutionopen => fixed
2016-09-14 12:36hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR16Q2.3/org.openbravo.retail.posterminal/rev/0c860d1e0166db645a3e35e7ef35432cb9fc6d65 [^]
2016-09-14 12:52jorge-garciaAssigned ToRetail => jorge-garcia
2016-09-26 17:15guilleaerReview Assigned To => guilleaer
2016-09-26 17:15guilleaerStatusresolved => closed
2016-09-26 17:15guilleaerFixed in Version => RR16Q2.3
2016-10-05 12:39hgbotCheckin
2016-10-05 12:39hgbotNote Added: 0090490

Notes
(0089947)
hgbot   
2016-09-14 12:35   
Repository: retail/backports/3.0RR16Q2.3/pi-mobile
Changeset: 98682084a57c23f816add43d67fa935ccf83c759
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Wed Sep 14 12:29:13 2016 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR16Q2.3/pi-mobile/rev/98682084a57c23f816add43d67fa935ccf83c759 [^]

Verifies issue 33862: 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
---
(0089949)
hgbot   
2016-09-14 12:36   
Repository: retail/backports/3.0RR16Q2.3/org.openbravo.retail.posterminal
Changeset: 0c860d1e0166db645a3e35e7ef35432cb9fc6d65
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Wed Sep 14 12:28:40 2016 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR16Q2.3/org.openbravo.retail.posterminal/rev/0c860d1e0166db645a3e35e7ef35432cb9fc6d65 [^]

Fixed issue 33862: 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
---
(0090490)
hgbot   
2016-10-05 12:39   
Repository: tools/automation/pi-mobile
Changeset: 98682084a57c23f816add43d67fa935ccf83c759
Author: Jorge Garcia <jorge.garcia <at> openbravo.com>
Date: Wed Sep 14 12:29:13 2016 +0200
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/98682084a57c23f816add43d67fa935ccf83c759 [^]

Verifies issue 33862: 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
---