"Debited account identifier" (BT-91) should contain a valid IBAN if SEPA is required as a means of payment with code 59 in "Payment means type code" (BT-81).
When ram:TypeCode has the value 59, ram:PayerPartyDebtorFinancialAccount/ram:IBANID does not contain an IBAN that passes the IBAN check. The rule explicitly checks BT-91 in this case.
Payment type code 59 denotes a SEPA direct debit. For this payment type, the debited account identifier BT-91 must contain a valid IBAN.
No valid IBAN for the debited account was recognized for payment type 59. You can correct the account identifier in the payment details.
- Check whether
ram:TypeCodecontains the value59. - Provide the valid IBAN of the debited account in
ram:PayerPartyDebtorFinancialAccount/ram:IBANID. - Check the value through
FacturXInvoice.AddDebitorFinancialAccount(...)orFacturXInvoice.GetDebitorFinancialAccounts(). - Generate the invoice again and validate it once more.
<ram:SpecifiedTradeSettlementPaymentMeans> <ram:TypeCode>59</ram:TypeCode> <ram:PayerPartyDebtorFinancialAccount> <ram:IBANID>123</ram:IBANID> </ram:PayerPartyDebtorFinancialAccount> </ram:SpecifiedTradeSettlementPaymentMeans>
<ram:SpecifiedTradeSettlementPaymentMeans> <ram:TypeCode>59</ram:TypeCode> <ram:PayerPartyDebtorFinancialAccount> <ram:IBANID>DE89370400440532013000</ram:IBANID> </ram:PayerPartyDebtorFinancialAccount> </ram:SpecifiedTradeSettlementPaymentMeans>
FacturXInvoice.GetDebitorFinancialAccounts()(BT-91)PaymentMeans.TypeCode(SpecifiedPaymentMeans: BT-81)FacturXInvoice.PaymentMeans(ID: BT-81)FacturXInvoice.AddDebitorFinancialAccount(iban, bic, id, bankleitzahl, bankName, name)(BT-91)
Technical details
The test passes other payment type codes. When ram:TypeCode equals 59, the ram:IBANID of the debtor’s account is passed to xr:checkIBAN.
The rule applies to document-level ram:SpecifiedTradeSettlementPaymentMeans when ram:TypeCode has the value 59.
rule/@context)assert/@test)