Message You must post more usage or credit the sales of item xxxx

I put a bag no. on the wrong job and tried to do a Job Journal to remove it, I got a message up saying I had to cancel the sale or add more stock, I didn’t want to do either but in the end I cancelled my sales invoice to try to sort. Can someone explain why I got this message.