Bug in margin of sales
Bug #1226860 reported by
Luis Torres - http://www.vauxoo.com
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Odoo Addons (MOVED TO GITHUB) |
Fix Committed
|
Medium
|
OpenERP R&D Addons Team 2 |
Bug Description
1) Steps to reproduce the issue you have observed
1.- Create a tax of sale, with field 'price_include' = True,
2.- And you create a new sale order, and add a line, with the tax create in the step 1, unit unit = 100, cost unit = 50. Update the amounts, and the margin is calculated.
http://
2) The result you observed
I see that the margin is incorrect, because was calculated with the unit price plus the amount of tax.
Unit tax = 100
Cost Unit = 50
Subtotal = 86.21
margin = 50
3) The result you expected
margin = subtotal - cost unit
Margin = 86.21 - 50 = 36.21
Related branches
lp://staging/~openerp-dev/openobject-addons/trunk-bug-1226860-jpr
Ready for review
for merging
into
lp://staging/openobject-addons
- Amit Parik (community): Approve
- OpenERP Core Team: Pending requested
-
Diff: 12 lines (+1/-1)1 file modifiedsale_margin/sale_margin.py (+1/-1)
Changed in openobject-addons: | |
assignee: | OpenERP R&D Addons Team 3 (openerp-dev-addons3) → OpenERP R&D Addons Team 2 (openerp-dev-addons2) |
tags: | added: margin sale |
Changed in openobject-addons: | |
status: | Confirmed → In Progress |
To post a comment you must log in.
Hello,
it should be take like this (Margin = untaxed amount - sum f (cost price of each line)).
Thank you!