Class ReceiptItem
Položka dokladu
Inherited Members
Namespace: NineDigiteKasa
Assembly: NineDigit.eKasa.dll
Syntax
public sealed class ReceiptItem : IComparable<ReceiptItem>, IComparable
Constructors
ReceiptItem(ReceiptItem)
Declaration
public ReceiptItem(ReceiptItem item)
Parameters
| Type | Name | Description |
|---|---|---|
| ReceiptItem | item |
ReceiptItem(ReceiptItemData)
Declaration
public ReceiptItem(ReceiptItemData data)
Parameters
| Type | Name | Description |
|---|---|---|
| ReceiptItemData | data |
ReceiptItem(ReceiptItemType, ReceiptItemName, UnitPriceAmount, Quantity, VatRate, TaxFreeReason?, ReferenceReceiptId, Seller, VoucherNumber, ReceiptText)
Declaration
public ReceiptItem(ReceiptItemType type, ReceiptItemName name, UnitPriceAmount unitPrice, Quantity quantity, VatRate vatRate, TaxFreeReason? specialRegulation = null, ReferenceReceiptId referenceReceiptId = null, Seller seller = null, VoucherNumber voucherNumber = null, ReceiptText description = null)
Parameters
| Type | Name | Description |
|---|---|---|
| ReceiptItemType | type | |
| ReceiptItemName | name | |
| UnitPriceAmount | unitPrice | |
| Quantity | quantity | |
| VatRate | vatRate | |
| TaxFreeReason | specialRegulation | |
| ReferenceReceiptId | referenceReceiptId | |
| Seller | seller | |
| VoucherNumber | voucherNumber | |
| ReceiptText | description |
Properties
Description
Nepovinný dodatočný popis položky dokladu, vyobrazený na doklade.
Declaration
public ReceiptText Description { get; }
Property Value
| Type | Description |
|---|---|
| ReceiptText | Textový reťazec |
Name
Označenie tovaru alebo služby
Declaration
public ReceiptItemName Name { get; }
Property Value
| Type | Description |
|---|---|
| ReceiptItemName | Neprázdny textový reťazec s maximálnou dĺžkou 255 znakov |
Examples
Coca cola
Price
Celková cena tovaru alebo služby s presnosťou na dve desatinné miesta.
Declaration
public Amount Price { get; }
Property Value
| Type | Description |
|---|---|
| Amount | Číslo v rozsahu -10000000 až 10000000 s presnosťou na dve desatinné miesta. Celková cena musí byť zhodná s výsledkom vynásobenia jednotkovej ceny a množstva. |
Examples
30.00
Quantity
Množstvo tovaru alebo rozsah služby
Declaration
public Quantity Quantity { get; }
Property Value
| Type | Description |
|---|---|
| Quantity |
ReferenceReceiptId
Číslo dokladu, ku ktorému sa vzťahuje oprava alebo vrátenie položky
Declaration
public ReferenceReceiptId ReferenceReceiptId { get; }
Property Value
| Type | Description |
|---|---|
| ReferenceReceiptId | Číslo dokladu ak sa jedná o položku typu Correction alebo
Return alebo |
Examples
O-7DBCDA8A56EE426DBCDA8A56EE426D1A
Seller
Predávajúci, v ktorého mene bol predaný tovar alebo poskytnutá služba
Declaration
public Seller Seller { get; }
Property Value
| Type | Description |
|---|---|
| Seller | Predávajúci alebo |
SpecialRegulation
Príznak, ktorý bližšie špecifikuje „dôvod“ priradenia dane s hodnotou 0, ak bola položke priradená
Declaration
public TaxFreeReason? SpecialRegulation { get; }
Property Value
| Type | Description |
|---|---|
| TaxFreeReason | Platná hodnota dôvodu priradenia nulovej dane alebo |
Examples
Artwork
Type
Typ položky dokladu
Declaration
public ReceiptItemType Type { get; }
Property Value
| Type | Description |
|---|---|
| ReceiptItemType |
Examples
Positive
UnitPrice
Jednotková cena tovaru alebo služby v EUR s presnosťou na šesť desatinných miest.
Declaration
public UnitPriceAmount UnitPrice { get; }
Property Value
| Type | Description |
|---|---|
| UnitPriceAmount | Číslo v rozsahu -10000000 až 10000000 s presnosťou na šesť desatinných miest. Položka typu Positive musí mať kladnú hodnotu. Položka typu ReturnedContainer, Returned, Discount, Advance, Voucher musí mať zápornú hodnotu. |
Examples
15.00
VatRate
Sadzba dane z pridanej hodnoty.
Declaration
public VatRate VatRate { get; }
Property Value
| Type | Description |
|---|---|
| VatRate |
VoucherNumber
Číslo jednoúčelového poukazu pri jeho výmene za tovar alebo poskytnutú službu
Declaration
public VoucherNumber VoucherNumber { get; }
Property Value
| Type | Description |
|---|---|
| VoucherNumber | Textový reťazec s dĺžkou 1 až 50 v prípade, že typ položky je Voucher,
|
Examples
201801001
Methods
CompareTo(ReceiptItem)
Declaration
public int CompareTo(ReceiptItem other)
Parameters
| Type | Name | Description |
|---|---|---|
| ReceiptItem | other |
Returns
| Type | Description |
|---|---|
| int |
CompareTo(object)
Declaration
public int CompareTo(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| int |
Equals(ReceiptItem)
Declaration
public bool Equals(ReceiptItem other)
Parameters
| Type | Name | Description |
|---|---|---|
| ReceiptItem | other |
Returns
| Type | Description |
|---|---|
| bool |
Equals(object)
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj |
Returns
| Type | Description |
|---|---|
| bool |
Overrides
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int |