Issue 11874

Unit price in the stock move for the sale component
Nosy list
booraa0a, ced, reviewbot, roundup-bot
Assigned to
backport, review

Created on 2022-11-09.21:49:12 by booraa0a, last changed 5 days ago by roundup-bot.


New changeset 5cd36e0b5302 by Cédric Krier in branch 'default':
Normalize price ratio from component quantity
New changeset 3127dbf9cd15 by Cédric Krier in branch 'default':
Normalize price ratio from component quantity
Author: [hidden] (booraa0a)
Date: 2022-11-10.00:34:59

the sale unit price for the kit is 50

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2022-11-10.00:30:22

And what is the unit price of the kit?

Author: [hidden] (booraa0a)
Date: 2022-11-10.00:27:59

the price ratio is 0.9090909091 (component A)
(component B)

Author: [hidden] (ced) Tryton committer Tryton translator
Date: 2022-11-10.00:12:32

What is the price_ratio?

Author: [hidden] (booraa0a)
Date: 2022-11-09.21:49:12

Hello everyone,

I am using 6.2 version.

I have product kit with components A (Qty 10) list price 5.05, B (Qty 1) list price 5.05, When I sell the kit for 50, the unit price in outgoing stock move is allocated 4.5455 for component B and 45.4545 for component A. The unit price should be same for both components. If I run margin report for component A, the revenue that I got for this component A is 45.454510 = 454.45 which is more than the whole sale of kit.*

Date User Action Args
2022-11-24 19:20:25roundup-botsetmessages: + msg80192
2022-11-24 19:20:11roundup-botsetmessages: + msg80191
nosy: + roundup-bot
status: testing -> resolved
2022-11-10 02:32:28reviewbotsetmessages: + msg79998
nosy: + reviewbot
2022-11-10 02:09:47cedsetassignedto: ced
keyword: + backport, review
reviews: 424221004
status: need-eg -> testing
2022-11-10 00:34:59booraa0asetmessages: + msg79997
2022-11-10 00:30:22cedsetmessages: + msg79996
2022-11-10 00:27:59booraa0asetmessages: + msg79995
2022-11-10 00:12:32cedsetmessages: + msg79993
nosy: + ced
status: unread -> need-eg
2022-11-09 21:49:12booraa0acreate

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