AccountStatement
in package
Read onlyYes
FinalYes
Account statement for a customer: open and paid invoices of a period.
The balance is the opening balance plus the open amounts of the listed items. The opening balance is the balance at the start of the period, so it already contains every invoice dated before the period: with an opening balance, only items dated within the period may be listed. Without an opening balance the statement is an open item list and may list older items. Items dated after the end of the period are never accepted.
Table of Contents
Properties
- $items : array<string|int, mixed>
- $openingBalance : Money|null
- $period : Period
Methods
- __construct() : mixed
- balance() : Money
- Opening balance plus the open amounts of all listed items.
- openItems() : array<int, OpenItem>
Properties
$items
public
array<string|int, mixed>
$items
Attributes
- #[ListOf]
- OpenItem::class
$openingBalance
public
Money|null
$openingBalance
= null
$period
public
Period
$period
Methods
__construct()
public
__construct(Period $period, array<int, OpenItem> $items[, Money|null $openingBalance = null ]) : mixed
Parameters
balance()
Opening balance plus the open amounts of all listed items.
public
balance(string $currency) : Money
Parameters
- $currency : string
Return values
MoneyopenItems()
public
openItems() : array<int, OpenItem>