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
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
GrossValue
The gross value of the booking.
[Required]
public virtual decimal GrossValue { get; set; }
Property Value
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
ItemType
The type of an item.
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public virtual ItemType? ItemType { get; set; }
Property Value
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
TaxValue
The vat value of the booking.
public virtual decimal TaxValue { get; set; }
Property Value
TaxValue2
The tax value for the second vat.
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public virtual decimal? TaxValue2 { get; set; }
Property Value
VatIdentification
The value added tax for this position.
public virtual int VatIdentification { get; set; }
Property Value
VatPercent
The percentage of the vat
public virtual decimal VatPercent { get; set; }
Property Value
VatPercent2
The second percentage of a possible second vat
[JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
public virtual decimal? VatPercent2 { 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.