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...
You can use \Classes\PriceDisc_Price\price
Have a look at \Classes\AxPurchLine\setPurchPrice
How can I check the latest price(based on the order date from the planned order grid) using code.