OK. might need to join the second part (which is looking at the AP Invoice) to its base Purchase order & look at those lines instead of the AP Invoice lines?
I am not sure how the AP Invoice lines get closed - has the Reserve invoice been copied to a GRPO? I would have though they would be closed at that point.