web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

which method is called when posting timesheet transactions.

(0) ShareShare
ReportReport
Posted on by 167

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!!

I have the same question (0)
  • Suggested answer
    GirishS Profile Picture
    27,827 Moderator on at

    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.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans