Quittio next API

Inspect
in package

FinalYes

Helpers shared by the rule sets.

Table of Contents

Methods

categories()  : array<int, VatCategory>
VAT categories used by lines, document allowances and charges.
filled()  : bool
isZero()  : bool
linesIn()  : array<int, InvoiceLine>
uses()  : bool
vatPrefix()  : string
Country prefix of a VAT identifier; Greece uses "EL".
withoutLinesByProfile()  : bool
MINIMUM and BASIC WL carry no invoice lines (BG-25): line based rules do not apply to documents of these profiles without lines, e.g. when they are read.

Methods

filled()

public static filled(string|null $value) : bool
Parameters
$value : string|null
Return values
bool

isZero()

public static isZero(BigDecimal|null $value) : bool
Parameters
$value : BigDecimal|null
Return values
bool

vatPrefix()

Country prefix of a VAT identifier; Greece uses "EL".

public static vatPrefix(string $vatId) : string
Parameters
$vatId : string
Return values
string

withoutLinesByProfile()

MINIMUM and BASIC WL carry no invoice lines (BG-25): line based rules do not apply to documents of these profiles without lines, e.g. when they are read.

public static withoutLinesByProfile(InvoiceData $invoice, RuleReporter $report) : bool
Parameters
$invoice : InvoiceData
$report : RuleReporter
Return values
bool
On this page

Search results