I found the problem. Traced the transaction backwards when it happened again
Staff was over eager to post the transactions. They answered no to the question " commit to stock" instead of no to the next question to not create a PO for outstanding items on the delivery. If I am correct this will add the invoice to the vendor but not update my stock!