Payment means type for each payment instruction

Error BR-49 EN 16931

A Payment instruction (BG-16) shall specify the Payment means type code (BT-81).

Mandatory rule: As long as it is violated, the invoice is invalid and will be rejected by validators.
What is wrong

A payment instruction ram:SpecifiedTradeSettlementPaymentMeans does not contain a ram:TypeCode specifying the payment means.

What the rule means

The payment means (BT-81) must be specified for every payment instruction (BG-16).

Affected fields BG-16 BT-81
Please specify the payment means for the payment instruction

No payment means have been specified for a payment instruction. Add the payment instruction type to complete this information.

What to do
  1. Locate the affected ram:SpecifiedTradeSettlementPaymentMeans entry.
  2. Add ram:TypeCode to it.
  3. Check the payment information using FacturXInvoice.PaymentMeans and PaymentMeans.TypeCode.
  4. Generate the invoice again and validate it.
What it looks like
✗ Triggers the message
<ram:SpecifiedTradeSettlementPaymentMeans/>
✓ Correct
<ram:SpecifiedTradeSettlementPaymentMeans>
  <ram:TypeCode>30</ram:TypeCode>
</ram:SpecifiedTradeSettlementPaymentMeans>
Check in FactoorSharp
  • FacturXInvoice.PaymentMeans (BG-16; ID: BT-81)
  • PaymentMeans.TypeCode (SpecifiedPaymentMeans: BT-81)
  • FacturXInvoice.DebitorBankAccounts (BG-16)
Technical details

The XPath checks whether a ram:TypeCode element is present within each ram:SpecifiedTradeSettlementPaymentMeans element.

Where the rule applies

The rule applies to each payment instruction ram:SpecifiedTradeSettlementPaymentMeans in the settlement.

Context (rule/@context)
//ram:SpecifiedTradeSettlementPaymentMeans
Test expression (assert/@test)
(ram:TypeCode)