If BT-81 "Payment means type code" contains a key for credit transfers (30, 58), BG-17 "CREDIT TRANSFER" shall be transmitted.
When ram:TypeCode has the value 30 or 58, ram:PayeePartyCreditorFinancialAccount is missing. The account group BG-17, required for a credit transfer, is therefore not supplied.
Payment type codes 30 and 58 identify credit transfers. The invoice must therefore include the payee’s account information in BG-17.
The payment type identifies a credit transfer, but the payee’s account is missing. Add the account group to the payment details.
- Check the payment type code through
PaymentMeans.TypeCode. - Add the payee account with
FacturXInvoice.AddCreditorFinancialAccount(...). - Check whether
FacturXInvoice.AnyCreditorFinancialAccount()finds an account. - Generate the invoice again and validate it once more.
<ram:SpecifiedTradeSettlementPaymentMeans> <ram:TypeCode>30</ram:TypeCode> </ram:SpecifiedTradeSettlementPaymentMeans>
<ram:SpecifiedTradeSettlementPaymentMeans> <ram:TypeCode>30</ram:TypeCode> <ram:PayeePartyCreditorFinancialAccount/> </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
For ram:TypeCode equal to 30 or 58, the test requires ram:PayeePartyCreditorFinancialAccount to be present.
The rule applies to ram:SpecifiedTradeSettlementPaymentMeans for payment type codes 30 and 58.
rule/@context)assert/@test)