web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Getting trade agreement price

(0) ShareShare
ReportReport
Posted on by 180

Hi guys,

How to get trade agreement price based on item id and vendor account?

BR,

Ron

*This post is locked for comments

I have the same question (0)
  • Albrecht Prieler Profile Picture
    857 on at

    Hi Ron,

    two ways to get there, depends on the amount of records

    If you have more purchase Prices go through vendor listpage (procurement/Agreements/Trade Agreements)

    If you have more purchase Prices on this vendor go through released products (purchase/Agreements/Trade Agreements)

  • Suggested answer
    Heinz Schweda Profile Picture
    1,367 on at

    Hello, if you need to get the price through code, you may use the following:

       PriceDisc_Price PriceDisc_Price;
    
       PriceDisc_Price = PriceDisc_Price::construct();
       PriceDisc_Price.parmItemId("youritemId");
       PriceDisc_Price.parmAccountNum("VendorID");
       PriceDisc_Price.parmModuleType(ModuleInventPurchSales::Purch);
       PriceDisc_Price.parmCurrencyCode("EUR");
       PriceDisc_Price.parmPriceDate(systemDateGet());
       PriceDisc_Price.parmQty(17);
       PriceDisc_Price.parmPriceGroupId("");
       PriceDisc_Price.parmInventDim(null);
       PriceDisc_Price.parmUnitID("pcs");
    
       PriceDisc_Price.findPriceAgreement();
    
       info(strFmt("%1", PriceDisc_Price.price()));

    Regards,

    Heinz

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans