Purchase date is ignored when using purchase_price_list and product_price_list_dates
Steps to reproduce:
- Activate
product_price_list_dates
andpurchase_price_list
- Create a price list with two lines: one that ends yesterday and formula
10
and other that starts yesterday and amount20
- Create a purchase with purchase date yesterday
- Add a line to the purchase
Current behaviour is that the unit price is set to 20, using todays price list. Expected behaviour is that the price is computing using yesterday's formula.
Edited by Sergi Almacellas Abellana