Interface ITransactionCodeValue
The system entity for a transaction code value, whcih specifies which values should be tracked by this transaction
See https://help.lemonedge.com/help/settings/financial-services-transactions/transaction-codes/values-view.html for more information
Inherited Members
Namespace: LemonEdge.API.Entities.FinancialServices.Transactions
Assembly: LemonEdge.API.Entities.FinancialServices.dll
Syntax
[EntityDefinition(EntityID.TransactionCodeValue, "dbo.LT_TransactionCodeValues", "TransactionCodeValue", IsStandingDataEntity = true)]
[DefaultEntityIcon(ImageType.TransactionValue)]
public interface ITransactionCodeValue : IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties
Properties
AllowValueAutoGL
Indicates that if this Transaction Type Value has any GL Entries configured to be automatically created against it that these should be created by the Transaction.
By default this is true to say any GL Postings configured for this Value should be created against the Transaction.You can override this to False to indicate the only GL Postings you want to be created are the ones directly configured against this Transaction Code itself
Declaration
[EntityProperty(SQLType.Bit, false)]
[EntityDescription("Indicates if any configured gl entries against this type value should be automatically created or not on a transaction using this transaction code.")]
bool AllowValueAutoGL { get; set; }
Property Value
Type | Description |
---|---|
bool |
CalculateFX
Indicates if the system should back into an fx rate (from the transaction type value entry setup) calculated from this local,func,reporting amounts
If the entry is local,func,reporting it will always try to do that unless this is set to false. If the entry is just local or functional or reporting then it won't back into any rate anyway
Declaration
[EntityProperty(SQLType.Bit, false, "1")]
[EntityDescription("Indicates if the system should back into an fx rate (from the transaction type value entry setup) calculated from this local,func,reporting amounts. If the entry is local,func,reporting it will always try to do that unless this is set to false. If the entry is just local or functional or reporting then it won't back into any rate anyway")]
[HardCodedDefaultValueOnNew("1")]
bool CalculateFX { get; set; }
Property Value
Type | Description |
---|---|
bool |
Color
Hex color value to display for this value in the transaction value grid
Declaration
[EntityProperty(SQLType.NVarChar, 10, true)]
[EntityDescription("Hex color value to display for this value in the transaction value grid.")]
string Color { get; set; }
Property Value
Type | Description |
---|---|
string |
Entry
Declaration
[EntityProperty(SQLType.SmallInt, true)]
[EntityDescription("This indicates to the system how this value should be entered by the user - override the default value held against transaction type value itself")]
TransactionTypeValueEntry? Entry { get; set; }
Property Value
Type | Description |
---|---|
TransactionTypeValueEntry? |
FunctionalValueFormula
Indicates the formula to use to evaluate this local value.
Declaration
[EntityProperty(SQLType.NVarChar, true)]
[EntityDescription("Indicates the formula to use to evaluate this local value.")]
string FunctionalValueFormula { get; set; }
Property Value
Type | Description |
---|---|
string |
IncludeInNetFormula
Indicates this value should be included in the contribution to the net amount values for the transaction as a whole
Declaration
[EntityProperty(SQLType.SmallInt, false, "1")]
[EntityDescription("Indicates this value should be included in the contribution to the net amount values for the transaction as a whole")]
[HardCodedDefaultValueOnNew("1")]
TransactionCodeValueIncludeInNet IncludeInNetFormula { get; set; }
Property Value
Type | Description |
---|---|
TransactionCodeValueIncludeInNet |
LocalValueFormula
Indicates the formula to use to evaluate this local value.
Declaration
[EntityProperty(SQLType.NVarChar, true)]
[EntityDescription("Indicates the formula to use to evaluate this local value.")]
string LocalValueFormula { get; set; }
Property Value
Type | Description |
---|---|
string |
ReportingValueFormula
Indicates the formula to use to evaluate this local value.
Declaration
[EntityProperty(SQLType.NVarChar, true)]
[EntityDescription("Indicates the formula to use to evaluate this local value.")]
string ReportingValueFormula { get; set; }
Property Value
Type | Description |
---|---|
string |
Sequence
The sequence this vlue is to be show in
Declaration
[EntityProperty(SQLType.SmallInt, false)]
[EntitySequence(1)]
[EntityDescription("The sequence this vlue is to be show in")]
[PropertyValidation("true", "MyItem.Sequence<= 20", "You can only have a max of 20 transaction code values against a transaction code. Try changing the sequence values if they are out of order.")]
short Sequence { get; set; }
Property Value
Type | Description |
---|---|
short |
TransactionCodeID
[Key] Links to ITransactionCode. The parent transaction code this entity is a member of
Declaration
[EntityProperty(SQLType.UniqueIdentifier, false)]
[EntityRelationship(EntityID.TransactionCode, "ID", SingleJoinType.One, "Transaction Code", "Values", DeleteWithRelationship = true, PartOfParentSet = true, LinkToItemInSet = true, InheritPermissions = true)]
[RequiredNoDefaultIDValidation]
[EntityKeyProperty]
[EntityDescription("Indicates the transaction code this value is to be a part of.")]
Guid TransactionCodeID { get; set; }
Property Value
Type | Description |
---|---|
Guid |
TransactionTypeValueID
[Key] Links to ITransactionTypeValue. The Transaction Type Value that you want Transactions using this Transaction Code to be able to record
Declaration
[EntityProperty(SQLType.UniqueIdentifier, false)]
[EntityRelationship(EntityID.TransactionTypeValue, "ID", SingleJoinType.One, "Transaction Type Value", "Transaction Code Values", DeleteWithRelationship = true, PartOfParentSet = false, LinkToItemInSet = true)]
[RequiredNoDefaultIDValidation]
[EntityKeyProperty]
Guid TransactionTypeValueID { get; set; }
Property Value
Type | Description |
---|---|
Guid |
Type
The method in which Users can edit these values.
Declaration
[EntityProperty(SQLType.SmallInt, false)]
[EntityDescription("Indicates how the value is entered/calculated.")]
TransactionCodeValueType Type { get; set; }
Property Value
Type | Description |
---|---|
TransactionCodeValueType |