Tryton - Issues

 

Issue8699

Title Cost price increases when no quantity FIFO
Priority bug Status resolved
Superseder Nosy List ced, reviewbot, roundup-bot
Type behavior Components product_cost_fifo
Assigned To ced Keywords review
Reviews 252351002
View: 252351002

Created on 2019-10-01.18:38:07 by ced, last changed by roundup-bot.

Messages
New changeset 1a53df5aa5f7 by Cédric Krier in branch '5.2':
Use current cost price if no FIFO moves
https://hg.tryton.org/modules/product_cost_fifo/rev/1a53df5aa5f7

New changeset bbbefe975064 by Cédric Krier in branch '5.0':
Use current cost price if no FIFO moves
https://hg.tryton.org/modules/product_cost_fifo/rev/bbbefe975064

New changeset 87218d683f5c by Cédric Krier in branch '4.8':
Use current cost price if no FIFO moves
https://hg.tryton.org/modules/product_cost_fifo/rev/87218d683f5c

New changeset e60e09fdb5cd by Cédric Krier in branch '4.6':
Use current cost price if no FIFO moves
https://hg.tryton.org/modules/product_cost_fifo/rev/e60e09fdb5cd
New changeset 0fc2481dbe89 by Cédric Krier in branch 'default':
Use current cost price if no FIFO moves
https://hg.tryton.org/tryton-env/rev/0fc2481dbe89
New changeset ea82b7ca5eb1 by Cédric Krier in branch 'default':
Use current cost price if no FIFO moves
https://hg.tryton.org/modules/product_cost_fifo/rev/ea82b7ca5eb1

New changeset 66c8ac6af50d by Cédric Krier in branch 'default':
Add test for FIFO cost price with no input
https://hg.tryton.org/modules/product_cost_fifo/rev/66c8ac6af50d
review252351002 updated at https://codereview.tryton.org/252351002/#ps270321004
review252351002 updated at https://codereview.tryton.org/252351002/#ps264331002
msg52226 (view) Author: [hidden] (ced) (Tryton committer) (Tryton translator) Date: 2019-10-01.18:38:06
If we can not find fifo_moves, we compute the average cost price using the price 0. This makes the average cost price to increase because we move out products. This is not right. For me in such case, the cost price should not change so we must use the current average cost price.
History
Date User Action Args
2019-10-30 23:59:03roundup-botsetmessages: + msg52812
keyword: - backport
2019-10-24 18:59:21cedsetkeyword: + backport
2019-10-24 18:59:09roundup-botsetmessages: + msg52669
2019-10-24 18:59:01roundup-botsetstatus: testing -> resolved
nosy: + roundup-bot
messages: + msg52668
2019-10-11 11:47:30reviewbotsetmessages: + msg52416
2019-10-01 18:42:44reviewbotsetnosy: + reviewbot
messages: + msg52228
2019-10-01 18:39:28cedsetstatus: in-progress -> testing
reviews: 252351002
keyword: + review
2019-10-01 18:38:07cedcreate

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