If BT-81 "Payment means type code" contains a key for direct debits (59), exactly BG-19 "DIRECT DEBIT" shall be transmitted.
When TypeCode is 59, the settlement is missing all of the checked direct debit details: DirectDebitMandateID, CreditorReferenceID, or the IBAN in PayerPartyDebtorFinancialAccount.
Code 59 identifies a direct debit payment. The rule therefore requires at least one of the checked details from group BG-19.
The invoice uses payment type 59 but contains none of the checked direct debit details. You can resolve this by adding one of those details.
- Check the value set for
SpecifiedTradeSettlementPaymentMeansthroughPaymentMeans.TypeCodeorFacturXInvoice.PaymentMeans. - Add at least one detail:
DirectDebitMandateID,CreditorReferenceID, or the IBAN inPayerPartyDebtorFinancialAccount. - Generate the invoice again and validate it once more.
<ram:SpecifiedTradeSettlementPaymentMeans> <ram:TypeCode>59</ram:TypeCode> </ram:SpecifiedTradeSettlementPaymentMeans>
<ram:SpecifiedTradeSettlementPaymentMeans> <ram:TypeCode>59</ram:TypeCode> <ram:SpecifiedTradePaymentTerms> <ram:DirectDebitMandateID>MANDATE-123</ram:DirectDebitMandateID> </ram:SpecifiedTradePaymentTerms> </ram:SpecifiedTradeSettlementPaymentMeans>
PaymentMeans.TypeCode(SpecifiedPaymentMeans: BT-81)FacturXInvoice.PaymentMeans(ID: BT-81)
Technical details
The test passes if at least one of the three paths yields a detail. The rule context limits the check to SpecifiedTradeSettlementPaymentMeans whose normalized TypeCode equals 59.
The rule applies to SpecifiedTradeSettlementPaymentMeans in the document-level settlement when TypeCode is 59.
rule/@context)assert/@test)