← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 668378] Re: invoice from packing wrong price/unit if product has uos

 

Hello  Piotr Buszka

Thanks for reporting,
It has been fixed in lp:~openerp-commiter/openobject-addons/trunk-addons-aag
Revision ID: aag@xxxxxxxxxxxxx-20101104101019-c219duu0021gjs4h
Revision num: 5015 . 
It will be available in trunk soon,

** Changed in: openobject-addons
       Status: In Progress => Fix Released

-- 
invoice from packing wrong price/unit if product has uos
https://bugs.launchpad.net/bugs/668378
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Addons Modules: Fix Released

Bug description:
If :
 - a product has both UOM and UOS fixed by a coefficient in the product
 - invoice is generated packing based on quantities delivered
 - 1 UOM = 5 UOS
 
Sales order uses UOM and corresponding quantity to calculate line subtotal = uom_qty * unit price. It means that price in sales order reflects price per UOM not per UOS

Packing uses UOM 

When Invoice is generated from packing the unit used on invoice is UOS and quantity is uos_qty. 
But the price is taken from sales order which is price per UOM resulting in 5 times higher subtotal for the invoice line in this case.

To reproduce :
1. define a product with both UOM and UOS
2. create a sales order with the product with mode invoice from picking
3. confirm picking for sales order
4. create invoice from picking

amounts on sales order and invoice are different

Proposed solution :
of of the three but I am not sure which is most consistent with the rest of the system
1. use UOM and uom_qty on invoice
2. adjust price_unit on invoice to reflect price per UOS
3. use UOS and price per UOS in sales order but probably it will screw up everything else later in the chain





References