Table of Contents

Class DocumentPositionVatPosition

Namespace
RetailForce.Fiscalisation.Model.Document
Assembly
RetailForce.Fiscalisation.Model.dll

Base class for all positions having vat.

[Serializable]
public abstract class DocumentPositionVatPosition : DocumentPositionBase, IVatPosition
Inheritance
ValidationBase<DocumentValidationError>
ValidationPropertyBase<DocumentValidationError>
DocumentPositionVatPosition
Implements
Derived
Inherited Members
ValidationPropertyBase<DocumentValidationError>.Validate()
ValidationBase<DocumentValidationError>.ValidateElement()

Properties

AccountingIdentifier

An additional identifier for accounting purposes (accounting interface).

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

Property Value

string

AdditionalTax

Possible additional tax for a vat position (for alcohol or other additional taxes).

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

Property Value

AdditionalTax

GrossValue

The gross value of the booking.

[Required]
public virtual decimal GrossValue { get; set; }

Property Value

decimal

Remarks

You can use document extension GetTotalGrossAmount(Document?, Func<IBusinessTransactionTypePosition, bool>?) to get the total gross amount of the document.

ItemTaxType

The tax type (deliveries or services) of the item row.

[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
[Obsolete("Use ItemType instead")]
public virtual ItemTaxType? ItemTaxType { get; set; }

Property Value

ItemTaxType?

ItemType

The type of an item.

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

Property Value

ItemType?

NetValue

The net value of the booking. If there is no Vat, or vat with 0 percent must be equal GrossValue;

[Required]
public virtual decimal NetValue { get; set; }

Property Value

decimal

TaxValue

The vat value of the booking.

public virtual decimal TaxValue { get; set; }

Property Value

decimal

TaxValue2

The tax value for the second vat.

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

Property Value

decimal?

VatIdentification

The value added tax for this position.

public virtual int VatIdentification { get; set; }

Property Value

int

VatPercent

The percentage of the vat

public virtual decimal VatPercent { get; set; }

Property Value

decimal

VatPercent2

The second percentage of a possible second vat

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

Property Value

decimal?

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.