Peer review [3013031] MPPProductPlaning: inactive items are found / drop duplicated validation on ad_client_id
Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=3013031
This commit is contained in:
parent
d24601f70f
commit
64a2f0fb1d
|
@ -128,7 +128,6 @@ public class MPPProductPlanning extends X_PP_Product_Planning
|
|||
|
||||
return new Query(ctx, MPPProductPlanning.Table_Name, whereClause, trxname)
|
||||
.setParameters(ad_client_id, ad_org_id, m_product_id, m_warehouse_id, s_resource_id)
|
||||
.setClient_ID()
|
||||
.setOnlyActiveRecords(true)
|
||||
.firstOnly();
|
||||
}
|
||||
|
@ -156,7 +155,6 @@ public class MPPProductPlanning extends X_PP_Product_Planning
|
|||
return new Query(ctx, Table_Name, whereClause, trxName)
|
||||
.setParameters(Env.getAD_Client_ID(ctx), M_Product_ID, AD_Org_ID, M_Warehouse_ID, S_Resource_ID)
|
||||
.setOnlyActiveRecords(true)
|
||||
.setClient_ID()
|
||||
.setOrderBy("COALESCE(AD_Org_ID, 0) DESC"
|
||||
+", COALESCE(M_Warehouse_ID, 0) DESC"
|
||||
+", COALESCE(S_Resource_ID, 0) DESC")
|
||||
|
|
Loading…
Reference in New Issue