C_BankAccount.AD_Client_ID = @AD_Client_ID@ -- only for the Customer / exhibitor
AND C_BankAccount.BankAccountType IN ('S') -- only for the 'Savings' account
AND '@IsSOTrx@' = 'Y' -- only when the transaction is a sale
AND C_BankAccount.IsActive = 'Y' -- only when the bank account is active
It is good to enter value 1 in the Default Logic field of the Table> Columns tab. It transforms the foreign key added to the 'Numeric' type if it were interpreted by the iD platform as 'Character Varying'.