If BT-81 "Payment means type code" contains a key for credit transfers (30, 58), BG-18 and BG-19 shall not be transmitted.
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.
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.
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.
- Check the payment type code through
PaymentMeans.TypeCode. - Remove
ram:ApplicableTradeSettlementFinancialCardif card details are supplied. - Remove the direct debit details
ram:DirectDebitMandateID,ram:CreditorReferenceID, andram:PayerPartyDebtorFinancialAccount/ram:IBANIDif they are present. - Check the payment details set through
FacturXInvoice.PaymentMeans. - Generate the invoice again and validate it once more.
<ram:SpecifiedTradeSettlementPaymentMeans> <ram:TypeCode>30</ram:TypeCode> <ram:PayerPartyDebtorFinancialAccount> <ram:IBANID>DE89370400440532013000</ram:IBANID> </ram:PayerPartyDebtorFinancialAccount> </ram:SpecifiedTradeSettlementPaymentMeans>
<ram:SpecifiedTradeSettlementPaymentMeans> <ram:TypeCode>30</ram:TypeCode> </ram:SpecifiedTradeSettlementPaymentMeans>
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.
The rule applies to ram:SpecifiedTradeSettlementPaymentMeans for payment type codes 30 and 58 and also checks the settlement payment terms.
rule/@context)assert/@test)