[CII-SR-469] - Payment reference (BT-83) shall occur at most once in the document.
PaymentReference occurs more than once in ApplicableHeaderTradeSettlement. The rule allows at most one such element.
The payment reference identifies the payment reference information. Stating it only once at document level avoids duplicate references.
The invoice contains more than one PaymentReference. You can limit the information to one element.
- Find all
PaymentReferenceelements inApplicableHeaderTradeSettlement. - Check the value set through
FacturXInvoice.PaymentReference. - Remove the additional
PaymentReferenceentry. - Regenerate the invoice and validate it again.
<ram:ApplicableHeaderTradeSettlement> <ram:PaymentReference>REF-1</ram:PaymentReference> <ram:PaymentReference>REF-2</ram:PaymentReference> </ram:ApplicableHeaderTradeSettlement>
<ram:ApplicableHeaderTradeSettlement> <ram:PaymentReference>REF-1</ram:PaymentReference> </ram:ApplicableHeaderTradeSettlement>
FacturXInvoice.PaymentReference(BT-83)
Technical details
The XPath counts all PaymentReference elements under ApplicableHeaderTradeSettlement; the test passes when there is at most one.
The rule applies to PaymentReference within ApplicableHeaderTradeSettlement at document level.
rule/@context)assert/@test)