If BT-81 "Payment means type code" contains a key for direct debits (59), BG-17 and BG-18 shall not be transmitted.
When TypeCode is 59, the invoice contains details for a payee account, a payee financial institution, a debtor financial institution, or a payment card. The rule prohibits these elements for this payment type.
Code 59 identifies a direct debit payment. The checked details in BG-17 and BG-18 are not used for this payment type and must not occur in this context.
The invoice uses payment type 59 but also includes account, financial institution, or payment card details. Remove the details that are not allowed for this payment type.
- Check the
FacturXInvoice.PaymentMeanscall and the value set forPaymentMeans.TypeCode. - Remove details in
PayeePartyCreditorFinancialAccount,PayeeSpecifiedCreditorFinancialInstitution,PayerSpecifiedDebtorFinancialInstitution, andApplicableTradeSettlementFinancialCard. - In particular, check whether an account is added through
AddCreditorFinancialAccount(...)orCreditorBankAccounts. - Generate the invoice again and validate it once more.
<ram:SpecifiedTradeSettlementPaymentMeans> <ram:TypeCode>59</ram:TypeCode> <ram:PayeePartyCreditorFinancialAccount> <ram:IBANID>DE1234567890</ram:IBANID> </ram:PayeePartyCreditorFinancialAccount> </ram:SpecifiedTradeSettlementPaymentMeans>
<ram:SpecifiedTradeSettlementPaymentMeans> <ram:TypeCode>59</ram:TypeCode> </ram:SpecifiedTradeSettlementPaymentMeans>
FacturXInvoice.PaymentMeans(BG-17; BG-18; 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 PayeePartyCreditorFinancialAccount, PayeeSpecifiedCreditorFinancialInstitution, PayerSpecifiedDebtorFinancialInstitution, and ApplicableTradeSettlementFinancialCard all to be absent. It applies in the stated context when TypeCode is 59.
The rule applies to SpecifiedTradeSettlementPaymentMeans in the document-level settlement when TypeCode is 59.
rule/@context)assert/@test)