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

How to insert date in TaxWithholdTrans_In table after post the sales invoice in ax 2012

(0) ShareShare
ReportReport
Posted on by 632

Dear Friends,

Please let me know after post the salesinvoice how data is inserting in TaxWithholdTrans_In table.

I want to know which class and method will execute.

Thanks & Regards

Rahul 

I have the same question (0)
  • MuthukumaranAX Profile Picture
    2,903 on at

    Hi - the easy way to get the code place is to add a breakpoint to insert method of TaxWithholdTrans_In table and post a sales invoice and run through the code.

    Thanks

  • Rahul.p Profile Picture
    632 on at

    I tried it but debugger is not hit in table insert method.

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    - Make sure that "Execute business operations in CIL" checkbox is disabled in your user options

    - In AX Server configuration, make sure that debugging is enabled on the code running on the Application Object Server (don't do this in a prod system, anyway you should not debug in prod)

    - Make sure that you have logged in the AOS server when you debug

    Does the breakpoint hit now?

  • Suggested answer
    Gunjan Bhattachayya Profile Picture
    35,423 on at

    Hi Rahul,

    You can check CustVoucher\createInvoiceTrans method. The TaxWithholdTrans_IN record is getting updated here. You can include your field here as well.

  • Rahul.p Profile Picture
    632 on at

    Thank for your reply.
    I want to know  which class & table method is using for inserting record in TaxWithholdTrans_IN.

    1526.Capture.PNG

    Here total withholding tax amount field some amount difference is coming.

    This is a bug but MS is not supporting for ax 2012. so i want to check the formula on it.

  • Suggested answer
    nmaenpaa Profile Picture
    101,160 Moderator on at

    You can find out the answer by debugging the insert method of the table.

    You can also use cross references (right click insert method in AOT -> Add-ins -> Find references to see all places in the application that call the method. Assuming you have up to date cross references in your dev system.

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 559 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

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

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 250 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans