Add card details for a card payment

Error BR-DE-24-a XRechnung

If BT-81 "Payment means type code" contains a key for card payments (48, 54, 55), exactly BG-18 "PAYMENT CARD INFORMATION" 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 48, 54, or 55, ram:ApplicableTradeSettlementFinancialCard is missing. The card information group BG-18, required for this payment type, is therefore not supplied.

What the rule means

Payment type codes 48, 54, and 55 identify card payments. For these codes, the invoice must include the card information group BG-18.

Affected fields BT-81 BG-18
Please add the card details for the card payment

The payment type identifies a card payment, but the card details are missing. Add the card information group to the payment details.

What to do
  1. Check the payment type code through PaymentMeans.TypeCode.
  2. Add the card information group ram:ApplicableTradeSettlementFinancialCard to the payment details.
  3. Check the payment details set through FacturXInvoice.PaymentMeans.
  4. Generate the invoice again and validate it once more.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeSettlementPaymentMeans>
  <ram:TypeCode>48</ram:TypeCode>
</ram:SpecifiedTradeSettlementPaymentMeans>
✓ Correct
<ram:SpecifiedTradeSettlementPaymentMeans>
  <ram:TypeCode>48</ram:TypeCode>
  <ram:ApplicableTradeSettlementFinancialCard/>
</ram:SpecifiedTradeSettlementPaymentMeans>
Check in FactoorSharp
  • FacturXInvoice.PaymentMeans (BG-18; ID: BT-81)
  • PaymentMeans.TypeCode (SpecifiedPaymentMeans: BT-81)
Technical details

For ram:TypeCode equal to 48, 54, or 55, the test requires ram:ApplicableTradeSettlementFinancialCard to be present.

Where the rule applies

The rule applies to ram:SpecifiedTradeSettlementPaymentMeans for payment type codes 48, 54, and 55.

Original message from the Schematron
Wenn BT-81 "Payment means type code" einen Schlüssel für Kartenzahlungen enthält (48, 54, 55), muss genau BG-18 "PAYMENT CARD INFORMATION" übermittelt werden.
Context (rule/@context)
/rsm:CrossIndustryInvoice/rsm:SupplyChainTradeTransaction/ram:ApplicableHeaderTradeSettlement/ ram:SpecifiedTradeSettlementPaymentMeans[normalize-space(ram:TypeCode) = ('48','54','55')]
Test expression (assert/@test)
ram:ApplicableTradeSettlementFinancialCard