Are you asking for the stored procedure after I added your code?
What I tired so far was to modified the CASE statement where the Filled Rate gets calculated:
CASE
WHEN cte2.QuantityOrdered <> cte_oqty.QuantityOrdered
AND cte2.QuantityOrdered <> cte2.ShippedQuantity
THEN cte2.QuantityOrdered
WHEN cte2.ShippedQuantity = 0
THEN 0
ELSE cte_oqty.QuantityOrdered
END AS OrgQty
I can upload the stored procedure too if needed.