Hi Expert,
Our client has requirement to auto fill specific ledger account in SalesLine form as given below when SalesQty <0.
How can I do please help me.
*This post is locked for comments
I cannot help you further, now you need to debug and confirm that your code is in a right place and it gets executed then you need to confirm that Ax* class returns a value that is not 0.
Hi ievgen Miroshnikov,
Please help me.
Hi,
In the modified field method of the Quantity field write this piece of code,
If(tablename.quantity<0)
{
tablename.Mainaccount =4210225;
}
Please help me.
Thanks ievgen Miroshnikov for helping me to get it done.
I tried it but it's not working. It is same as before as given in below first screen shot.
While I am trying to get like below screen shot which I entered manually.
No, LedgerDimension is int64 and '4210225' probably is your main account. So you can do something like:
this.LedgerDimension = AxdDimensionUtil::getLedgerAccountId(['4210225', '4210225', 0]);
Hi ievgen,
How to populate Ledger account ?
case fieldNum(SalesLine, QtyOrdered):
if(this.QtyOrdered <0)
{
this.LedgerDimension = 4210225; //(Ledger account)
}
break;
So it's a customization you need to do, you can add code to modifiedfield() method and check if it is >0 then populate ledger account.
So it's a customization you need to do, you can add code to modifiedfield() method and check if it is >0 then populate ledger account.
Stay up to date on forum activity by subscribing. You can also customize your in-app and email Notification settings across all subscriptions.
André Arnaud de Cal... 291,240 Super User 2024 Season 2
Martin Dráb 230,149 Most Valuable Professional
nmaenpaa 101,156