Esempio n. 1
0
        }       //	setAccount

        /// <summary>
        ///	Get Account Combination based on Account and Overwrite
        /// </summary>
        /// <returns>account</returns>
        public MAccount GetAccount()
        {
            MAccount acct = MAccount.Get(GetCtx(),
                                         _account.GetAD_Client_ID(),
                                         IsOverwriteOrg() && GetOrg_ID() != 0 ? GetOrg_ID() : _account.GetAD_Org_ID(),
                                         _account.GetC_AcctSchema_ID(),
                                         IsOverwriteAcct() && GetAccount_ID() != 0 ? GetAccount_ID() : _account.GetAccount_ID(),
                                         _account.GetC_SubAcct_ID(),
                                         //
                                         IsOverwriteProduct() ? GetM_Product_ID() : _account.GetM_Product_ID(),
                                         IsOverwriteBPartner() ? GetC_BPartner_ID() : _account.GetC_BPartner_ID(),
                                         IsOverwriteOrgTrx() ? GetAD_OrgTrx_ID() : _account.GetAD_OrgTrx_ID(),
                                         IsOverwriteLocFrom() ? GetC_LocFrom_ID() : _account.GetC_LocFrom_ID(),
                                         IsOverwriteLocTo() ? GetC_LocTo_ID() : _account.GetC_LocTo_ID(),
                                         IsOverwriteSalesRegion() ? GetC_SalesRegion_ID() : _account.GetC_SalesRegion_ID(),
                                         IsOverwriteProject() ? GetC_Project_ID() : _account.GetC_Project_ID(),
                                         IsOverwriteCampaign() ? GetC_Campaign_ID() : _account.GetC_Campaign_ID(),
                                         IsOverwriteActivity() ? GetC_Activity_ID() : _account.GetC_Activity_ID(),
                                         IsOverwriteUser1() ? GetUser1_ID() : _account.GetUser1_ID(),
                                         IsOverwriteUser2() ? GetUser2_ID() : _account.GetUser2_ID(),
                                         _account.GetUserElement1_ID(),
                                         _account.GetUserElement2_ID());

            return(acct);
        }       //	setAccount