xrechnung-kit API reference

LineItem
in package

FinalYes

One line on the invoice. Maps to UBL <cac:InvoiceLine>.

Both unitPrice (BT-146, PriceAmount per unit) and lineTotal (BT-131, LineExtensionAmount = qty * unitPrice) are stored. The kit does not recompute one from the other so consumers can apply their own rounding policy and the VO stays a faithful record of what the consumer intended to emit. They must share a currency.

Table of Contents

Properties

$description  : string
$id  : string
$lineTotal  : Money
$name  : string|null
$period  : DocumentPeriod|null
$quantity  : string
$taxCategory  : XRechnungTaxCategory
$taxPercent  : string
$unitCode  : string
$unitPrice  : Money

Methods

__construct()  : mixed

Properties

$description read-only

public string $description

$name read-only

public string|null $name = null

$quantity read-only

public string $quantity

$taxPercent read-only

public string $taxPercent

$unitCode read-only

public string $unitCode

Methods

__construct()

public __construct(string $id, string $description, string $quantity, string $unitCode, Money $unitPrice, Money $lineTotal, XRechnungTaxCategory $taxCategory, string $taxPercent[, string|null $name = null ][, DocumentPeriod|null $period = null ]) : mixed
Parameters
$id : string
$description : string
$quantity : string
$unitCode : string
$unitPrice : Money
$lineTotal : Money
$taxCategory : XRechnungTaxCategory
$taxPercent : string
$name : string|null = null
$period : DocumentPeriod|null = null

        
On this page

Search results