Hi All,
I hope everyone is doing great. Lets see how can we remove the mandatory bank account validation.
Requirement :
In my case requirement is to remove JP country region specific validation, The scenario is quite different because generally all the bank validation is necessary to pass but we want to add all those bank account which user has already added in AX 2009 and same was giving validation error in F&O.so that we have achieved this by below customization.
Solution:
We need to skip validation from standard code by creating new extension of Bank_JP class.
Implementation :
Create extension for Bank_JP class to write COC of method checkBankAccountNum() and checkBankAccount() and add below code.
[ExtensionOf(classStr(Bank_JP))]
final class Bank_JP_Test_Extension
{
public boolean checkBankAccount(BankAccountMap _bankAccountMap)
{
next checkBankAccount(_bankAccountMap);
infolog.clear(0);
return true;
}
public boolean checkBankAccountNum(BankAccount _bankAccount)
{
next checkBankAccountNum(_bankAccount);
infolog.clear(0);
return true;
}
}
Build your solution and check.
That's it.....:)
No comments:
Post a Comment