openerp-india team mailing list archive
-
openerp-india team
-
Mailing list archive
-
Message #27086
[Bug 1089229] Re: Sales using Secondary UoM show incorrect unit price
** Also affects: ocb-addons/6.1
Importance: Undecided
Status: New
** Also affects: ocb-addons/7.0
Importance: Undecided
Status: New
--
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/1089229
Title:
Sales using Secondary UoM show incorrect unit price
Status in OpenERP Community Backports (Addons):
New
Status in OpenERP Community Backports (Addons) 6.1 series:
New
Status in OpenERP Community Backports (Addons) 7.0 series:
New
Status in OpenERP Addons (modules):
Fix Committed
Bug description:
OpenERP version: openerp-6.1-20121004-232945
retested using runbot.openerp.com : 6_1_1953_base (as of dec 12, 2012)
Preparations:
1) On runbot selecting the base (6_1_1953_base) install the module "sale".
2) go to Sales -> Configurations -> Products -> Units of Measure -> UoM Categories
and create the new category "Area"
3) go to Sales -> Configurations -> Products -> Units of Measure -> Units of Measure
and create the new unit "m²" of UoM Category "Area" as the base unit.
4) go to Sales -> Products -> Products
and create new product "metal plate" using default unit of measure "m", Unit of sales as "m²" and UoM -> UoS Coeff = 0.95
leave price at 1.00.
(This would be typical when for example cutting metal plates that are 0.95 m wide and 3m long)
Test:
1) Go to Sales -> Sales -> Sales Orders and create a new sale
2) choose a random client and add the newly created product from our preparations i.e. "metal plate", and specify quantity = 10 m.
3) Click "Print Quotation"
Notice error in resulting PDF:
Qty is correctly set to 9.500 m², however price pr unit = 1.00, which is incorrect as that was the price for UoM, not UoS.
4) confirm the order and print final order.
Notice the same error is in resulting pdf.
5) Create the invoice
Notice the invoice got the correct unit price of 1.05, but now the total value is has changed to 9.97 instead of 10.00! This might not be a problem, though 1.05 x 9.5 = 9.975 which was expected to be rounded up rather than down.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ocb-addons/+bug/1089229/+subscriptions
References