← Back to team overview

openerp-india team mailing list archive

[Bug 1226860] Re: Bug in margin of sales

 

Hello,

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

Thank you!

** Changed in: openobject-addons
   Importance: Undecided => Medium

** Changed in: openobject-addons
       Status: New => Confirmed

** Changed in: openobject-addons
     Assignee: (unassigned) => OpenERP R&D Addons Team 3 (openerp-dev-addons3)

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/1226860

Title:
  Bug in margin of sales

Status in OpenERP Addons (modules):
  Confirmed

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/1226860/+subscriptions


References