Retrieve ONYR for item code by calculated ONYR from table ORDDTL that have status is Open or Confirmed or Partial Receive.
-Open and confirmed order quantity (in SKU) + free goods quantity (in SKU)
-Partial Received order quantity (in SKU) – received quantity (in SKU)