What you see

After Delete on a stock out linked to an invoice:

  • "Stock out deleted", with "Invoice [number] was not cancelled: you cannot cancel invoices."
  • "Stock out deleted", with "Invoice [number] was not cancelled: other stock is still issued against it".
  • "Could not cancel invoice, please cancel it manually".

Why it happens

Deleting a stock out cancels its invoice only when you may cancel invoices and no other stock is issued against that invoice. The stock out is deleted and its stock restored either way.

What to do

  1. If other stock outs are issued against the invoice, decide whether they stay. Delete them too if they were also a mistake. See Delete a stock out.
  2. Cancel the invoice, or ask someone who may cancel invoices. See Cancel an invoice.

If it still happens

If the invoice cannot be cancelled, submit a request with the invoice number.