Hi,
I have a requirement in which I need to change the amount by using some calculations for both intercompany and non intercompany , but not able to identify where the amountMST and amountCur field is getting filled when the voucher transactions are created after posting the timesheet
I need to do change the amount field for both posting type : Project allocation and project cost.
Please suggest me method, the amount field is getting filled for both for both intercompany and non intercompany. I tried to debug but it is always jumping on TSTIMESHEETSPOST class.
Thanks in advance!!
Hi D365 ER,
amountMST and amountCur fields come from GeneralJournalAccountEntry table.
So, you can do "find Reference "of that table and see where it is used.
If you don't get any idea from, find reference, then you can create either event handler or COC for GeneralJournalAccountEntry insert method and add a break point. Now post a timesheet and you can see the debugger will hit on the insert method (event handler or COC).
You can see the call stack window when insert method code is hit to see from which class or method the insert method is being called.
After getting an idea you can delete the class that contains event handler or COC for insert method.
Thanks,
Girish S.
André Arnaud de Cal...
292,074
Super User 2025 Season 1
Martin Dráb
230,900
Most Valuable Professional
nmaenpaa
101,156