Message 65597

Author
pokoli
Date
2021-03-17.15:51:35
Message id
65597

Content

When both product_cost_history and product_cost_fifo are activated the product cost history showns a wrong price when the cost is updated by an outgoing move.

Here are the steps to reproduce:

  1. Create a product with fifo cost method
  2. Receive 4 unit at 10€
  3. Receive 4 unit at 12€
  4. Check the cost price of the product is 11€ and the cost shown on history is 11€
  5. Send 3 units of the product

Now the cost price on the product is updated to 11.6€ but on the history is still showing 11€.
Also browsing the locations at the current date shows a valuation of 55€ (5units x 11€) while it should be 58€ (5 units x 11.6€)

This was introduced by changeset 6542d4065178

History
Date User Action Args
2021-03-17 15:51:36pokolisetmessageid: <1615992696.2216144.EYFARUUCQDFHAANC.issue10206@tryton.org>
2021-03-17 15:51:36pokolilinkissue10206 messages
2021-03-17 15:51:35pokolicreate

Showing 10 items. Show all history (warning: this could be VERY long)