Bug in margin of sales

Bug #1226860 reported by Luis Torres - http://www.vauxoo.com
8
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://www.youtube.com/watch?v=KfbdYptJdTk&feature=youtu.be

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

Tags: margin sale

Related branches

Revision history for this message
Amit Parik (amit-parik) wrote :

Hello,

it should be take like this (Margin = untaxed amount - sum f (cost price of each line)).

Thank you!

Changed in openobject-addons:
assignee: nobody → OpenERP R&D Addons Team 3 (openerp-dev-addons3)
importance: Undecided → Medium
status: New → Confirmed
Amit Parik (amit-parik)
Changed in openobject-addons:
assignee: OpenERP R&D Addons Team 3 (openerp-dev-addons3) → OpenERP R&D Addons Team 2 (openerp-dev-addons2)
Amit Parik (amit-parik)
tags: added: margin sale
Changed in openobject-addons:
status: Confirmed → In Progress
Revision history for this message
Jitendra Prajapati(OpenERP) (jitendra.prajapati-openerp) wrote :

Hello,

 It has been Fixed in https://code.launchpad.net/~openerp-dev/openobject-addons/trunk-bug-1226860-jpr

 revision-id: <email address hidden>

 revno: 8971

It will be available in trunk soon.

Thanks

Changed in openobject-addons:
status: In Progress → Fix Committed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.