Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Answered

How Auto Charges are assigned to Sales Order which we can see by clicking on Charges button

Posted on by 115

Hi all, 

          I have defined auto charge for a specific customer on the auto charge form. After that, when I go to sales order list page and create a new sales order using that customer for which I had just created auto charge in previous step, I can see that auto charge on the charges transactions form by clicking on the Sell tab ->Charges button. 

My question is I want to check it technically that on which point that auto charge data was assigned to charges transactions form on sales order ?

I want to see its x++ code where the data is assigning. 

I have checked in the charges transactions form, but could not understand at which point the data is being assigned to this form from auto charge form. I need this for our new project where we will assign these contractual charges to the sales orders. But for the time being, I require this information technically. 

  • 00030000036294D5 Profile Picture
    00030000036294D5 115 on at
    RE: How Auto Charges are assigned to Sales Order which we can see by clicking on Charges button

    From createMarkupTrans() method, you will get into insertMarkupTrans method of Markup class where markup trans table is being assigned values.

  • 00030000036294D5 Profile Picture
    00030000036294D5 115 on at
    RE: How Auto Charges are assigned to Sales Order which we can see by clicking on Charges button

    Ohhh Thanks for the reply. Let me just check. I will get back shortly. Will I check it from sales tables methods ?

  • Verified answer
    Rachit Profile Picture
    Rachit 4,011 User Group Leader on at
    RE: How Auto Charges are assigned to Sales Order which we can see by clicking on Charges button

    Have you tried debugging createMarkupTrans() method on SalesTable. This is called from the SalesTable.insert() method.

    Hope this helps.  

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,459 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,783 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans