/// <summary>
/// This method is used for initialization
/// </summary>
public void init()
{
next init();
CustAccount.registerOverrideMethod(methodStr(FormDataObject, lookup), formMethodStr(CustPaymEntry, overridenCustAccountLookup));
}
/// <summary>
/// This method is used to get customer lookup
/// </summary>
/// <param name="_formControl" />FormControl
public void overridenCustAccountLookup(FormControl _formControl)
{
if (ledgerJournalTrans && DDDIsParent.checked() == NoYes::Yes)
{
Debug::assert(ledgerJournalTrans.AccountType == LedgerJournalACType::Cust);
CustTable::lookupCustomer(_formControl, ledgerJournalTrans.Company);
}
}
No comments:
Post a Comment