Class TransactionItemOperation
Calculated transaction item
Inheritance
System.Object
TransactionItemOperation
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Simplic.ERP.Core
Assembly: Simplic.ERP.Core.dll
Syntax
public abstract class TransactionItemOperation : TransactionItemValue
Constructors
| Improve this Doc View SourceTransactionItemOperation()
Initialize calculated item
Declaration
public TransactionItemOperation()
Properties
| Improve this Doc View SourceCalculationMode
Gets or sets the calculation mode
Declaration
public CalculationMode CalculationMode { get; set; }
Property Value
Type | Description |
---|---|
CalculationMode |
TemporaryBillableItems
Gets or sets a temporary list of items. Will only be used for temporary calculation
Declaration
public IList<TransactionItemBillable> TemporaryBillableItems { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<TransactionItemBillable> |
ValueOperator
Gets or sets the operator that should be used for this discount
Declaration
public ValueOperator ValueOperator { get; set; }
Property Value
Type | Description |
---|---|
ValueOperator |
Methods
| Improve this Doc View SourceCopyTo(TransactionItem)
Declaration
public override void CopyTo(TransactionItem target)
Parameters
Type | Name | Description |
---|---|---|
TransactionItem | target |
Overrides
| Improve this Doc View SourceGetFactor()
Gets the factor which will be used in GetValue(TransactionItemBillable)
Declaration
protected abstract PreciseDecimal GetFactor()
Returns
Type | Description |
---|---|
PreciseDecimal | Factor value as PreciseDecimal. E.g. discount / surcharge |
GetValue(TransactionItemBillable)
Get the discount or surcharge value
Declaration
public PreciseDecimal GetValue(TransactionItemBillable item)
Parameters
Type | Name | Description |
---|---|---|
TransactionItemBillable | item | Item to get the value from |
Returns
Type | Description |
---|---|
PreciseDecimal | Article item |