Documentation

Voucher extends VoucherType
in package

Class representing Voucher.

Table of Contents

$cancelDocument  : CancelDocumentType|null
Pomocí tohoto bloku bude vytvořen storno doklad. V programu POHODA bude vyhledán doklad, který má být stornován, pokud bude nalezen, bude k němu vytvořen stornující doklad.
$eET  : EETType|null
$print  : array<string|int, mixed>|null
Po vytvoření záznamu se provede jeho tisk.
$version  : string|null
$voucherDetail  : VoucherDetailType|null
$voucherHeader  : VoucherHeaderType|null
$voucherSummary  : VoucherSummaryType|null
addToPrint()  : self
Adds as printerSettings.
getCancelDocument()  : CancelDocumentType
Gets as cancelDocument.
getEET()  : EETType
Gets as eET.
getPrint()  : array<string|int, PrinterSettingsType>
Gets as print.
getVersion()  : string
Gets as version.
getVoucherDetail()  : VoucherDetailType
Gets as voucherDetail.
getVoucherHeader()  : VoucherHeaderType
Gets as voucherHeader.
getVoucherSummary()  : VoucherSummaryType
Gets as voucherSummary.
issetPrint()  : bool
isset print.
setCancelDocument()  : self
Sets a new cancelDocument.
setEET()  : self
Sets a new eET.
setPrint()  : self
Sets a new print.
setVersion()  : self
Sets a new version.
setVoucherDetail()  : self
Sets a new voucherDetail.
setVoucherHeader()  : self
Sets a new voucherHeader.
setVoucherSummary()  : self
Sets a new voucherSummary.
unsetPrint()  : void
unset print.

Properties

$cancelDocument

Pomocí tohoto bloku bude vytvořen storno doklad. V programu POHODA bude vyhledán doklad, který má být stornován, pokud bude nalezen, bude k němu vytvořen stornující doklad.

private CancelDocumentType|null $cancelDocument = null

Vložený doklad lze upravit pomocí jednotlivých elementů v voucherHeader (ostatní elementy budou ignorovány).

$print

Po vytvoření záznamu se provede jeho tisk.

private array<string|int, mixed>|null $print = null

Methods

getCancelDocument()

Gets as cancelDocument.

public getCancelDocument() : CancelDocumentType

Pomocí tohoto bloku bude vytvořen storno doklad. V programu POHODA bude vyhledán doklad, který má být stornován, pokud bude nalezen, bude k němu vytvořen stornující doklad. Vložený doklad lze upravit pomocí jednotlivých elementů v voucherHeader (ostatní elementy budou ignorovány).

Return values
CancelDocumentType

getVersion()

Gets as version.

public getVersion() : string
Return values
string

issetPrint()

isset print.

public issetPrint(int|string $index) : bool

Po vytvoření záznamu se provede jeho tisk.

Parameters
$index : int|string
Return values
bool

setCancelDocument()

Sets a new cancelDocument.

public setCancelDocument([CancelDocumentType|null $cancelDocument = null ]) : self

Pomocí tohoto bloku bude vytvořen storno doklad. V programu POHODA bude vyhledán doklad, který má být stornován, pokud bude nalezen, bude k němu vytvořen stornující doklad. Vložený doklad lze upravit pomocí jednotlivých elementů v voucherHeader (ostatní elementy budou ignorovány).

Parameters
$cancelDocument : CancelDocumentType|null = null
Return values
self

setEET()

Sets a new eET.

public setEET([EETType|null $eET = null ]) : self
Parameters
$eET : EETType|null = null
Return values
self

setPrint()

Sets a new print.

public setPrint([array<string|int, PrinterSettingsType$print = null ]) : self

Po vytvoření záznamu se provede jeho tisk.

Parameters
$print : array<string|int, PrinterSettingsType> = null
Return values
self

setVersion()

Sets a new version.

public setVersion(string $version) : self
Parameters
$version : string
Return values
self

unsetPrint()

unset print.

public unsetPrint(int|string $index) : void

Po vytvoření záznamu se provede jeho tisk.

Parameters
$index : int|string
Return values
void

Search results