Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0015400Openbravo ERP[Modules] Advanced Payables and Receivables IDLpublic2010-12-10 12:132011-05-24 10:57
maite 
mirurita 
urgentmajoralways
closedfixed 
5
 
 
Core
No
0015400: Transaction duplicated when running process in parallel
If 2 people try to add same transaction at same time, similar transaction is added twice.
It seems that document is not locked.

See screenshot attached for final result
1. Sales Management || Transactions || Sales Invoice || Header : create sales invoice and pay it.
2. Access same application for 2 different computers and go to Financial Management || Receivables & Payables || Transactions || Financial Account || Account >> Transactions
3. Both of you press "Add Transaction" and choose same Payment. Press "Accept" button
4. You will see that two similar transactions have been added, although message says that 1 row inserted
closingMay2011
depends on backport 0015467 closed mirurita Transaction duplicated when running process in parallel 
related to defect 0016071 closed mirurita New unique constraint in FIN_FINACC_TRANSACTION prevents update 
related to defect 0017485 closed mirurita Transaction duplicated when adding GLItem Transactions in parallel 
png duplicatedtransaction.png (175,514) 2010-12-10 12:27
https://issues.openbravo.com/file_download.php?file_id=3420&type=bug
png
Issue History
2010-12-10 12:13maiteNew Issue
2010-12-10 12:13maiteAssigned To => adrianromero
2010-12-10 12:13maiteIssue Monitored: networkb
2010-12-10 12:27maiteFile Added: duplicatedtransaction.png
2010-12-15 12:21adrianromeroAssigned Toadrianromero => eduardo_Argal
2010-12-16 16:43miruritaProjectModules => Openbravo ERP
2010-12-16 17:17miruritaAssigned Toeduardo_Argal => mirurita
2010-12-16 17:18hgbotCheckin
2010-12-16 17:18hgbotNote Added: 0033243
2010-12-16 17:18hgbotStatusnew => resolved
2010-12-16 17:18hgbotResolutionopen => fixed
2010-12-16 17:18hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/b1c69dc8f7d1c0d7150aaba249f1c9872f5b0612 [^]
2010-12-16 18:18miruritaStatusresolved => new
2010-12-16 18:18miruritaResolutionfixed => open
2010-12-16 18:18miruritaStatusnew => scheduled
2010-12-16 18:18miruritafix_in_branch => pi
2010-12-16 18:18miruritaStatusscheduled => resolved
2010-12-16 18:18miruritaResolutionopen => fixed
2010-12-30 13:14hudsonbotCheckin
2010-12-30 13:14hudsonbotNote Added: 0033452
2011-02-28 10:57alostaleRelationship addedrelated to 0016071
2011-05-24 10:02dalsasuaTag Attached: closingMay2011
2011-05-24 10:57dalsasuaStatusresolved => closed
2011-06-03 09:17maiteRelationship addedrelated to 0017485

Notes
(0033243)
hgbot   
2010-12-16 17:18   
Repository: erp/devel/pi
Changeset: b1c69dc8f7d1c0d7150aaba249f1c9872f5b0612
Author: Mikel Irurita <mikel.irurita <at> openbravo.com>
Date: Thu Dec 16 17:17:34 2010 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/b1c69dc8f7d1c0d7150aaba249f1c9872f5b0612 [^]

Fixes issue 15400: Transaction duplicated when running process in parallel

---
M modules/org.openbravo.advpaymentmngt/src/org/openbravo/advpaymentmngt/ad_actionbutton/AddTransaction.java
M src-db/database/model/tables/FIN_FINACC_TRANSACTION.xml
M src-db/database/sourcedata/AD_MESSAGE.xml
---
(0033452)
hudsonbot   
2010-12-30 13:14   
A changeset related to this issue has been promoted to main after passing a series of tests and an OBX has been generated:

Changeset: http://code.openbravo.com/erp/devel/main/rev/b1c69dc8f7d1 [^]
Merge Changeset: http://code.openbravo.com/erp/devel/main/rev/7d7e5eebcc62 [^]
Tests: http://builds.openbravo.com/view/int/ [^]
OBX: http://builds.openbravo.com/erp/core/obx/OpenbravoERP-2.50CI.19448.obx [^]