Table of Contents

Class DocumentPositionTotal

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

Total position. Must be the last position.

public class DocumentPositionTotal : DocumentPositionSubTotal, IDiscountablePosition
Inheritance
ValidationBase<DocumentValidationError>
ValidationPropertyBase<DocumentValidationError>
DocumentPositionTotal
Implements
Inherited Members
ValidationPropertyBase<DocumentValidationError>.Validate()

Properties

Rounding

Possible rounding for the document (if sum of positions (gross value) does not equal payment sum.

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

Property Value

decimal?

Remarks

Please handle with care. A great value will disable amount validation for payment amount / gross value of document.

Type

The type of the position. For possible types see DocumentPositionType.

public override DocumentPositionType Type { get; }

Property Value

DocumentPositionType

Methods

Revert()

Reverts the position (turns all values negative)

public override void Revert()

ToString()

Returns the string representation for this DocumentPositionItem.

public override string ToString()

Returns

string

The string representation for this DocumentPositionItem.