Zum Inhalt springen

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#

ConstantValueDescription
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#

MethodDescription
::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): string

static

The ebInterface document type of an invoice type code (UNTDID 1001).

ParameterTypeDescription
$invoiceInvoiceData
Returns
string

orderId()#

public static function orderId(InvoiceData $invoice): ?string

static

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.

ParameterTypeDescription
$invoiceInvoiceData
Returns
?string

write()#

public function write(InvoiceData $invoice): string
ParameterTypeDescription
$invoiceInvoiceData
Returns
string
Throws
InvalidArgumentException – for an invoice that is not calculated

Die Open-Core-Pakete stehen unter der MIT-Lizenz. Die rechtlichen Formulierungen der Länderpakete sind mit einer Steuerberatung abzustimmen.