Integrate bug fixing from Teo Sarca
BUG ID 1619112 - Posible problem for LastPO costing, Batch/Lot level
This commit is contained in:
parent
e3b02cb1b0
commit
1127167ebd
|
@ -13,6 +13,7 @@
|
||||||
* For the text or an alternative of this public license, you may reach us *
|
* For the text or an alternative of this public license, you may reach us *
|
||||||
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
* ComPiere, Inc., 2620 Augustine Dr. #245, Santa Clara, CA 95054, USA *
|
||||||
* or via info@compiere.org or http://www.compiere.org/license.html *
|
* or via info@compiere.org or http://www.compiere.org/license.html *
|
||||||
|
* Contributor(s): Teo Sarca
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
package org.compiere.model;
|
package org.compiere.model;
|
||||||
|
|
||||||
|
@ -29,6 +30,9 @@ import org.compiere.util.*;
|
||||||
*
|
*
|
||||||
* @author Jorg Janke
|
* @author Jorg Janke
|
||||||
* @version $Id: MCost.java,v 1.6 2006/07/30 00:51:02 jjanke Exp $
|
* @version $Id: MCost.java,v 1.6 2006/07/30 00:51:02 jjanke Exp $
|
||||||
|
*
|
||||||
|
* Carlos Ruiz - globalqss - integrate bug fix from Teo Sarca
|
||||||
|
* [ 1619112 ] Posible problem for LastPO costing, Batch/Lot level
|
||||||
*/
|
*/
|
||||||
public class MCost extends X_M_Cost
|
public class MCost extends X_M_Cost
|
||||||
{
|
{
|
||||||
|
@ -489,7 +493,7 @@ public class MCost extends X_M_Cost
|
||||||
if (AD_Org_ID != 0)
|
if (AD_Org_ID != 0)
|
||||||
sql += " AND ol.AD_Org_ID=?";
|
sql += " AND ol.AD_Org_ID=?";
|
||||||
else if (M_ASI_ID != 0)
|
else if (M_ASI_ID != 0)
|
||||||
sql += " AND t.M_AttributeSetInstance_ID=?";
|
sql += " AND ol.M_AttributeSetInstance_ID=?";
|
||||||
sql += " ORDER BY o.DateOrdered DESC, ol.Line DESC";
|
sql += " ORDER BY o.DateOrdered DESC, ol.Line DESC";
|
||||||
//
|
//
|
||||||
PreparedStatement pstmt = null;
|
PreparedStatement pstmt = null;
|
||||||
|
|
Loading…
Reference in New Issue