Production order issue when material is insufficient

I hope the Suggested solution by Lubos works for you.