"New BP Record" from Customer Sales Order defaulting org not referencing org on log in.

This commit is contained in:
Heng Sin Low 2009-07-03 04:32:38 +00:00
parent db50e2b2a3
commit 1d15480ec1
2 changed files with 2 additions and 0 deletions

View File

@ -398,6 +398,7 @@ public final class VBPartner extends CDialog implements ActionListener
{
int AD_Client_ID = Env.getAD_Client_ID(Env.getCtx());
m_partner = MBPartner.getTemplate(Env.getCtx(), AD_Client_ID);
m_partner.setAD_Org_ID(Env.getAD_Org_ID(Env.getCtx())); // Elaine 2009/07/03
boolean isSOTrx = !"N".equals(Env.getContext(Env.getCtx(), m_WindowNo, "IsSOTrx"));
m_partner.setIsCustomer (isSOTrx);
m_partner.setIsVendor (!isSOTrx);

View File

@ -397,6 +397,7 @@ public class WBPartner extends Window implements EventListener, ValueChangeListe
{
int AD_Client_ID = Env.getAD_Client_ID(Env.getCtx());
m_partner = MBPartner.getTemplate(Env.getCtx(), AD_Client_ID);
m_partner.setAD_Org_ID(Env.getAD_Org_ID(Env.getCtx())); // Elaine 2009/07/03
boolean isSOTrx = !"N".equals(Env.getContext(Env.getCtx(), m_WindowNo, "IsSOTrx"));
m_partner.setIsCustomer (isSOTrx);
m_partner.setIsVendor (!isSOTrx);