xrechnung-kit API reference

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

Methods


        
On this page

Search results