Debited account for direct debit

Error BR-DE-31 XRechnung

If "DIRECT DEBIT" BG-19 is present, then "Debited account identifier" BT-91 shall be transmitted.

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

When BG-19 is present, the debited account identifier BT-91 is missing, or at least one of BT-89 and BT-90 is also missing. The test requires BT-91 and at least one of those two items when the payment means group is present.

What the rule means

For a direct debit, the invoice must contain the identifier of the account from which the amount will be debited. The test also requires this item together with BT-89 or BT-90.

Affected fields BG-19 BT-91
Please provide the debited account for the direct debit

Your invoice contains direct debit information, but the debited account identifier is missing or incomplete. Add the account information to the payment details.

What to do
  1. When BG-19 is present, add the debited account identifier BT-91.
  2. Check the account details using AddDebitorFinancialAccount(...) or GetDebitorFinancialAccounts().
  3. Also make sure that at least one of BT-89 or BT-90 is present.
  4. Generate the invoice again and validate it once more.
Check in FactoorSharp
  • FacturXInvoice.GetDebitorFinancialAccounts() (BT-91)
  • FacturXInvoice.AddDebitorFinancialAccount(iban, bic, id, bankleitzahl, bankName, name) (BT-91)
Technical details

The test passes when BG-19 is absent, or when BG-19 is present and both BT-91 and at least one of the BT-89 and BT-90 paths are present.

Where the rule applies

The rule applies to the invoice payment information under rsm:CrossIndustryInvoice and is triggered when payment means group BG-19 is present.

Original message from the Schematron
Wenn "DIRECT DEBIT" BG-19 vorhanden ist, dann muss "Debited account identifier" BT-91 übermittelt werden.
Context (rule/@context)
/rsm:CrossIndustryInvoice
Test expression (assert/@test)
(($BT-89-path or $BT-90-path) and $BT-91-path) or $BG-19-not-existing