Interface IAllocationAmount
The system entity for allocation amounts modules, which belong to an allocation rule
See https://web.lemonedge.com/help/allocation-amounts-view/ for more information
Inherited Members
System.IEquatable<LemonEdge.API.Core.IBaseEntity>.Equals(LemonEdge.API.Core.IBaseEntity)
System.ComponentModel.INotifyPropertyChanged.PropertyChanged
System.ComponentModel.INotifyPropertyChanging.PropertyChanging
Namespace: LemonEdge.API.Entities
Assembly: API.dll
Syntax
[EntityDefinition(EntityID.AllocationAmount, "dbo.LT_AllocationAmounts", "AllocationAmount", IsStandingDataEntity = false)]
[DefaultEntityIcon(ImageType.AmountAllocation)]
public interface IAllocationAmount : ICanBeTransfered, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties
Properties
AllocationRuleID
[Key] Links to IAllocationRule. The parent rule this amount belongs to
Declaration
[EntityProperty(SQLType.UniqueIdentifier, false)]
[EntityRelationship(EntityID.AllocationRule, "ID", SingleJoinType.One, "AllocationAmount", "AllocationRule", DeleteWithRelationship = true, PartOfParentSet = true, LinkToItemInSet = false, InheritPermissions = true)]
Guid AllocationRuleID { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Amount
The amount to be used to allocate to this entity
Declaration
[EntityProperty(SQLType.Decimal, (short)31, (short)18, false)]
[Required]
[EntityDescription("Indicates the amount to allocate to this entity. Overall this is converted into a percentage for allocating transactions.")]
[UpdateOnTransfer(TransferUpdateType.AutoTransfer)]
decimal Amount { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
AmountB
An alternative amount to be used to allocate to this entity
Declaration
[EntityProperty(SQLType.Decimal, (short)31, (short)18, false)]
[Required]
[EntityDescription("A secondary allocation mechanism. Can be used for specific transaction allocations or custom processes.")]
[UpdateOnTransfer(TransferUpdateType.AutoTransfer)]
decimal AmountB { get; set; }
Property Value
Type | Description |
---|---|
System.Decimal |
Timing
Indicates if the allocation amount is effective from the start or end of day.
Declaration
[EntityProperty(SQLType.SmallInt, false)]
[Required]
[EntityDescription("Indicates if the allocation amount is effective from the start or end of day.")]
AllocationTiming Timing { get; set; }
Property Value
Type | Description |
---|---|
AllocationTiming |