# BR-DE-31

Source: https://xmlvalid.com/rules/BR-DE-31

> Wenn "DIRECT DEBIT" BG-19 vorhanden ist, dann muss "Debited account identifier" BT-91 übermittelt werden.

- Level: error
- Rule sets: XRechnung 3.0 rules (UBL) 2.6.0
- Context: `/ubl:Invoice | /cn:CreditNote`
- Test: `not(cac:PaymentMeans/cac:PaymentMandate) or (cac:PaymentMeans/cac:PaymentMandate/cac:PayerFinancialAccount/cbc:ID)`

> Wenn "DIRECT DEBIT" BG-19 vorhanden ist, dann muss "Debited account identifier" BT-91 übermittelt werden.

- Level: error
- Rule sets: XRechnung 3.0 rules (CII) 2.6.0
- Context: `/rsm:CrossIndustryInvoice`
- Test: `(($BT-89-path or $BT-90-path) and $BT-91-path) or $BG-19-not-existing`

Validate a document against these rules: https://xmlvalid.com/validate
