API reference / Quittio \ Country \ AT \ EbInterface
EbInterfaceWriter
final class in quittio/country-at
Quittio\Country\AT\EbInterface\EbInterfaceWriter · Source
Writes a calculated invoice as ebInterface 6.1, the Austrian XML invoice format of AUSTRIAPRO that e-Rechnung.gv.at accepts besides UBL.
The mapping follows the official mapping of AUSTRIAPRO between UBL and ebInterface: the purchase order reference (BT-13) is the order reference of the invoice recipient, a missing VAT identifier is written as "ATU00000000", credit notes are a "CreditMemo" with positive amounts. Fields without a place in ebInterface (e.g. the buyer reference BT-10, the payee BG-10) are not written.
Constants#
| Constant | Value | Description |
|---|---|---|
GENERATING_SYSTEM | 'Quittio' | |
NAMESPACE | 'http://www.ebinterface.at/schema/6p1/' | |
UNDEFINED_VAT_ID | 'ATU00000000' | VAT identifier of a party without one, as the AUSTRIAPRO mapping writes it. |
Methods#
| Method | Description |
|---|---|
::documentType() | The ebInterface document type of an invoice type code (UNTDID 1001). |
::orderId() | The order reference of the invoice recipient: the purchase order reference (BT-13), else the buyer reference (BT-10), which carries the order reference (Auftragsreferenz) of the federal government in CIUS-AT-GOV. |
->write() |
documentType()#
public static function documentType(InvoiceData $invoice): stringThe ebInterface document type of an invoice type code (UNTDID 1001).
| Parameter | Type | Description |
|---|---|---|
$invoice | InvoiceData |
- Returns
string
orderId()#
public static function orderId(InvoiceData $invoice): ?stringThe order reference of the invoice recipient: the purchase order reference (BT-13), else the buyer reference (BT-10), which carries the order reference (Auftragsreferenz) of the federal government in CIUS-AT-GOV.
| Parameter | Type | Description |
|---|---|---|
$invoice | InvoiceData |
- Returns
?string
write()#
public function write(InvoiceData $invoice): string| Parameter | Type | Description |
|---|---|---|
$invoice | InvoiceData |
- Returns
string- Throws
InvalidArgumentException– for an invoice that is not calculated