Class TransactionCodeAllocateToTransaction
Inheritance
TransactionCodeAllocateToTransaction
Assembly: LemonEdge.API.Entities.FinancialServices.Auto.dll
Syntax
[DataContract]
public class TransactionCodeAllocateToTransaction : BaseEntity, ITransactionCodeAllocateToTransaction, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, ICloneableAsync<ITransactionCodeAllocateToTransaction>
Constructors
TransactionCodeAllocateToTransaction()
Declaration
public TransactionCodeAllocateToTransaction()
Properties
AllowUIEditing
Indicates if the user should be allowed to edit the generated transaction via the UI. Useful for automated offsets in the same batch to prevent the user modifying them.
Declaration
public bool AllowUIEditing { get; set; }
Property Value
AutomaticSubTransaction
Indicates if the offset should automatically be generated as a sub-transaction or not. Requires the transaction code to allow sub transactions.
Declaration
[DatabasePropertyValidation("MyItem.AutomaticSubTransaction != LemonEdge.API.Entities.FinancialServices.Transactions.TransactionCodeOffsetType.None", "await LemonEdge.API.Entities.FinancialServices.Transactions.TransactionCodeOffsetValidate.AllowsSubTransactions(MyItem, Data)", "Offsets can only be automatic if the transaction code allows sub transactions.")]
[EnumDataType(typeof(TransactionCodeOffsetType))]
public TransactionCodeOffsetType AutomaticSubTransaction { get; set; }
Property Value
Declaration
[NotMapped]
public string AutomaticSubTransaction_Tooltip { get; set; }
Property Value
CreateTransactionForEachAllocation
Indicates a transaction should be created for each allocation
Declaration
public bool CreateTransactionForEachAllocation { get; set; }
Property Value
A formula that returns true or false indicating if an offset should be created for the allocation
Declaration
public string FormulaForAllocationGuard { get; set; }
Property Value
A formula that returns true or false indicating if an offset should be automatically created as a sub-transaction when the AutomaticSubTransaction type of this offset is not None
Declaration
public string FormulaForAutomaticSubTransactionGuard { get; set; }
Property Value
This is the formula to use to get the counterparty id for the offset transaction
Declaration
public string FormulaForCounterpartyID { get; set; }
Property Value
This is the formula to use to get the entity id for the offset transaction
Declaration
public string FormulaForEntityID { get; set; }
Property Value
This is the formula to use to get the instrument id for the offset transaction
Declaration
public string FormulaForInstrumentID { get; set; }
Property Value
This is the formula to use to get the ledger id for the offset transaction. The hardcoded Ledger option for an offset takes precedence over this - leave null for this to be evaluated.
Declaration
public string FormulaForLedgerID { get; set; }
Property Value
A formula that returns the id of a local currency to use for the offset instead of the current local currency. The Transaction Code must be setup to allow local currency override for this to work.
Declaration
public string FormulaForLocalCurrencyOverride { get; set; }
Property Value
A formula that returns the id of the original entity to use for the offset instead of the source original entity. The Transaction Code must be setup to allow original entity override for this to work.
Declaration
public string FormulaForOriginalEntityID { get; set; }
Property Value
A formula that returns the id of an original instrument to use for the offset instead of the source original instrument. The Transaction Code must be setup to allow original instrument override for this to work.
Declaration
public string FormulaForOriginalInstrumentID { get; set; }
Property Value
This is the formula to use to get the entity id for the offset transaction
Declaration
public string FormulaForPathID { get; set; }
Property Value
FormulaForProcessingPostCreation
A formula for processing the final offset transaction after it is created from the offset process
Declaration
public string FormulaForProcessingPostCreation { get; set; }
Property Value
This is the formula to use to get the related entity id for the offset transaction
Declaration
public string FormulaForRelatedEntityID { get; set; }
Property Value
This is the formula to use to get the transaction date for the offset transaction
Declaration
public string FormulaForTransactionDate { get; set; }
Property Value
This is the formula to use to get the underlying entity id for the offset transaction
Declaration
public string FormulaForUnderlyingEntityID { get; set; }
Property Value
LedgerID
Links to ILedger. The ledger to use when creating a new transaction for this transaction, if null it uses the ledger setup in the transaction code or the one specified through the Ledger Formula.
Declaration
public Guid? LedgerID { get; set; }
Property Value
LedgerID_Label
Declaration
public string LedgerID_Label { get; set; }
Property Value
LedgerID_Label_Silent
Declaration
[NotMapped]
public string LedgerID_Label_Silent { get; set; }
Property Value
Name
Declaration
[RequiredNoDefaultIDValidation]
[StringLength(500)]
public string Name { get; set; }
Property Value
TargetTransactionCodeID
[Key] Links to ITransactionCode. The target transaction code to create a transaction with
Declaration
[RequiredNoDefaultIDValidation]
public Guid TargetTransactionCodeID { get; set; }
Property Value
TargetTransactionCodeID_Label
Declaration
public string TargetTransactionCodeID_Label { get; set; }
Property Value
TargetTransactionCodeID_Label_Silent
Declaration
[NotMapped]
public string TargetTransactionCodeID_Label_Silent { get; set; }
Property Value
TransactionCodeID
[Key] Links to ITransactionCode. The parent transaction code this processor is a member of
Declaration
[RequiredNoDefaultIDValidation]
public Guid TransactionCodeID { get; set; }
Property Value
TransactionCodeID_Label
Declaration
public string TransactionCodeID_Label { get; set; }
Property Value
TransactionCodeID_Label_Silent
Declaration
[NotMapped]
public string TransactionCodeID_Label_Silent { get; set; }
Property Value
TransactionFields
Fields to be offset during the transaction too
Declaration
[EnumDataType(typeof(OffsetFields))]
public OffsetFields TransactionFields { get; set; }
Property Value
Declaration
[NotMapped]
public string TransactionFields_Tooltip { get; set; }
Property Value
Methods
CopyFromEntity(IBaseEntity)
Declaration
protected override void CopyFromEntity(IBaseEntity src)
Parameters
Overrides
CopyFromSource(ITransactionCodeAllocateToTransaction)
Updates all properties in this item to have the same properties as the source object.
Declaration
public void CopyFromSource(ITransactionCodeAllocateToTransaction source)
Parameters
ToString()
Declaration
public override string ToString()
Returns
Overrides
Implements
Extension Methods