Notifications
Announcements
No record found.
Hi guys,
How to get trade agreement price based on item id and vendor account?
BR,
Ron
*This post is locked for comments
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)
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.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2