Auto price update updates inactive unit prices

Description

This bug applies to both product editing and deliveries, where the product-supplier relationship has Auto Price Update set true.
To reproduce:
1. create a product with 2 unit prices, one expiring yesterday
2. on the Suppliers tab, add a supplier relationship
3. tick the Auto Price Update flag and change the List Price. All unit prices will be updated, whereas only those active at the current time should update

Environment

None

Status

Assignee

Tim Anderson

Reporter

Tim Anderson

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure