IDEMPIERE-3156 SubAcct not working on Account Combination Dialog / make it work also in Product window
This commit is contained in:
parent
e8cba8acc5
commit
a9b9b143bc
|
@ -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
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue