Hi,
how to get bank account name of a customer from custtransopen or Custtable.
*This post is locked for comments
Hi Zohan,
Why do you need that and how do you plan to deal with situations where a customer has multiple bank accounts? Do you already know the bank account that will be used before the customer has made the payment?
Best regards,
Ludwig
No there's no such any case occur in which i know the customer bank account
customer bank account stored in CustBankAccount table, so if you need it you can write display method to retrieve based on your business logic.
Do you want to include this info in the custtransopen table or where and why you need that info?
You can use following code/job to get a bank account name of a customer either from custtransopen or custtable.
static void AXC_BankAccount(Args _args) { CustTransOpen custTransOpen; CustTrans custTrans; CustTable custTable; CustBankAccount custBankAccount; // From CustTable while select custTable where custTable.AccountNum == "XYZ" // Specify customeraccount here join custBankAccount where custBankAccount.CustAccount == custTable.AccountNum { info(strFmt("BankType: %1, Bank account Name: %1", custBankAccount.BankAccountType, custBankAccount.Name)); } // From CustTransOpen while select custTransOpen join custTrans where custTransOpen.AccountNum == custTrans.AccountNum && custTransOpen.RefRecId == custTrans.RecId join custTable where custTable.AccountNum == custTrans.AccountNum && custTable.AccountNum == "XYZ" // Specify customeraccount here join custBankAccount where custBankAccount.CustAccount == custTable.AccountNum { info(strFmt("BankType: %1, Bank account Name: %1", custBankAccount.BankAccountType, custBankAccount.Name)); } }
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Community Member 4
Nayyar Siddiqi 2
NNaumenko 2