Openbravo Issue Tracking System - Retail Modules
View Issue Details
0038969Retail ModulesWeb POSpublic2018-07-16 13:232018-08-27 14:52
asiermartirena 
ranjith_qualiantech_com 
normalmajoralways
closedfixed 
5
 
RR18Q4 
marvintm
No
0038969: If a cashup with an approval is executed twice, an error is raised due to an ID duplication
When for any problem a cashup is sent to be synchronized twice, if the cashup has any approval, as this approval is taking the same ID than the already created cashup (and approval), an error is being raised due to the approval ID duplication.

This approval should only be saved on the first try.
Is necessary to send a cashup synchronization request that has an approval twice.
Attached the proposed patch.
No tags attached.
related to defect 0039092 closed migueldejuana In some circumstances, cashup may be synchronized twice and the second one generates entry in "Errors while importing POS data" 
? issue_38969.export (2,857) 2018-07-16 13:26
https://issues.openbravo.com/file_download.php?file_id=11967&type=bug
Issue History
2018-07-16 13:23asiermartirenaNew Issue
2018-07-16 13:23asiermartirenaAssigned To => Retail
2018-07-16 13:23asiermartirenaResolution time => 1532901600
2018-07-16 13:23asiermartirenaTriggers an Emergency Pack => No
2018-07-16 13:26asiermartirenaFile Added: issue_38969.export
2018-07-16 15:03ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2018-07-16 15:03ranjith_qualiantech_comStatusnew => scheduled
2018-07-20 08:17ranjith_qualiantech_comNote Added: 0105816
2018-07-20 08:17ranjith_qualiantech_comStatusscheduled => resolved
2018-07-20 08:17ranjith_qualiantech_comResolutionopen => fixed
2018-07-20 08:17ranjith_qualiantech_comNote Edited: 0105816bug_revision_view_page.php?bugnote_id=0105816#r17448
2018-07-26 11:02marvintmReview Assigned To => marvintm
2018-07-26 11:02marvintmStatusresolved => closed
2018-07-26 11:02marvintmFixed in Version => RR18Q4
2018-08-27 14:52ngarciaRelationship addedrelated to 0039092

Notes
(0105816)
ranjith_qualiantech_com   
2018-07-20 08:17   
Repository: erp/pmods/org.openbravo.retail.posterminal
Changeset: 1ad43c7c4a84b337cd8e23a082b41feb17ed7d15
Author: Asier Martirena <asier.martirena <at> openbravo.com>
Date: Wed Jul 18 16:13:45 2018 +0530
URL: http://code.openbravo.com/erp/pmods/org.openbravo.retail.posterminal/rev/1ad43c7c4a84b337cd8e23a082b41feb17ed7d15 [^] [^]

Fixed issue 38969: The cashup approval should be created only once to avoid an exception

---
M src/org/openbravo/retail/posterminal/ProcessCashClose.java