← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 750498] Re: sales_margin bad calculation in sales make in currency not base

 

OpenERP - GTK Client - v6.0.1

** Attachment added: "wrong_margin.png"
   https://bugs.launchpad.net/openobject-addons/+bug/750498/+attachment/1978512/+files/wrong_margin.png

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.
https://bugs.launchpad.net/bugs/750498

Title:
  sales_margin bad calculation in sales make in currency not base

Status in OpenERP Modules (addons):
  New

Bug description:
  under the following scenario sales_margin module is not correctly
  calculating the margin of a sale:

  The base currency is Mexican Pesos (MXN) and the rate is 0.084033 dollars per peso.
  The product costs $ 15000.00 pesos
  The sale price is 35000.00 pesos.

  Making a sale of the product in dollars, the system calculates the
  margin to next form:

  2941.15 (sale price in dollars) - 15000 (purchase price in pesos) =
  Incorrect margin: -12058.85



References