PaymentTermsBuilder
in package
FinalYes
Fluent builder for structured payment terms (BT-20, BT-9).
Table of Contents
Methods
- build() : PaymentTerms
- cashDiscount() : self
- Cash discount ("Skonto") for payment within $days days.
- dueInDays() : self
- Sets the payment target. The due date (BT-9) is derived from the issue date if not given explicitly.
- fromTerms() : self
- Continues existing terms (InvoiceBuilder::paymentTerms() with a callable after from()).
- lateFee() : self
- text() : self
Methods
build()
public
build(string $currency) : PaymentTerms
Parameters
- $currency : string
Return values
PaymentTermscashDiscount()
Cash discount ("Skonto") for payment within $days days.
public
cashDiscount(int $days, string $percent[, string|null $baseAmount = null ]) : self
Parameters
- $days : int
- $percent : string
- $baseAmount : string|null = null
Return values
selfdueInDays()
Sets the payment target. The due date (BT-9) is derived from the issue date if not given explicitly.
public
dueInDays(int $days) : self
Parameters
- $days : int
Return values
selffromTerms()
Continues existing terms (InvoiceBuilder::paymentTerms() with a callable after from()).
public
static fromTerms(PaymentTerms $terms) : self
Parameters
- $terms : PaymentTerms
Return values
selflateFee()
public
lateFee([int|null $days = null ][, string|null $percent = null ][, string|null $text = null ]) : self
Parameters
- $days : int|null = null
- $percent : string|null = null
- $text : string|null = null
Return values
selftext()
public
text(string|null $text) : self
Parameters
- $text : string|null