We already have standard functionality that clears the AccountCode, when modified the AccountType in Journal Voucher lines.
I have tried the below at \Forms\LedgerJournalTransDaily\Designs\Design\[Tab:Tab]\[TabPage:OverViewTab]\[Grid:overviewGrid]\ComboBox:LedgerJournalTrans_AccountType\Methods\modified,
if(this.selection() != LedgerJournalACType::Ledger)
{
LedgerJournalTrans.LedgerAccountName = "";
}
This is not working in some scenarios, so I think I should write the code, where standard function clearing the AccountCode automatically when modified.
I think here, \Forms\LedgerJournalTransDaily\Data Sources\LedgerJournalTrans\Fields\OffsetAccountType\Methods\modified
In method: ledgerJournalEngine.offsetAccountTypeModified
But unable to write anything here.
*This post is locked for comments
I have the same question (0)