Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX (Archived)

Create Charges transactions using SalesSalesOrderService

Posted on by Microsoft Employee

Hi experts,

I use SalesSalesOrderService to create Charges transactions ax 2012

This is my code below:

4073.Screenshot_5F00_2.png

7607.Screenshot_5F00_6.png

1321.Screenshot_5F00_4.png

In the method private static AxdEntity_MarkupTransLine createMarkupTransLine()

I coded:

markupTransLine.ModuleCategory = AxdExtType_MarkupModuleCategory.Linie;
markupTransLine.MarkupCategory = AxdExtType_MarkupCategoryType.Pcs;

markupTransLine.Value = 1000;

But, when I open Sales line > Financials > Maintain charges

I get MarkupCategory  = Fixed, ModuleCategory = Main, and Value = 0;

3487.Screenshot_5F00_5.png

Anyone help me?

Thank all.

*This post is locked for comments

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Create Charges transactions using SalesSalesOrderService

    Hi ievgen, thanks for your help.

    I tried and I worked successfully.

    Thanks.

  • Verified answer
    Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Create Charges transactions using SalesSalesOrderService

    You have properties *specified that you need to set to true for these fields, like valueSpecified = true. MarkupCategorySpecified = true

    and so on.

  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Create Charges transactions using SalesSalesOrderService

    Hi ievgen, I didn't try to Debug

    But I found that the Enum value and the System.Nullable value not Serializate to X++. The default value is used.

    In my code, I use:

    Enum value: AxdExtType_MarkupModuleCategory, AxdExtType_MarkupCategoryType, AxdEnum_SalesStatus, AxdEnum_SalesType

    7824.Screenshot_5F00_8.png

    7824.Screenshot_5F00_8.png

    System.Nullable:

    6366.Screenshot_5F00_9.png

  • Mea_ Profile Picture
    Mea_ 60,278 on at
    RE: Create Charges transactions using SalesSalesOrderService

    Did you try to debug? you can use Visual Studio to debug AIF docs.microsoft.com/.../debugging-managed-code-in-microsoft-dynamics-ax  and see where this values coming from

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,214 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans