IDEMPIERE-862 Create lines from MPS Lines function is not working - fix deadlock problem

This commit is contained in:
Elaine Tan 2013-04-26 16:41:33 +08:00
parent eba3553ec0
commit 2ace795776
1 changed files with 1 additions and 1 deletions

View File

@ -579,7 +579,7 @@ public class MPackage extends X_M_Package
int[] ids = MPackageMPS.getAllIDs(MPackageMPS.Table_Name, "M_Package_ID = " + getM_Package_ID(), get_TrxName());
for (int i = 0; i < ids.length; i++)
{
MPackageMPS packageMPS = new MPackageMPS(getCtx(), ids[i], get_TrxName());
MPackageMPS packageMPS = new MPackageMPS(getCtx(), ids[i], null);
if (packageMPS.getWeight() == null || packageMPS.getWeight().compareTo(BigDecimal.ZERO) == 0)
{
String sql = "SELECT SUM(LineWeight) FROM X_PackageLineWeight plw WHERE plw.M_PackageMPS_ID=?";