Table of Contents

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

decimal

BaseNetValue

The net value (excluding tax) before discounts were calculated (without discounts and extra charges).

public decimal BaseNetValue { get; set; }

Property Value

decimal

BaseTaxValue

The tax value of the position before discounts were calculated (without discounts and extra charges).

public decimal BaseTaxValue { get; set; }

Property Value

decimal

BaseTaxValue2

The tax value2 of the position before discounts were calculated (without discounts and extra charges). Optional.

public decimal? BaseTaxValue2 { get; set; }

Property Value

decimal?

BusinessTransactionType

The type for this position. Default value is set to Revenue.

[Required]
public BusinessTransactionType BusinessTransactionType { get; set; }

Property Value

BusinessTransactionType

GTIN

The global trade identification number for the item.

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public string GTIN { get; set; }

Property Value

string

ItemCaption

Represents the caption of the item.

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public virtual string ItemCaption { get; set; }

Property Value

string

ItemId

The id of the item.

[Required]
public string ItemId { get; set; }

Property Value

string

ItemTypeClassification

The classification of Item type

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public ItemTypeClassification? ItemTypeClassification { get; set; }

Property Value

ItemTypeClassification?

Quantity

The quantity of the position.

[Required]
public decimal Quantity { get; set; }

Property Value

decimal

QuantityUnit

The quantity unit of the position.

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public QuantityUnit QuantityUnit { get; set; }

Property Value

QuantityUnit

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

scale uint

The 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.