Contacts
This commit is contained in:
@@ -9,8 +9,8 @@ using System.Collections.Generic;
|
||||
|
||||
namespace Sarand.BusinessMgr.Net.Standard.Base.Mgr
|
||||
{
|
||||
//=======================================================================
|
||||
public partial class SbmAccountMgr
|
||||
//=======================================================================
|
||||
public partial class SbmAccountMgr
|
||||
{
|
||||
//*******************************************************************
|
||||
// O r g a n i s a t i o n
|
||||
@@ -178,7 +178,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.Mgr
|
||||
}
|
||||
|
||||
// Additonal organisation options - to support non-standard configuration options:
|
||||
itemOptionDfns.AddRange(ConfigConsole.GetAdditionalOrganisationOptions());
|
||||
itemOptionDfns.AddRange(SessionConsole.GetAdditionalOrganisationOptions());
|
||||
|
||||
return itemOptionDfns;
|
||||
}
|
||||
@@ -218,7 +218,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.Mgr
|
||||
private OrganisationOptionData InitOrganisationOptionData()
|
||||
{
|
||||
OrganisationOptionData orgOptData = new OrganisationOptionData();
|
||||
using (SbmConfigConsole console = SbmGlobals.Application.CreateConfigConsole(UserContext.SessionContext))
|
||||
using (SbmSessionConsole sessionConsole = SbmGlobals.Application.CreateSessionConsole(UserContext))
|
||||
using (SbmAccountsDfn accounts = new SbmAccountsDfn(UserContext))
|
||||
{
|
||||
// Option types.
|
||||
@@ -241,8 +241,8 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.Mgr
|
||||
bool bAllowSalesDispatches = (AllowTransactionType(Sbm.TransactionType.SalesDispatch));
|
||||
bool bAllowSalesInvoices = ((AllowTransactionType(Sbm.TransactionType.SalesInvoice) || AllowTransactionType(Sbm.TransactionType.ProformaSalesInvoice)));
|
||||
bool bAllowPurchaseOrders = ((AllowTransactionType(Sbm.TransactionType.PurchaseOrder) || AllowTransactionType(Sbm.TransactionType.ProformaPurchaseOrder)));
|
||||
bool bAllowInterfaces = (console.AllowInterfaces(UserContext));
|
||||
bool bAllowInterfaces_File = (bAllowInterfaces && console.AllowInterfaceCategory(UserContext, SaInterfaceCategory.File));
|
||||
bool bAllowInterfaces = (sessionConsole.AllowInterfaces());
|
||||
bool bAllowInterfaces_File = (bAllowInterfaces && sessionConsole.AllowInterfaceCategory(SaInterfaceCategory.File));
|
||||
|
||||
// Values:
|
||||
List<TypeCodeDesc> orgOptionValues = SbmSystem.GetCodesOfType(UserContext, Sbm.SystemCode.OrgOption_Value);
|
||||
@@ -251,7 +251,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.Mgr
|
||||
orgOptData.Contexts_Value.Add(orgOptionValues.GetCodeDescForType(Sbm.OrgOption_Value.MaxTransactionsQueriedForEmptyFilter));
|
||||
if (CodeTypeHasCodes(Sbm.ApplCodeType.CommodityPromotion))
|
||||
orgOptData.Contexts_Value.Add(orgOptionValues.GetCodeDescForType(Sbm.OrgOption_Value.AlternativePromotionText));
|
||||
if (console.GetRequirementCostingConfig(UserContext).AllowRequirementCosting(Sbm.TransactionType.SalesOrder))
|
||||
if (sessionConsole.GetRequirementCostingConfig().AllowRequirementCosting(Sbm.TransactionType.SalesOrder))
|
||||
orgOptData.Contexts_Value.Add(orgOptionValues.GetCodeDescForType(Sbm.OrgOption_Value.CostLabourRateDefault));
|
||||
orgOptData.Contexts_Value.Add(orgOptionValues.GetCodeDescForType(Sbm.OrgOption_Value.CommoditiesAllowedNegativePrice));
|
||||
if (AllowConfigOption(Sbm.ConfigOption.TransactionSplitTimes))
|
||||
|
||||
Reference in New Issue
Block a user