Skip to main content

Notifications

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

  • Suggested answer
    GirishS Profile Picture
    GirishS 27,821 Super User 2024 Season 1 on at
    RE: which method is called when posting timesheet transactions.

    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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,074 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,900 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans