Skip to main content

Notifications

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 630

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 

  • Suggested answer
    nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: How to insert date in TaxWithholdTrans_In table after post the sales invoice in ax 2012

    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.

  • Rahul.p Profile Picture
    630 on at
    RE: How to insert date in TaxWithholdTrans_In table after post the sales invoice in ax 2012

    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
    Gunjan Bhattachayya Profile Picture
    35,421 on at
    RE: How to insert date in TaxWithholdTrans_In table after post the sales invoice in ax 2012

    Hi Rahul,

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

  • Suggested answer
    nmaenpaa Profile Picture
    101,158 Moderator on at
    RE: How to insert date in TaxWithholdTrans_In table after post the sales invoice in ax 2012

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

  • Rahul.p Profile Picture
    630 on at
    RE: How to insert date in TaxWithholdTrans_In table after post the sales invoice in ax 2012

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

  • MuthukumaranAX Profile Picture
    2,901 on at
    RE: How to insert date in TaxWithholdTrans_In table after post the sales invoice in ax 2012

    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

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

🌸 Community Spring Festival 2025 Challenge 🌸

WIN Power Platform Community Conference 2025 tickets!

Jonas ”Jones” Melgaard – Community Spotlight

We are honored to recognize Jonas "Jones" Melgaard as our April 2025…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 294,095 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 232,866 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,158 Moderator

Leaderboard

Product updates

Dynamics 365 release plans