Thank you very much for taking a look at this issue. What you have displayed is not the end goal however.
We are trying to fill only orders which can have all of their lines filled. So, since order AAAA can not have one of it's lines filled, we will not allocate inventory to any of the lines in order AAAA.
If an entire order can be completely filled, we will then decrease the value of on hand inventory for the parts in that order accordingly (if all order lines can be completely filled).
Thank you again for taking a look at this!