Openbravo Issue Tracking System - Retail Modules
View Issue Details
0030072Retail ModulesCash uppublic2015-06-01 14:182015-06-22 13:05
malsasua 
Retail 
highmajoralways
closedfixed 
20Community Appliance
 
RR15Q1.5RR15Q1.5 
malsasua
No
0030072: duplicated invoices during the cashup process
if the request of cashup is sent twice, the invoices are duplicated
(debugging with eclipse, add a breakpoint in line
https://code.openbravo.com/erp/pmods/org.openbravo.mobile.core/file/351d0aafb4d3/src/org/openbravo/mobile/core/process/DataSynchronizationProcess.java#l213 [^] )

. in web pos
. create a receipt
. do and finish a cashup

in eclipse, the execution is stopped by the breakpoint.

. refresh the web pos (clicking F5)

when the web pos has refreshed, then remove the breakpoint and continue the execution in eclipse.

. go to back office, two similar invoices have been created
Approved
blocks defect 0030066 closed marvintm duplicated invoices during the cashup process 
blocks defect 0030527 closed egoitz Script to fix broken/wrong data produceb by issue 0030072 
Issue History
2015-06-02 12:23malsasuaTypedefect => backport
2015-06-02 12:23malsasuaTarget Version => RR15Q1.6
2015-06-10 12:49dmitry_mezentsevTag Attached: Approved
2015-06-12 12:41marvintmTarget VersionRR15Q1.6 => RR15Q1.5
2015-06-15 20:08hgbotCheckin
2015-06-15 20:08hgbotNote Added: 0078307
2015-06-15 20:08hgbotStatusscheduled => resolved
2015-06-15 20:08hgbotResolutionopen => fixed
2015-06-15 20:08hgbotFixed in SCM revision => http://code.openbravo.com/retail/backports/3.0RR15Q1.5/org.openbravo.retail.posterminal/rev/d526deba54293bc60788214efeb1e4004bf71a8f [^]
2015-06-22 13:05malsasuaReview Assigned To => malsasua
2015-06-22 13:05malsasuaNote Added: 0078413
2015-06-22 13:05malsasuaStatusresolved => closed
2015-06-22 13:05malsasuaFixed in Version => RR15Q1.5
2015-08-09 16:50rbianchiniRelationship addedblocks 0030527

Notes
(0078307)
hgbot   
2015-06-15 20:08   
Repository: retail/backports/3.0RR15Q1.5/org.openbravo.retail.posterminal
Changeset: d526deba54293bc60788214efeb1e4004bf71a8f
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Mon Jun 15 20:08:31 2015 +0200
URL: http://code.openbravo.com/retail/backports/3.0RR15Q1.5/org.openbravo.retail.posterminal/rev/d526deba54293bc60788214efeb1e4004bf71a8f [^]

Fixed issue 30072. Now the cash up record will be locked to prevent the execution of two cash ups at the same time.

---
M src/org/openbravo/retail/posterminal/ProcessCashClose.java
---
(0078413)
malsasua   
2015-06-22 13:05   
verified