#1008 Inactive prices should not be modified when copied
Testcase to check if inactive prices are not modified when copied.
-
Have a pricelist, e.g. customer pricelist, with several product prices
-
In Produkt Preise, set one product price inactive
-
Make sure you have a discount schema for using when copying pricelists, that adds + 1.00 to the standard price
- In your pricelist, create a new pricelist version:
- set a name and start date as you like
- select your CP (with the inactive product price!) as base pricelist
- select the discount schema which adds + 1.00 to the standard price
- Check the prices of the new PLV in Produkt Preise:
- => all prices from the new PLV have standard price + 1.00, compared to the original CP
- => the product price you set inactive was NOT modified: price on the new PLV is the same as in CP!
-
In Produkt Preise, select another product price from CP
-
Set “Staffelpreis” active, then set the product price inactive
-
Create another new pricelist, using the same discount schema and CP as base pricelist
- Check the prices of the new PLV in Podukt Preise:
- => all prices from the new PLV have standard price + 1.00, compared to the original CP
- => the product price you set inactive was NOT modified: price on the new PLV is the same as in CP!
- => product price you set inactive is a “Staffelpreis”, like in the original CP
-
Have another pricelist, e.g. vendor pricelist, that includes attribute prices
- In your pricelist, create a new pricelist version:
- set a name and start date as you like
- select your VP (with the attribute pices) as base pricelist
- have a discount schema that copies the prices from the original pricelist (modifying prices is not necessary)
-
In the original VP, change the attributes for a price with attributes set
- Check the prices of the new PLV in Produkt Preise:
- => all prices are copied
- => attribute prices have the same attributes set as the original VP, from when the new PLV was created
- => attributes for the price recently changed in VP is different from the new PLV, which has the old attribute set
View source file on GitHub.com