Skip to main content

Notifications

Announcements

No record found.

Microsoft Dynamics AX forum
Unanswered

Show Misc Charges attached with Purchase Order Lines

Posted on by 8,161

Dear Friends ,

I need to show , Purchase order Number and attached Misc Charge Details (Markup Code, Txt and Amount) in Form Grid and should able to filter by PurchId .I'm thinking of using MarkupTrans Table but It's seems to it's doesn't include all the transactions .
can any one able to guide me how to do this.

thanks in Advance,

Amith Prasanna

  • Show Misc Charges attached with Purchase Order Lines
    I was wondering, is there someone who can assist me with an SQL query to remove charges from a purchase order?
  • Community Member Profile Picture
    Community Member Microsoft Employee on at
    RE: Show Misc Charges attached with Purchase Order Lines

    you can try this:

    select sum (Value) from markupTrans where markupTrans.TransRecId == vendInvoiceInfoTable.RecId &&

               markupTrans.TransTableId == vendInvoiceInfoTable.TableId

               || ( markupTrans.TransRecId == vendInvoiceInfoLine.RecId && markupTrans.TransTableId == vendInvoiceInfoLine.TableId);

  • Ludwig Reinhard Profile Picture
    Ludwig Reinhard Microsoft Employee on at
    RE: Show Misc Charges attached with Purchase Order Lines

    Hi Amith Prasanna,

    Just a side question here:

    In the Header you write that you want to show misc. charges attached to your PO lines. If the charges already sit at the line level, what do you want to distribute?

    Best regards,

    Ludwig

  • Mea_ Profile Picture
    Mea_ 60,274 on at
    RE: Show Misc Charges attached with Purchase Order Lines

    Hi Amith Prasanna,

    If you open "Maintain charges" form from header or line level you can right click on it -> Personalize. Then on "Query" tab you will see query and how it's joined to purchtable\purchline.

  • A.Prasanna Profile Picture
    A.Prasanna 8,161 on at
    RE: Show Misc Charges attached with Purchase Order Lines

    thanks for the suggestion.will you able to guide me to get MarkupTrans by PurchId to Form or Report?.I have issue with Building query .

    thanks!,

    Amith Prasanna

  • Mea_ Profile Picture
    Mea_ 60,274 on at
    RE: Show Misc Charges attached with Purchase Order Lines

    It sounds obvious but to see not allocated trans you need to allocate them. If you don't want you probably have to copy logic behind allocation to create your own allocation to temp table to be able to display this data on the form.

  • A.Prasanna Profile Picture
    A.Prasanna 8,161 on at
    RE: Show Misc Charges attached with Purchase Order Lines

    I can't see charges already added and Not allocated .

    thanks,

    Amith Prasanna

  • Mea_ Profile Picture
    Mea_ 60,274 on at
    RE: Show Misc Charges attached with Purchase Order Lines

    Hi Amith Prasanna,

    What kind of information is missing in MarkupTrans  ?

Helpful resources

Quick Links

Dynamics 365 Community Update – Sep 9th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,263 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,112 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans