Class TransactionItemBillable
Represents a transaction item
Inheritance
Inherited Members
Namespace: Simplic.ERP.Core
Assembly: Simplic.ERP.Core.dll
Syntax
public abstract class TransactionItemBillable : TransactionItemQuantity, ISubitemable, IEditableTransactionItem
Constructors
| Improve this Doc View SourceTransactionItemBillable()
Constructor
Declaration
public TransactionItemBillable()
Properties
| Improve this Doc View SourceArticleGLAId
Gets or sets the article general ledger account id
Declaration
public Guid? ArticleGLAId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
ArticleGLAResolverPayload
Gets the payload that will be send when trying to resolve ArticleGLAId
Declaration
public virtual IDictionary<string, object> ArticleGLAResolverPayload { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> |
ArticleId
Gets or sets the article/object id
Declaration
public virtual Guid? ArticleId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
CashDiscountGLAId
Gets or sets general ledger account id for cashdiscount
Declaration
public Guid? CashDiscountGLAId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
CostCenterAssigments
Gets or sets the assigned costcenters
Declaration
[Obsolete("Please use CostCenterAssignments.")]
public StatefulCollection<TransactionItemArticleCostCenter> CostCenterAssigments { get; set; }
Property Value
Type | Description |
---|---|
StatefulCollection<TransactionItemArticleCostCenter> |
CostCenterAssignments
Gets or sets the assigned costcenters
Declaration
public StatefulCollection<TransactionItemArticleCostCenter> CostCenterAssignments { get; set; }
Property Value
Type | Description |
---|---|
StatefulCollection<TransactionItemArticleCostCenter> |
DefaultBookingText
Gets the default booking text
Declaration
public virtual string DefaultBookingText { get; }
Property Value
Type | Description |
---|---|
System.String |
DeliveryDate
Gets or sets the delivery date of the object assigned to the item
Declaration
public DateTime? DeliveryDate { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.DateTime> |
FibuAccount
Get or sets the fibu account Value
Declaration
public string FibuAccount { get; set; }
Property Value
Type | Description |
---|---|
System.String |
GeneralLedgerAccountId
Gets or sets the general ledger account id
Declaration
public Guid? GeneralLedgerAccountId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
IsInvalid
Gets whether the transaction item is invalid for financial accounting
Declaration
public virtual bool IsInvalid { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
MatchCode
Gets or sets the matchcode
Declaration
public string MatchCode { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ObjectId
Gets or sets the object id
Declaration
public Guid? ObjectId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
ObjectInfo
Gets or sets the information about the assigned object
Declaration
public virtual string ObjectInfo { get; }
Property Value
Type | Description |
---|---|
System.String |
OperationItems
Gets all operation items, which might be a discount, surcharge, ...
Declaration
public StatefulCollection<TransactionItemOperation> OperationItems { get; set; }
Property Value
Type | Description |
---|---|
StatefulCollection<TransactionItemOperation> |
PricingConfigurationId
Gets or sets the pricing configuration id
Declaration
public Guid? PricingConfigurationId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
Quantity
Gets or sets a quantity
Declaration
public override PreciseDecimal Quantity { get; set; }
Property Value
Type | Description |
---|---|
PreciseDecimal |
Overrides
| Improve this Doc View SourceResolveGeneralLedgerAccount
Gets or sets whehter to resolve the general ledger account for this item
Declaration
public virtual bool ResolveGeneralLedgerAccount { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
State
Gets or sets the convert state
Declaration
public TransactionItemConvertState State { get; set; }
Property Value
Type | Description |
---|---|
TransactionItemConvertState |
TaxGLAId
Gets or sets the tax general ledger account id
Declaration
public Guid? TaxGLAId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
UnitId
Gets or sets the unit id
Declaration
public Guid UnitId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
ValueInputType
Gets ir sets the value input type
Declaration
public ItemInputValueType ValueInputType { get; set; }
Property Value
Type | Description |
---|---|
ItemInputValueType |
Weight
Gets or sets wheight of all objectss in this item
Declaration
public PreciseDecimal Weight { get; set; }
Property Value
Type | Description |
---|---|
PreciseDecimal |
Methods
| Improve this Doc View SourceAddSubitem(TransactionItem)
Add subitem
Declaration
public void AddSubitem(TransactionItem item)
Parameters
Type | Name | Description |
---|---|---|
TransactionItem | item |
Calculate()
Calculate surcharge and discount
Declaration
public override void Calculate()
Overrides
| Improve this Doc View SourceCommitSubitems()
Commit changes
Declaration
public void CommitSubitems()
CopyTo(TransactionItem)
Create item copy
Declaration
public override void CopyTo(TransactionItem target)
Parameters
Type | Name | Description |
---|---|---|
TransactionItem | target |
Overrides
| Improve this Doc View SourceCreateItemCopy(Transaction)
Creates a copy of a billable item
Declaration
public override AddTransactionItem<TransactionItem> CreateItemCopy(Transaction transaction)
Parameters
Type | Name | Description |
---|---|---|
Transaction | transaction |
Returns
Type | Description |
---|---|
AddTransactionItem<TransactionItem> |
Overrides
| Improve this Doc View SourceGetAssignedEntities()
Gets the direct assigned entities to this item
Declaration
public virtual IDictionary<Guid, string> GetAssignedEntities()
Returns
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.Guid, System.String> |
GetExistingSubitems()
Get existing items
Declaration
public IEnumerable<TransactionItem> GetExistingSubitems()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TransactionItem> |
GetNewSubitems()
Gets new items
Declaration
public IEnumerable<TransactionItem> GetNewSubitems()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TransactionItem> |
GetRemovedSubitems()
Get removed items
Declaration
public IEnumerable<TransactionItem> GetRemovedSubitems()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<TransactionItem> |
RenderAsText()
Render position text
Declaration
public override string RenderAsText()
Returns
Type | Description |
---|---|
System.String |
Overrides
| Improve this Doc View SourceResolveObjectPrice()
Resolve the current object price and set it
Declaration
public abstract ResolveObjectPriceResult ResolveObjectPrice()
Returns
Type | Description |
---|---|
ResolveObjectPriceResult | Resolve object price result |
ResolveTax()
Resolve tax rate
Declaration
public abstract void ResolveTax()
SetSinglePrice(PreciseDecimal)
Set the price for a single quantity
Declaration
public void SetSinglePrice(PreciseDecimal value)
Parameters
Type | Name | Description |
---|---|---|
PreciseDecimal | value | Price/value in net or gross |
SetTotalPrice(PreciseDecimal)
Set the price for every quantity
Declaration
public void SetTotalPrice(PreciseDecimal value)
Parameters
Type | Name | Description |
---|---|---|
PreciseDecimal | value | Price/value in net or gross |