Vendor Current Valid Trade agreement price on Planned order lines

Hi All,

I want to show the current/valid Vendor’s trade agreement price based on the given Vendor, order date, and quantity of the planned order line(Master Plannning → Planned orders). How can I achieve this using X++ code?.

Thanks in advance…

Hi All,

Any suggestions?

Any suggestions?

You can use \Classes\PriceDisc_Price\price

Have a look at \Classes\AxPurchLine\setPurchPrice

Thanks kranthi…

How can I check the latest price(based on the order date from the planned order grid) using code.