Class DocumentPositionItemBase
- Namespace
- RetailForce.Fiscalisation.Model.Document
- Assembly
- RetailForce.Fiscalisation.Model.dll
Base class for item and subitem.
[Serializable]
public abstract class DocumentPositionItemBase : DocumentPositionVatPosition, IBusinessTransactionTypePosition, IVatPosition
- Inheritance
-
ValidationBase<DocumentValidationError>ValidationPropertyBase<DocumentValidationError>DocumentPositionItemBase
- Implements
- Derived
- Inherited Members
-
ValidationPropertyBase<DocumentValidationError>.Validate()ValidationBase<DocumentValidationError>.ValidateElement()
- Extension Methods
Properties
BaseGrossValue
The gross value (including tax) before discounts were calculated (without discounts and extra charges).
public decimal BaseGrossValue { get; set; }
Property Value
BaseNetValue
The net value (excluding tax) before discounts were calculated (without discounts and extra charges).
public decimal BaseNetValue { get; set; }
Property Value
BaseTaxValue
The tax value of the position before discounts were calculated (without discounts and extra charges).
public decimal BaseTaxValue { get; set; }
Property Value
BaseTaxValue2
The tax value2 of the position before discounts were calculated (without discounts and extra charges). Optional.
public decimal? BaseTaxValue2 { get; set; }
Property Value
BusinessTransactionType
The type for this position. Default value is set to Revenue.
[Required]
public BusinessTransactionType BusinessTransactionType { get; set; }
Property Value
GTIN
The global trade identification number for the item.
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string GTIN { get; set; }
Property Value
ItemCaption
Represents the caption of the item.
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public virtual string ItemCaption { get; set; }
Property Value
ItemId
The id of the item.
[Required]
public string ItemId { get; set; }
Property Value
ItemTypeClassification
The classification of Item type
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public ItemTypeClassification? ItemTypeClassification { get; set; }
Property Value
Quantity
The quantity of the position.
[Required]
public decimal Quantity { get; set; }
Property Value
QuantityUnit
The quantity unit of the position.
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public QuantityUnit QuantityUnit { get; set; }
Property Value
Methods
Revert()
Reverts the position (turns all values negative)
public override void Revert()
ValidateScale(uint)
Returns whether the scale of all amounts of the position is smaller or equal the given scale.
public override bool ValidateScale(uint scale)
Parameters
scaleuintThe maximum scale for all amounts of the position.
Returns
- bool
True if the scale of all amounts is smaller or equal the given scale; otherwise false.