Openbravo Issue Tracking System - Retail Modules
View Issue Details
0031379Retail ModulesWeb POSpublic2015-11-05 18:002015-12-01 09:59
amayavicente 
ranjith_qualiantech_com 
highmajoralways
closedfixed 
5
 
RR16Q1 
marvintm
No
0031379: Duplicated document number when the user session changes
It is possible to create two tickets with the same Doc No in a POS terminal openning different sessions with two users.

User 1: Login; Create a ticket, for instance with Doc No. 00035;
        Add a product to the ticket.
        Do not finish the ticket (Leave the ticket as suspended ticket)
          and Lock screen.

User 2: Login; Create a ticket, the Doc No. is again 00035; (INCORRECT, it should be 00036)

Regarding the document sequence, the POS should behave like if it were in the same user session

Note, that when the WebPOS is locked, pending receipts are not removed from the c_order table
And, when a new receipt is created, the document number should be the next one
Maybe, the document sequence takes the user into account, which should not
SER-QA
related to defect 0030979 closed jorge-garcia The document sequence is inconsistent when there is more than 1 empty receipt opened 
related to defect 0034049RR16Q4 closed ranjith_qualiantech_com Document type is reset when lock screen 
Issue History
2015-11-05 18:00amayavicenteNew Issue
2015-11-05 18:00amayavicenteAssigned To => Retail
2015-11-05 18:00amayavicenteTriggers an Emergency Pack => No
2015-11-05 18:05amayavicenteResolution time => 1447887600
2015-11-05 22:18OrekariaStatusnew => acknowledged
2015-11-05 23:34OrekariaStatusacknowledged => scheduled
2015-11-05 23:34OrekariaStatusscheduled => feedback
2015-11-06 00:00OrekariaRelationship addedrelated to 0030979
2015-11-06 09:29OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=10084#r10084
2015-11-06 09:29OrekariaStatusfeedback => new
2015-11-06 09:29OrekariaStatusnew => feedback
2015-11-06 09:30OrekariaStatusfeedback => new
2015-11-06 09:30OrekariaStatusnew => acknowledged
2015-11-06 10:31OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=10091#r10091
2015-11-06 10:42OrekariaSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=10092#r10092
2015-11-06 11:08OrekariaProposed Solution updated
2015-11-06 11:13OrekariaStatusacknowledged => scheduled
2015-11-06 11:13OrekariaAssigned ToRetail => ranjith_qualiantech_com
2015-11-06 11:15OrekariaSummaryDuplicated Document No => Duplicated document number when the user session changes
2015-11-19 09:57hgbotCheckin
2015-11-19 09:57hgbotNote Added: 0081966
2015-11-19 09:58hgbotCheckin
2015-11-19 09:58hgbotNote Added: 0081967
2015-11-19 10:32hgbotCheckin
2015-11-19 10:32hgbotNote Added: 0081971
2015-11-19 10:32hgbotStatusscheduled => resolved
2015-11-19 10:32hgbotResolutionopen => fixed
2015-11-19 10:32hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2d114abaa2dd25c956f87060637bbf6ab974b95e [^]
2015-11-19 11:01OrekariaReview Assigned To => guilleaer
2015-11-23 12:59hgbotCheckin
2015-11-23 12:59hgbotNote Added: 0082077
2015-11-23 12:59hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2d114abaa2dd25c956f87060637bbf6ab974b95e [^] => http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7df46dac9163b8fc6a1e5f1d4a60bc229a980a3b [^]
2015-11-23 13:06marvintmReview Assigned Toguilleaer => marvintm
2015-11-23 13:06marvintmStatusresolved => closed
2015-11-23 13:06marvintmFixed in Version => RR16Q1
2015-12-01 09:59ageteTag Attached: SER-QA
2016-09-21 17:08migueldejuanaRelationship addedrelated to 0034049

Notes
(0081966)
hgbot   
2015-11-19 09:57   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 3fb951b5e7976f08bfbbd220a62978a118eaebe2
Author: Ranjith <ranjith <at> qualiantech.com>
Date: Thu Nov 19 14:23:53 2015 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/3fb951b5e7976f08bfbbd220a62978a118eaebe2 [^]

Fixing Issue 31379 : Generate Receipt Doc No. in Sequence irrespective of user session

---
M web/org.openbravo.retail.posterminal/js/closecash/model/cashup-model.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
---
(0081967)
hgbot   
2015-11-19 09:58   
Repository: tools/automation/pi-mobile
Changeset: b599c71a48ca86f45ce81c896691bc647f4312a9
Author: Ranjith <ranjith <at> qualiantech.com>
Date: Thu Nov 19 14:23:58 2015 +0530
URL: http://code.openbravo.com/tools/automation/pi-mobile/rev/b599c71a48ca86f45ce81c896691bc647f4312a9 [^]

Verifies issue 31379: Added automated test 'I31379_DocumentSeqBasedOnUserSession'

---
M src-test/org/openbravo/test/mobile/common/selenium/javascript/TestId.java
A src-test/org/openbravo/test/mobile/retail/pack/selenium/tests/documentno/I31379_DocumentSeqBasedOnUserSession.java
---
(0081971)
hgbot   
2015-11-19 10:32   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 2d114abaa2dd25c956f87060637bbf6ab974b95e
Author: Ranjith <ranjith <at> qualiantech.com>
Date: Thu Nov 19 15:00:59 2015 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/2d114abaa2dd25c956f87060637bbf6ab974b95e [^]

Fixes issue 31379 : Generate Receipt Doc No. in Sequence irrespective of user session

---
M web/org.openbravo.retail.posterminal/js/closecash/model/cashup-model.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
---
(0082077)
hgbot   
2015-11-23 12:59   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 7df46dac9163b8fc6a1e5f1d4a60bc229a980a3b
Author: Ranjith <ranjith <at> qualiantech.com>
Date: Mon Nov 23 17:27:05 2015 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/7df46dac9163b8fc6a1e5f1d4a60bc229a980a3b [^]

Fixes issue 31379 : Generate Receipt Doc No. in Sequence irrespective of user session

In pointofsale-modal.js, 'session' attribute has been removed from the criteria, because to get the max of Document No, Quotation No from unpaid orders irrespective of users session
In cashup-model.js, 'session' attribute has been added to criteria to find orders based on user session

---
M web/org.openbravo.retail.posterminal/js/closecash/model/cashup-model.js
M web/org.openbravo.retail.posterminal/js/pointofsale/model/pointofsale-model.js
---