This makes sense to me, and I like the sequential allocation approach. I just want to clarify one point: does this formula assume that the received quantity should always be applied to the matching PO rows from top to bottom?
For example, if PO# 52698 has three ordered rows of 103, 105, and...