← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 780413] [NEW] stab6.02- changing uom leads to erroneous price calculations due to rounding too early

 

Public bug reported:

Take this scenario.

Default UOM is 1kg and the net price is 4.99 / kg on a pricelist.
Change it to 1000 grams in an SO  and you will see the net price is
$0.00.  One would expect 1000g = 1kg = $4.99

Extreme example I know, but lets say it was $14.99 per kilo, how much is
1000 grams

To my mind it should be $14.99 but OpenERP says it is $10.00 if I change
the price to $15.00 / kg then 1000 grams is $20.00.

What about a much more realistic $44.99/kg and the guy wants 800 grams.
Enter 0.8 kg and you charge $35.99.  Enter 800 grams and it is $32.00

IMO net total price should be the same no matter what UOM is chosen to
represent the quantity.

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
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/780413

Title:
  stab6.02- changing uom leads to erroneous price calculations due to
  rounding too early

Status in OpenERP Modules (addons):
  New

Bug description:
  Take this scenario.

  Default UOM is 1kg and the net price is 4.99 / kg on a pricelist.
  Change it to 1000 grams in an SO  and you will see the net price is
  $0.00.  One would expect 1000g = 1kg = $4.99

  Extreme example I know, but lets say it was $14.99 per kilo, how much
  is 1000 grams

  To my mind it should be $14.99 but OpenERP says it is $10.00 if I
  change the price to $15.00 / kg then 1000 grams is $20.00.

  What about a much more realistic $44.99/kg and the guy wants 800
  grams.  Enter 0.8 kg and you charge $35.99.  Enter 800 grams and it is
  $32.00

  IMO net total price should be the same no matter what UOM is chosen to
  represent the quantity.


Follow ups

References