Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0022913Openbravo ERP03. Procurement managementpublic2013-01-28 16:202013-03-02 05:48
ngarcia 
jecharri 
urgentmajoralways
closedfixed 
5
pi 
3.0MP213.0MP21 
ngarcia
Core
No
0022913: Second UOM not shown when creating a receipt from an order that has been partially received
Second UOM not shown when creating a receipt from an order that has been partially received
As system admin role:
   Activate the following tabs:
      Product - UOM
      Unit of Measure - Conversion
   and display at least the following fields:
      Purchase Order - Lines - Order Quantity
      Purchase Order - Lines - Order UOM
      Goods shipment - Lines - Order Quantity
      Goods shipment - Lines - Order UOM
As group admin role:
   Create a new product
   Define a purchase price list to it
   Configure a second unit of measure in the UOM tab
   Configure the conversion between the 1st and 2nd UOM in the Unit of Measure window
   Create a Sales Order and include a line with the product (fill the Order UOM and Order Quantity fields)
   Book it
   Create a Goods Receipt from it (Create Lines From)
   In the pop-up decrease the Order Quantity (2nd UOM)
   Complete it
   Create a new receipt from the same order
   Notice that the 2nd UOM field is empty
In CreateFrom_Shipment_data.xsql selectFromPO function, the secQty value is obtained using the c_uom_convert function

C_UOM_CONVERT(SUM(COALESCE(m.Qty,0)), l.C_UOM_ID, l.M_PRODUCT_UOM_ID, 'Y')

It takes as third attribute the m_product_uom_id column of the c_orderline table instead of the c_uom_id column of the m_product_uom table with the m_product_uom_id value.
No tags attached.
related to defect 0032937 closed markmm82 Wrong parameter is passed to the c_uom_convert function 
Issue History
2013-01-28 16:20ngarciaNew Issue
2013-01-28 16:20ngarciaAssigned To => dmiguelez
2013-01-28 16:20ngarciaModules => Core
2013-01-28 16:20ngarciaTriggers an Emergency Pack => No
2013-01-30 10:16jonalegriaesarteTarget Version => 3.0MP21
2013-01-31 09:02dmiguelezAssigned Todmiguelez => jonalegriaesarte
2013-02-21 02:21jonalegriaesarteAssigned Tojonalegriaesarte => jecharri
2013-02-21 17:03hgbotCheckin
2013-02-21 17:03hgbotNote Added: 0056689
2013-02-21 17:03hgbotStatusnew => resolved
2013-02-21 17:03hgbotResolutionopen => fixed
2013-02-21 17:03hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/38be060bff04759de483f42df3efd769c0e2bb0e [^]
2013-02-22 07:57hudsonbotCheckin
2013-02-22 07:57hudsonbotNote Added: 0056718
2013-02-26 09:36ngarciaNote Added: 0056756
2013-02-26 10:01hgbotCheckin
2013-02-26 10:01hgbotNote Added: 0056761
2013-02-26 12:16ngarciaReview Assigned To => ngarcia
2013-02-26 12:16ngarciaNote Added: 0056765
2013-02-26 12:16ngarciaStatusresolved => closed
2013-02-26 12:16ngarciaFixed in Version => 3.0MP21
2013-03-02 05:48hudsonbotCheckin
2013-03-02 05:48hudsonbotNote Added: 0056913
2016-05-11 19:06ngarciaRelationship addedrelated to 0032937

Notes
(0056689)
hgbot   
2013-02-21 17:03   
Repository: erp/devel/pi
Changeset: 38be060bff04759de483f42df3efd769c0e2bb0e
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Fri Mar 01 17:01:40 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/38be060bff04759de483f42df3efd769c0e2bb0e [^]

Fixes issue 22913: Second UOM not shown when
creating a receipt from an order that has been partially received

---
M src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Shipment_data.xsql
---
(0056718)
hudsonbot   
2013-02-22 07:57   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b99c43bfb674 [^]

Maturity status: Test
(0056756)
ngarcia   
2013-02-26 09:36   
The steps o reproduce have an error:

You should create a purchase order, not a sales order
(0056761)
hgbot   
2013-02-26 10:01   
Repository: erp/devel/pi
Changeset: 059d60b862a4a8eb94e3fdeed120bcb23dd7f39a
Author: Javier Etxarri <javier.echarri <at> openbravo.com>
Date: Tue Feb 26 09:36:29 2013 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/059d60b862a4a8eb94e3fdeed120bcb23dd7f39a [^]

issue 22913: Second UOM not shown when
creating a receipt from an order that has been partially received

---
M src/org/openbravo/erpCommon/ad_actionButton/CreateFrom_Shipment_data.xsql
---
(0056765)
ngarcia   
2013-02-26 12:16   
verified
(0056913)
hudsonbot   
2013-03-02 05:48   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/f5db629e7058 [^]

Maturity status: Test