product_price_history: price inserted in the future displayed as current price

Bug #1295114 reported by Guewen Baconnier @ Camptocamp
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Financial controlling and costing
Fix Released
High
Guewen Baconnier @ Camptocamp

Bug Description

If I insert a price in the future for a product (this is possible using the `to_date` key in the context), then the price is correctly inserted in the product_price_history table, but is now displayed as the current price on the product.

Example:

Product A has a price of 100.- today, 2014-03-20.
I insert a price for product A of 200.- for the 2014-06-01.
Now, if I read the price of the product, it displays 200.-, whereas I expect it to be 100.-

This is a corner case but it should be handled correctly.

Related branches

summary: product_price_history: price inserted in the future displayed as current
- date
+ price
Changed in margin-analysis:
status: New → Fix Released
assignee: nobody → Guewen Baconnier @ Camptocamp (gbaconnier-c2c)
importance: Undecided → High
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.