AF-0055

Es wurde kein Wert angegeben. Es muss eine Bestellpositionsnummer angegeben werden, wenn die Auftragsreferenz eine Bestellnummer ist.

In English An order position number is missing on a line: when the order reference is an order number, each line must name the position of the order it bills.

error: the document is invalid

Why it fails

  • ebInterface: a ListLineItem has no InvoiceRecipientsOrderReference/OrderPositionNumber. UBL: an invoice line has no cac:OrderLineReference/cbc:LineID (BT-132).

How to fix it

Give each line the number of the order position it bills (10, 20, 30 as in the order). With an order number the reference on the line should be the same as the one in the header.

What the rule checks

As the rule set's publisher wrote it. The rule runs on every element the context matches, and fails where the test is false; the validator reports the line of that element.

Context
/*:Invoice/*:Details/*:ItemList/*:ListLineItem
Test
not(at:order-number($order)) or $position != ''

Checked with Austria e-Rechnung.gv.at (ebInterface 6.1), Austria e-Rechnung.gv.at (ebInterface 6.0)

Context
/ubl:Invoice/cac:InvoiceLine | /cn:CreditNote/cac:CreditNoteLine
Test
not(at:order-number($order)) or $position != ''

Checked with Austria e-Rechnung.gv.at Peppol Invoice, Austria e-Rechnung.gv.at Peppol Credit Note