IDEMPIERE-2629 M_StorageOnHand Qty and Total M_Transaction Qty did not match

This commit is contained in:
Carlos Ruiz 2015-05-20 20:41:44 -05:00
parent b375650101
commit 7c80d8caa4
2 changed files with 4 additions and 0 deletions

View File

@ -1362,6 +1362,8 @@ public class DB_Oracle implements AdempiereDatabase
}
rs = stmt.executeQuery();
if (rs.next()) {
// reload the record being locked - it could have changed in a different thread - IDEMPIERE-2629
po.load(po.get_TrxName());
return true;
} else {
return false;

View File

@ -1089,6 +1089,8 @@ public class DB_PostgreSQL implements AdempiereDatabase
rs = stmt.executeQuery();
if (rs.next()) {
// reload the record being locked - it could have changed in a different thread - IDEMPIERE-2629
po.load(po.get_TrxName());
return true;
} else {
return false;