warningXRechnung 3.0.2 (Germany)profileCIIUBLBG-3BT-3
Wenn im Element "Invoice type code" (BT-3) der Code 384 (Corrected invoice) übergeben wird, soll PRECEDING INVOICE REFERENCE BG-3 mind. einmal vorhanden sein.
The invoice type code is 384 (corrected invoice) but no preceding invoice reference (BG-3) is given, so nobody can tell what is being corrected.
Add BG-3 with the original invoice number in BT-25 (and ideally its date in BT-26).
CII — context —
not(normalize-space(rsm:ExchangedDocument/ram:TypeCode) = '384') or (rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ram:InvoiceReferencedDocument)
UBL — context —
((not(normalize-space(cbc:InvoiceTypeCode) = '384' or normalize-space(cbc:CreditNoteTypeCode) = '384') or (cac:BillingReference/cac:InvoiceDocumentReference)))