Commit 258dcb37 authored by Iñigo Lerga Valencia's avatar Iñigo Lerga Valencia Committed by David Miguélez
Browse files

fixes BUG-45092:orderline id in place of record id

M_GET_STOCK_PARAM call is now executed with c_orderline_id
instead of record id.
parent 97da353e
......@@ -514,7 +514,7 @@ BEGIN --BODY
AND c_orderline_id = ol.c_orderline_id;
END IF;
M_GET_STOCK_PARAM(v_pinstance_ID, v_record_id, v_Qty, v_Product_old, null, null, v_Warehouse_old, Cur_Order.AD_Org_ID, v_Attribute_old, v_User_ID, v_ad_client_id, v_warehouse_rule_id, v_UOM_old, v_Product_UOM_old, null, null, null, '199', v_reservation_id, 'N', v_pinstance_result, v_pinstance_msg, 'Y', null, null);
M_GET_STOCK_PARAM(v_pinstance_ID, ol.c_orderline_id, v_Qty, v_Product_old, null, null, v_Warehouse_old, Cur_Order.AD_Org_ID, v_Attribute_old, v_User_ID, v_ad_client_id, v_warehouse_rule_id, v_UOM_old, v_Product_UOM_old, null, null, null, '199', v_reservation_id, 'N', v_pinstance_result, v_pinstance_msg, 'Y', null, null);
-- Check result
IF (v_pinstance_result = 0) THEN
-- Error on m_get_stock
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment