Community mailing list archives
Re: FBSR_RE: Wrong margin when using UOSby
Mustafa Al Saeedi
Thank you Mihai for your explanation,
I thought that the cost field indicate to cost of default uom.
Now whenever use uos with product I must divided cost on coeff to get correct margin
On Sat, Mar 26, 2016 at 2:00 PM, Mihai FEKETE <Mihai.FEKETE@forbiom.eu> wrote:
Hi...the margin is correct since the sale price is in unit of sale and cost price is in default unit of measure...so 5.97 x 1.5 is 8.755
If you have 7.2 - 8.955 is -1.755 if you multiple by 50 it's almost 88...depending on digits you set...so it's corect.
Mihai FeketeOdoo SpecialistForest and Biomass Services Romania.
Sent from my Samsung device
-------- Original message --------
From: Mustafa Al Azaam <firstname.lastname@example.org>
Date: 26/03/2016 12:17 (GMT+02:00)
To: Community <email@example.com>
Subject: Wrong margin when using UOS
I faced an issue with calculating right margin on sales order when using unit of sale other that unit of measure.
e.g. when I sale (50 pcs) of product X that has
uom = pcs (piece)
uom cost price = 5.97
uom sale price = 7.2
uos = square meter
uos coeff = 1.5
with total 50 x 7.2 = 360
where the margin, according how I do understand is
7.2 - 5.97 = 1.23then the expected margin is 50 x 1.23 = 61.5
BUT I get -88.4 as a margin
when don't use uos everything works fine
I forget to mention that the impacted version of odoo is 8.0-20160103
I hope to hear your opinions