Quittio 0.3 API

PaymentTermsText
in package

FinalYes

Builds the payment terms text (BT-20) from structured payment terms.

Cash discounts are a mandatory statement (agreed reduction of the consideration), so they must appear in the XML and not only in the PDF.

Table of Contents

Methods

parse()  : array{text: ?string, discounts: list}
Parses structured cash discount lines from a BT-20 text.
render()  : string|null
structured()  : string
XRechnung notation: #SKONTO#TAGE=14#PROZENT=2.00# with optional #BASISBETRAG=…#.

Methods

parse()

Parses structured cash discount lines from a BT-20 text.

public static parse(string|null $text) : array{text: ?string, discounts: list}
Parameters
$text : string|null
Return values
array{text: ?string, discounts: list}

structured()

XRechnung notation: #SKONTO#TAGE=14#PROZENT=2.00# with optional #BASISBETRAG=…#.

public static structured(CashDiscount $discount) : string

The percentage has exactly two decimals (BR-DE-18).

Parameters
$discount : CashDiscount
Return values
string
On this page

Search results