DocumentTotals
in package
FinalYes
Document-level monetary totals. Maps to UBL <cac:LegalMonetaryTotal> and <cac:TaxTotal>.
All amounts must share the same currency (the document currency declared in DocumentMeta). The optional allowance, charge, and prepaid amounts default to null and are treated as zero by the Generator.
The kit does NOT recompute any total from the others. The consumer supplies all six because consumers apply their own rounding policy and because the invariants (BT-CO arithmetic) belong in the source mapper, not at the public boundary.
Table of Contents
Properties
- $allowance : Money|null
- $charge : Money|null
- $lineNet : Money
- $payable : Money
- $prepaid : Money|null
- $taxableAmount : Money
- $taxAmount : Money
Methods
- __construct() : mixed
Properties
$allowance read-only
public
Money|null
$allowance
= null
$charge read-only
public
Money|null
$charge
= null
$lineNet read-only
public
Money
$lineNet
$payable read-only
public
Money
$payable
$prepaid read-only
public
Money|null
$prepaid
= null
$taxableAmount read-only
public
Money
$taxableAmount
$taxAmount read-only
public
Money
$taxAmount
Methods
__construct()
public
__construct(Money $lineNet, Money $taxableAmount, Money $taxAmount, Money $payable[, Money|null $allowance = null ][, Money|null $charge = null ][, Money|null $prepaid = null ]) : mixed