Description
The exported Remittance Advice contains an incorrect line count, emits a line element in an order that does not conform to the UBL 2.1 XSD, and uses the wrong identifier for the referenced vendor invoice.
Validated against:
Findings
cbc:LineCountNumeric is 0 while one cac:RemittanceAdviceLine is present. Emit the actual number of cac:RemittanceAdviceLine elements, or omit the optional cbc:LineCountNumeric element.
- Line-level
cbc:Note is emitted after amounts and cbc:InvoicingPartyReference. RemittanceAdviceLineType is an xsd:sequence in which cbc:Note, when present, must appear immediately after cbc:ID. Emit it in the required position.
cac:BillingReference/cac:InvoiceDocumentReference/cbc:ID contains the buyer's internal posted invoice number (108241), while the vendor invoice number (V10) is placed in cbc:InvoicingPartyReference. InvoiceDocumentReference/cbc:ID identifies the referenced invoice and should contain the supplier/vendor invoice identifier, normally External Document No., when available. InvoicingPartyReference has a different UBL meaning and must not be used to carry the vendor invoice number.
Steps to reproduce
- In the buyer company, create a vendor payment in the Payment Journal and apply it to a posted vendor invoice.
- Create the Remittance Advice E-Document through report 399 with Create E-Documents enabled.
- Open the E-Document logs and download the exported XML.
- Inspect
cbc:LineCountNumeric, the position of line-level cbc:Note, and cac:BillingReference/cac:InvoiceDocumentReference/cbc:ID.
Fixes
AB#648724
Description
The exported Remittance Advice contains an incorrect line count, emits a line element in an order that does not conform to the UBL 2.1 XSD, and uses the wrong identifier for the referenced vendor invoice.
Validated against:
Findings
cbc:LineCountNumericis0while onecac:RemittanceAdviceLineis present. Emit the actual number ofcac:RemittanceAdviceLineelements, or omit the optionalcbc:LineCountNumericelement.cbc:Noteis emitted after amounts andcbc:InvoicingPartyReference.RemittanceAdviceLineTypeis anxsd:sequencein whichcbc:Note, when present, must appear immediately aftercbc:ID. Emit it in the required position.cac:BillingReference/cac:InvoiceDocumentReference/cbc:IDcontains the buyer's internal posted invoice number (108241), while the vendor invoice number (V10) is placed incbc:InvoicingPartyReference.InvoiceDocumentReference/cbc:IDidentifies the referenced invoice and should contain the supplier/vendor invoice identifier, normally External Document No., when available.InvoicingPartyReferencehas a different UBL meaning and must not be used to carry the vendor invoice number.Steps to reproduce
cbc:LineCountNumeric, the position of line-levelcbc:Note, andcac:BillingReference/cac:InvoiceDocumentReference/cbc:ID.Fixes
AB#648724