Payee account is missing for a credit transfer

Error BR-DE-23-a XRechnung

If BT-81 "Payment means type code" contains a key for credit transfers (30, 58), BG-17 "CREDIT TRANSFER" 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 ram:TypeCode has the value 30 or 58, ram:PayeePartyCreditorFinancialAccount is missing. The account group BG-17, required for a credit transfer, is therefore not supplied.

What the rule means

Payment type codes 30 and 58 identify credit transfers. The invoice must therefore include the payee’s account information in BG-17.

Affected fields BT-81 BG-17
Please add the payee account for the credit transfer

The payment type identifies a credit transfer, but the payee’s account is missing. Add the account group to the payment details.

What to do
  1. Check the payment type code through PaymentMeans.TypeCode.
  2. Add the payee account with FacturXInvoice.AddCreditorFinancialAccount(...).
  3. Check whether FacturXInvoice.AnyCreditorFinancialAccount() finds an account.
  4. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeSettlementPaymentMeans>
  <ram:TypeCode>30</ram:TypeCode>
</ram:SpecifiedTradeSettlementPaymentMeans>
✓ Correct
<ram:SpecifiedTradeSettlementPaymentMeans>
  <ram:TypeCode>30</ram:TypeCode>
  <ram:PayeePartyCreditorFinancialAccount/>
</ram:SpecifiedTradeSettlementPaymentMeans>
Check in FactoorSharp
  • FacturXInvoice.PaymentMeans (BG-17; ID: BT-81)
  • PaymentMeans.TypeCode (SpecifiedPaymentMeans: BT-81)
  • FacturXInvoice.AddCreditorFinancialAccount(iban, bic, id, bankleitzahl, bankName, name) (BG-17)
  • FacturXInvoice.AnyCreditorFinancialAccount() (BG-17)
  • FacturXInvoice.CreditorBankAccounts (BG-17)
Technical details

For ram:TypeCode equal to 30 or 58, the test requires ram:PayeePartyCreditorFinancialAccount to be present.

Where the rule applies

The rule applies to ram:SpecifiedTradeSettlementPaymentMeans for payment type codes 30 and 58.

Original message from the Schematron
Wenn BT-81 "Payment means type code" einen Schlüssel für Überweisungen enthält (30, 58), muss BG-17 "CREDIT TRANSFER" übermittelt werden.
Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:SpecifiedTradeSettlementPaymentMeans[normalize-space(ram:TypeCode) = ('30','58')]
Test expression (assert/@test)
ram:PayeePartyCreditorFinancialAccount