Exclude card and direct debit details for a credit transfer

Error BR-DE-23-b XRechnung

If BT-81 "Payment means type code" contains a key for credit transfers (30, 58), BG-18 and BG-19 shall not 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, at least one detail excluded for this credit transfer is present: ram:ApplicableTradeSettlementFinancialCard, ram:DirectDebitMandateID, ram:CreditorReferenceID, or ram:PayerPartyDebtorFinancialAccount/ram:IBANID. These details belong to BG-18 or BG-19.

What the rule means

Payment type codes 30 and 58 denote credit transfers. Card payment and direct debit details must therefore not be supplied as payment information at the same time.

Affected fields BT-81 BG-18 BG-19
Please remove card and direct debit details from the credit transfer

The payment type is a credit transfer, but card or direct debit details are also present. Remove the payment details that do not match this payment type.

What to do
  1. Check the payment type code through PaymentMeans.TypeCode.
  2. Remove ram:ApplicableTradeSettlementFinancialCard if card details are supplied.
  3. Remove the direct debit details ram:DirectDebitMandateID, ram:CreditorReferenceID, and ram:PayerPartyDebtorFinancialAccount/ram:IBANID if they are present.
  4. Check the payment details set through FacturXInvoice.PaymentMeans.
  5. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeSettlementPaymentMeans>
  <ram:TypeCode>30</ram:TypeCode>
  <ram:PayerPartyDebtorFinancialAccount>
    <ram:IBANID>DE89370400440532013000</ram:IBANID>
  </ram:PayerPartyDebtorFinancialAccount>
</ram:SpecifiedTradeSettlementPaymentMeans>
✓ Correct
<ram:SpecifiedTradeSettlementPaymentMeans>
  <ram:TypeCode>30</ram:TypeCode>
</ram:SpecifiedTradeSettlementPaymentMeans>
Check in FactoorSharp
  • FacturXInvoice.PaymentMeans (BG-18; ID: BT-81)
  • PaymentMeans.TypeCode (SpecifiedPaymentMeans: BT-81)
Technical details

The test requires ram:ApplicableTradeSettlementFinancialCard to be absent and all three alternative direct debit indicators to be absent: ram:DirectDebitMandateID, ram:CreditorReferenceID, and ram:PayerPartyDebtorFinancialAccount/ram:IBANID.

Where the rule applies

The rule applies to ram:SpecifiedTradeSettlementPaymentMeans for payment type codes 30 and 58 and also checks the settlement payment terms.

Original message from the Schematron
Wenn BT-81 "Payment means type code" einen Schlüssel für Überweisungen enthält (30, 58), dürfen BG-18 und BG-19 nicht übermittelt werden.
Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:SpecifiedTradeSettlementPaymentMeans[normalize-space(ram:TypeCode) = ('30','58')]
Test expression (assert/@test)
not(ram:ApplicableTradeSettlementFinancialCard) and not( /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:SpecifiedTradePaymentTerms/ram:DirectDebitMandateID or /rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:CreditorReferenceID or ram:PayerPartyDebtorFinancialAccount/ram:IBANID )