If BT-81 "Payment means type code" contains a key for card payments (48, 54, 55), BG-17 and BG-19 shall not be transmitted.
When ram:TypeCode has the value 48, 54, or 55, at least one detail excluded for card payments is present: ram:PayeePartyCreditorFinancialAccount, ram:DirectDebitMandateID, ram:CreditorReferenceID, or ram:PayerPartyDebtorFinancialAccount/ram:IBANID. These details belong to BG-17 or BG-19.
Payment type codes 48, 54, and 55 denote card payments. Credit transfer and direct debit details must therefore not be supplied as payment information at the same time.
The payment type is a card payment, but credit transfer 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:PayeePartyCreditorFinancialAccountif a payee account for a credit transfer is 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>48</ram:TypeCode> <ram:PayeePartyCreditorFinancialAccount/> </ram:SpecifiedTradeSettlementPaymentMeans>
<ram:SpecifiedTradeSettlementPaymentMeans> <ram:TypeCode>48</ram:TypeCode> </ram:SpecifiedTradeSettlementPaymentMeans>
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
The test requires ram:PayeePartyCreditorFinancialAccount 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 48, 54, and 55 and also checks the settlement payment terms.
rule/@context)assert/@test)