Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030644Openbravo ERP03. Procurement managementpublic2015-08-03 10:032015-08-25 14:10
VictorVillar 
AtulOpenbravo 
immediatemajoralways
closedfixed 
5
pi 
3.0PR15Q3.1 
dmiguelez
Core
No
0030644: Wrong quantity conversion in goods receipts under some circumstancies
Wrong quantity conversion in goods receipts under some circumstancies.
As System Administrator:
  show Conversion tab of the UOM window
  UOM tab of Product window
  Order quanty and Order UOM fields of Purchase order window || lines tab
  Order quanty and Order UOM fields of Goods Receipt window || lines tab

As group admin role,
 Go to Unit of measure window
     select kilogram unit of measue
     Conversion tab:
         Add Unit: Multiply rate by 3.6
 Go to Product window,
    create a new product.
    Name: secondUOM
    UOM: Unit
   Price tab:
       Tarifas Bebidas Alegres
   UOM tab:
     Kilogram

Go to Purchase Order window,
   create a new one for Business Partner: Bebidas Alegres
  Lines tab:
    Product: secondUOM
    Order qty: 20
    Order UOM: Kilogram
So UOM: Unit
   Ordered qty: 72
Complete it.

Go to Pending Goods Receipts window,
   select the purchase order created before and process it.

Go to Goods Receipt window,
   realise that the movement qty is 72 and the order qty is 259.2
Approved
blocks defect 00304813.0PR15Q4 closed AtulOpenbravo Wrong quantity conversion in goods receipts under some circumstancies 
Issue History
2015-08-24 11:55vmromanosTypedefect => backport
2015-08-24 11:55vmromanosTarget Version3.0PR15Q4 => 3.0PR15Q3.1
2015-08-24 11:56vmromanosTag Attached: Approved
2015-08-25 09:15hgbotCheckin
2015-08-25 09:15hgbotNote Added: 0079667
2015-08-25 09:15hgbotStatusscheduled => resolved
2015-08-25 09:15hgbotResolutionopen => fixed
2015-08-25 09:15hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR15Q3.1/rev/21aab95f70ec0a54c2c0b22a07bebc9ff26c8134 [^]
2015-08-25 14:09dmiguelezNote Added: 0079705
2015-08-25 14:10dmiguelezReview Assigned To => dmiguelez
2015-08-25 14:10dmiguelezNote Added: 0079706
2015-08-25 14:10dmiguelezStatusresolved => closed

Notes
(0079667)
hgbot   
2015-08-25 09:15   
Repository: erp/backports/3.0PR15Q3.1
Changeset: 21aab95f70ec0a54c2c0b22a07bebc9ff26c8134
Author: Atul Gaware <atul.gaware <at> openbravo.com>
Date: Thu Aug 13 10:45:12 2015 +0530
URL: http://code.openbravo.com/erp/backports/3.0PR15Q3.1/rev/21aab95f70ec0a54c2c0b22a07bebc9ff26c8134 [^]

Fixes Issue 30644:Wrong quantity conversion in goods receipts under some
circumstancies

When using conversion from primary UOM to secondary uom divideby rate
should be used and when vice versa multiply rate should be used.

---
M src/org/openbravo/erpCommon/ad_forms/MaterialReceiptPending.java
---
(0079705)
dmiguelez   
2015-08-25 14:09   
Repo with the Process that fixes wrong data:
https://code.openbravo.com/erp/pmods/org.openbravo.fix.stock.qtyorderonhand [^]
(0079706)
dmiguelez   
2015-08-25 14:10   
Code Review + Testing Ok