Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0030645Openbravo ERP03. Procurement managementpublic2015-08-03 10:032015-08-25 14:10
VictorVillar 
AtulOpenbravo 
immediatemajoralways
closedfixed 
5
pi 
3.0PR15Q2.4 
dmiguelez
Core
No
0030645: 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.0PR15Q2.4
2015-08-24 11:56vmromanosTag Attached: Approved
2015-08-25 09:15hgbotCheckin
2015-08-25 09:15hgbotNote Added: 0079666
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.0PR15Q2.4/rev/4b46dfef896311f5d4d84b08a12397740d2698ac [^]
2015-08-25 14:10dmiguelezNote Added: 0079707
2015-08-25 14:10dmiguelezReview Assigned To => dmiguelez
2015-08-25 14:10dmiguelezNote Added: 0079708
2015-08-25 14:10dmiguelezStatusresolved => closed

Notes
(0079666)
hgbot   
2015-08-25 09:15   
Repository: erp/backports/3.0PR15Q2.4
Changeset: 4b46dfef896311f5d4d84b08a12397740d2698ac
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.0PR15Q2.4/rev/4b46dfef896311f5d4d84b08a12397740d2698ac [^]

Fixes Issue 30645: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
---
(0079707)
dmiguelez   
2015-08-25 14:10   
Repo with the Process that fixes wrong data:
https://code.openbravo.com/erp/pmods/org.openbravo.fix.stock.qtyorderonhand [^]
(0079708)
dmiguelez   
2015-08-25 14:10   
Code Review + Testing Ok