Creditor identifier for direct debit

Error BR-DE-30 XRechnung

If "DIRECT DEBIT" BG-19 is present, then "Bank assigned creditor identifier" BT-90 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 bank-assigned creditor identifier BT-90 is missing, or at least one of BT-89 and BT-91 is also missing. The test requires BT-90 and at least one of those two items when the payment means group is present.

What the rule means

For the stated payment means, the invoice must contain the identifier the bank uses to identify the creditor. The test also requires this item together with BT-89 or BT-91.

Affected fields BG-19 BT-90
Please add the creditor’s bank identifier for the direct debit

Your invoice contains direct debit information, but the required creditor bank identifier is not fully provided. Add the missing payment information so that the direct debit is described completely.

What to do
  1. When BG-19 is present, add the bank-assigned creditor identifier BT-90.
  2. Also make sure that at least one of BT-89 or BT-91 is present.
  3. Generate the invoice again and validate it once more.
Technical details

The test passes when BG-19 is absent, or when BG-19 is present and both BT-90 and at least one of the BT-89 and BT-91 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 "Bank assigned creditor identifier" BT-90 übermittelt werden.
Context (rule/@context)
/rsm:CrossIndustryInvoice
Test expression (assert/@test)
(($BT-89-path or $BT-91-path) and $BT-90-path) or $BG-19-not-existing