IDEMPIERE-3156 SubAcct not working on Account Combination Dialog / make it work also in Product window

This commit is contained in:
Carlos Ruiz 2016-08-11 14:22:35 +02:00
parent e8cba8acc5
commit a9b9b143bc
2 changed files with 11 additions and 0 deletions

View File

@ -390,6 +390,15 @@ public final class Env
ctx.setProperty(WindowNo+"|"+context, String.valueOf(value));
} // setContext
public static void setContext (Properties ctx, int WindowNo, int TabNo, String context, int value)
{
if (ctx == null || context == null)
return;
if (log.isLoggable(Level.FINER)) log.finer("Context("+WindowNo+") " + context + "==" + value);
//
ctx.setProperty(WindowNo+"|"+TabNo+"|"+context, String.valueOf(value));
} // setContext
/**
* Set Context for Window to Y/N Value
* @param ctx context

View File

@ -1212,7 +1212,9 @@ public final class WAccountDialog extends Window
Object newValue = evt.getNewValue();
if (newValue instanceof Integer) {
Env.setContext(Env.getCtx(), m_WindowNo, "Account_ID", ((Integer)newValue).intValue());
Env.setContext(Env.getCtx(), m_WindowNo, 0, "Account_ID", ((Integer)newValue).intValue());
if (f_SubAcct_ID != null) {
f_SubAcct_ID.setValue(null);
f_SubAcct_ID.dynamicDisplay();
}
}