SELECT SUM(QUANTITY_COMMITTED) FROM TRANSACTION_LINES WHERE ITEM_ID = {item_id} GROUP BY ITEM_ID
The other is from the Item - Locations mapping table:SELECT (SUM(ON_HAND_COUNT) - SUM(AVAILABLE_COUNT)) AS QUANTITY_COMMITTED FROM ITEM_LOCATION_MAP WHERE ITEM_ID = {item_id} GROUP BY ITEM_ID
No comments:
Post a Comment