Testcase to check if the Procurement candidate prices are updated from the right pricelist version
Price update
Have a bpartner with at least 1 procurement flatrate term:
flatrate term A where there is no price set for your product A in flatrate_dataentry subtab
make sure the current PLV A that’s used for your bpartner in purchase orders has this product and price x for it
make another pricelist version B (in the same pricelist), which is available from tomorrow and contains product A with price y
Create purchase candidates for product A in WebUI: one for today and one for tomorrow
make pricelist version B inactive
make pricelist version B active again