Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Suggested answer

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

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
    nmaenpaa 101,156 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
    Rahul.p 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
    Gunjan Bhattachayya 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
    nmaenpaa 101,156 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
    Rahul.p 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
    MuthukumaranAX 2,907 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,280 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,235 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans