IDEMPIERE-2629 M_StorageOnHand Qty and Total M_Transaction Qty did not match
This commit is contained in:
parent
b375650101
commit
7c80d8caa4
|
@ -1362,6 +1362,8 @@ public class DB_Oracle implements AdempiereDatabase
|
||||||
}
|
}
|
||||||
rs = stmt.executeQuery();
|
rs = stmt.executeQuery();
|
||||||
if (rs.next()) {
|
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;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -1089,6 +1089,8 @@ public class DB_PostgreSQL implements AdempiereDatabase
|
||||||
|
|
||||||
rs = stmt.executeQuery();
|
rs = stmt.executeQuery();
|
||||||
if (rs.next()) {
|
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;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in New Issue