Only one BT-86 element is allowed on an invoice.
Both ram:PayeeSpecifiedCreditorFinancialInstitution and ram:PayerSpecifiedDebtorFinancialInstitution are present within the same payment instruction. The test allows neither or at most one of these elements to be present.
The BT-86 financial institution entry must not be provided through both elements named in the test within the same payment instruction.
A payment instruction contains both entries for the participating financial institution. The rule allows neither entry or just one of them.
- Check
ram:PayeeSpecifiedCreditorFinancialInstitutionandram:PayerSpecifiedDebtorFinancialInstitutionwithin the same payment instruction. - Remove one of the two entries if both are present.
- Generate the invoice again and validate it.
<ram:SpecifiedTradeSettlementPaymentMeans> <ram:PayeeSpecifiedCreditorFinancialInstitution/> <ram:PayerSpecifiedDebtorFinancialInstitution/> </ram:SpecifiedTradeSettlementPaymentMeans>
<ram:SpecifiedTradeSettlementPaymentMeans> <ram:PayeeSpecifiedCreditorFinancialInstitution/> </ram:SpecifiedTradeSettlementPaymentMeans>
The test allows either ram:PayeeSpecifiedCreditorFinancialInstitution or ram:PayerSpecifiedDebtorFinancialInstitution; both may also be absent.
Technical details
The XPath excludes the simultaneous presence of ram:PayeeSpecifiedCreditorFinancialInstitution and ram:PayerSpecifiedDebtorFinancialInstitution within the context; the absence of both elements is also permitted.
The rule applies to the participating financial institution entries within each ram:SpecifiedTradeSettlementPaymentMeans entry.
rule/@context)assert/@test)