If you go line by line of the Materials tab
and each item on the invoice you have to make sure
you have sufficient quantity of each item on the invoice
once you have adjusted the on hand quantiity of each item then you should be able to post the invoice without errors