From 2c7d24392912e3fa4794dc398ae7dad5e12c8abe Mon Sep 17 00:00:00 2001 From: Carlos Ruiz Date: Thu, 12 Nov 2009 01:24:55 +0000 Subject: [PATCH] Fix [2896337] - Client Accounting Processor lock on repost https://sourceforge.net/tracker/?func=detail&aid=2896337&group_id=176962&atid=879332 --- base/src/org/compiere/acct/Doc.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/base/src/org/compiere/acct/Doc.java b/base/src/org/compiere/acct/Doc.java index 13324c1dd1..f7c1410fc9 100644 --- a/base/src/org/compiere/acct/Doc.java +++ b/base/src/org/compiere/acct/Doc.java @@ -885,10 +885,13 @@ public abstract class Doc */ private void unlock() { + String trxName = null; // outside trx if on server + if (MClient.isClientAccounting()) + trxName = getTrxName(); // on trx if it's in client StringBuffer sql = new StringBuffer ("UPDATE "); sql.append(get_TableName()).append( " SET Processing='N' WHERE ") .append(get_TableName()).append("_ID=").append(p_po.get_ID()); - DB.executeUpdate(sql.toString(), null); // outside trx + DB.executeUpdate(sql.toString(), trxName); } // unlock