IDEMPIERE-3156 SubAcct not working on Account Combination Dialog / refresh subacct lookup on initial load

This commit is contained in:
Carlos Ruiz 2016-08-11 21:08:29 +02:00
parent a9b9b143bc
commit dc82ae4f78
1 changed files with 9 additions and 1 deletions

View File

@ -471,8 +471,16 @@ public final class WAccountDialog extends Window
statusBar.setStatusDB("");
// Initial value
if (m_mAccount.C_ValidCombination_ID != 0)
if (m_mAccount.C_ValidCombination_ID != 0) {
m_mTab.navigate(0);
if (f_Account_ID.getValue() instanceof Integer) {
Env.setContext(Env.getCtx(), m_WindowNo, "Account_ID", (Integer)f_Account_ID.getValue());
Env.setContext(Env.getCtx(), m_WindowNo, 0, "Account_ID", (Integer)f_Account_ID.getValue());
if (f_SubAcct_ID != null) {
f_SubAcct_ID.dynamicDisplay();
}
}
}
log.config("fini");
return true;