IDEMPIERE-2447 Migration script from packin adding unnecessary updates / fix issue -> Unknown column reference type=null

This commit is contained in:
Carlos Ruiz 2015-04-07 21:06:24 -05:00
parent 1cac3f646f
commit 8ff9b52d2c
1 changed files with 6 additions and 4 deletions

View File

@ -204,11 +204,13 @@ public class PoFiller{
{
Element orgElement = element.properties.get("AD_Org_ID");
String sAD_Org_ID = orgElement != null ? orgElement.contents.toString() : null;
if (sAD_Org_ID != null && sAD_Org_ID.equals("0") && po.getAD_Org_ID() != 0)
if (sAD_Org_ID != null && sAD_Org_ID.equals("0")) {
if (po.getAD_Org_ID() != 0) {
po.setAD_Org_ID(0);
else if (sAD_Org_ID != null && sAD_Org_ID.equals("@AD_Org_ID@"))
}
} else if (sAD_Org_ID != null && sAD_Org_ID.equals("@AD_Org_ID@")) {
po.setAD_Org_ID(Env.getAD_Org_ID(ctx.ctx));
else {
} else {
if (setTableReference("AD_Client_ID") >= 0)
setTableReference("AD_Org_ID");
}