Quittio 0.3 API

CashDiscount
in package
uses Immutable

Read onlyYes
FinalYes

Cash discount ("Skonto") granted for payment within $days days.

Serialised into BT-20 for XRechnung (#SKONTO#TAGE=..#PROZENT=..#) and into structured elements in profile EXTENDED.

Table of Contents

Properties

$baseAmount  : Money|null
$days  : int
$percent  : BigDecimal

Methods

__construct()  : mixed
with()  : static
Returns a copy with the given properties replaced.

Properties

Methods

__construct()

public __construct(int $days, BigDecimal $percent[, Money|null $baseAmount = null ]) : mixed
Parameters
$days : int
$percent : BigDecimal
$baseAmount : Money|null = null

with()

Returns a copy with the given properties replaced.

public with(array<string, mixed> $changes) : static
Parameters
$changes : array<string, mixed>
Return values
static
On this page

Search results