Class TransactionContext
Inheritance
TransactionContext
Inherited Members
StandardFunctions.IsIn(object, object, object, object, object, object, object, object, object, object, object)
StandardFunctions.SelectCase(object, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>)
StandardFunctions.SelectCase(object, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>)
StandardFunctions.SelectCase(object, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>)
StandardFunctions.SelectCase(object, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>)
StandardFunctions.SelectCase(object, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>)
StandardFunctions.SelectCase(object, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>, Func<Task<object>>)
Assembly: LemonEdge.API.Entities.FinancialServices.dll
Syntax
public class TransactionContext : FormulaFunctionsWithContext<ITransaction>, IFormulaFunctionsWithContext<ITransaction>, IFormulaFunctionsWithContext, IFormulaFunctions
Constructors
TransactionContext(IEntityRetriever, IReadOnlyCache, UserInfo, ITransaction, ITransactionProcessor, ITransactionAllocated, IFormulaFunctionsServiceContext)
Creates a new transaction context for evaluating formulas against transaction code configuration
Declaration
public TransactionContext(IEntityRetriever retriever, IReadOnlyCache cache, UserInfo user, ITransaction transaction, ITransactionProcessor processor, ITransactionAllocated allocated, IFormulaFunctionsServiceContext services)
Parameters
Properties
Allocated
Declaration
protected ITransactionAllocated Allocated { get; set; }
Property Value
OriginalContext
Used when post processing an offset transaction. This holds the original context, with the original transaction/allocation that was being offset
Declaration
public TransactionContext OriginalContext { get; set; }
Property Value
Posting
Declaration
protected IGLPosting Posting { get; set; }
Property Value
Processor
Declaration
public ITransactionProcessor Processor { get; }
Property Value
TempFuncValue1
Declaration
public decimal TempFuncValue1 { get; set; }
Property Value
TempFuncValue2
Declaration
public decimal TempFuncValue2 { get; set; }
Property Value
TempLocalValue1
Declaration
public decimal TempLocalValue1 { get; set; }
Property Value
TempLocalValue2
Declaration
public decimal TempLocalValue2 { get; set; }
Property Value
TempReportingValue1
Declaration
public decimal TempReportingValue1 { get; set; }
Property Value
TempReportingValue2
Declaration
public decimal TempReportingValue2 { get; set; }
Property Value
Methods
GetAllocatedEntity()
Declaration
[FormulaFunction(Name = "GetAllocatedEntity", Type = "Transactions", Description = "Returns the current allocated entity being processed.", Params = "", ParamCount = 1)]
public ITransactionAllocated GetAllocatedEntity()
Returns
GetFuncTransactionValue(string)
Declaration
[FormulaFunction(Name = "GetFuncTransactionValue", Type = "Transactions", Description = "Returns the func value for the specified transaction type value for this transaction.", Params = "1. The code of the transaction value to return", ParamCount = 1)]
public decimal GetFuncTransactionValue(string typeCode)
Parameters
Type |
Name |
Description |
string |
typeCode |
|
Returns
GetFuncTransactionValue(string, ITransactionAllocated)
Declaration
[FormulaFunction(Name = "GetFuncTransactionValue", Type = "Transactions", Description = "Returns the func value for the specified transaction type value for this transaction.", Params = "1. The code of the transaction allocation value to return.\r\n2. Optionally the allocation to return the value from. If null GetAllocatedEntity() is used instead.", ParamCount = 2)]
public decimal GetFuncTransactionValue(string typeCode, ITransactionAllocated allocation)
Parameters
Returns
GetLocalTransactionValue(string)
Declaration
[FormulaFunction(Name = "GetLocalTransactionValue", Type = "Transactions", Description = "Returns the local value for the specified transaction type value for this transaction.", Params = "1. The code of the transaction value to return", ParamCount = 1)]
public decimal GetLocalTransactionValue(string typeCode)
Parameters
Type |
Name |
Description |
string |
typeCode |
|
Returns
GetLocalTransactionValue(string, ITransactionAllocated)
Declaration
[FormulaFunction(Name = "GetLocalTransactionValue", Type = "Transactions", Description = "Returns the local value for the specified transaction type value for this transaction allocated amount.", Params = "1. The code of the transaction allocation value to return.\r\n2. Optionally the allocation to return the value from. If null GetAllocatedEntity() is used instead.", ParamCount = 2)]
public decimal GetLocalTransactionValue(string typeCode, ITransactionAllocated allocation)
Parameters
Returns
GetPosting()
Declaration
[FormulaFunction(Name = "GetPosting", Type = "Transactions", Description = "Returns the current posting being processed for formulas such as those evaluating a sub account.", Params = "", ParamCount = 1)]
public IGLPosting GetPosting()
Returns
GetReportingTransactionValue(string)
Declaration
[FormulaFunction(Name = "GetReportingTransactionValue", Type = "Transactions", Description = "Returns the reporting value for the specified transaction type value for this transaction.", Params = "1. The code of the transaction value to return", ParamCount = 1)]
public decimal GetReportingTransactionValue(string typeCode)
Parameters
Type |
Name |
Description |
string |
typeCode |
|
Returns
GetReportingTransactionValue(string, ITransactionAllocated)
Declaration
[FormulaFunction(Name = "GetReportingTransactionValue", Type = "Transactions", Description = "Returns the reporting value for the specified transaction type value for this transaction.", Params = "1. The code of the transaction allocation value to return.\r\n2. Optionally the allocation to return the value from. If null GetAllocatedEntity() is used instead.", ParamCount = 2)]
public decimal GetReportingTransactionValue(string typeCode, ITransactionAllocated allocation)
Parameters
Returns
GetSharedProperty(string)
Declaration
[FormulaFunction(Name = "GetSharedProperty", Type = "Transactions", Description = "Gets an object stored under the shared property name otherwise null.", Params = "1. The property name.", ParamCount = 1)]
public object GetSharedProperty(string propertyName)
Parameters
Type |
Name |
Description |
string |
propertyName |
|
Returns
SetAllocatedEntity(ITransactionAllocated)
Declaration
public void SetAllocatedEntity(ITransactionAllocated allocated)
Parameters
SetPosting(IGLPosting)
Declaration
public void SetPosting(IGLPosting posting)
Parameters
SetSharedProperty(string, object)
Declaration
[FormulaFunction(Name = "SetSharedProperty", Type = "Transactions", Description = "Sets a property that can be shared across transaction type values.", Params = "1. The property name.\r\n2. The property object", ParamCount = 2)]
public void SetSharedProperty(string propertyName, object value)
Parameters
Implements
Extension Methods