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
$id read-only
public
string
$id
$lineTotal read-only
public
Money
$lineTotal
$name read-only
public
string|null
$name
= null
$period read-only
public
DocumentPeriod|null
$period
= null
$quantity read-only
public
string
$quantity
$taxCategory read-only
public
XRechnungTaxCategory
$taxCategory
$taxPercent read-only
public
string
$taxPercent
$unitCode read-only
public
string
$unitCode
$unitPrice read-only
public
Money
$unitPrice
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