Skip to main content

When an item cannot be deleted or restored

Why BlueShell refuses to delete a customer with contracts, an already invoiced contract or a numbered invoice, and why a Recycle bin item sometimes cannot be restored, with what to do in each case.

The Recycle bin is not a shortcut to delete everything: some deletions are refused, because they would leave holes in the data or in the tax numbering. A refused deletion does not end up in the Recycle bin, because it did not happen.

Refused deletions

What you want to delete

When it is refused

What to do

Customer

it still has at least one contract or order

delete those contracts and orders, or assign them to another customer

Contract

it has amounts already invoiced, or a document still invoices it

cancel it instead of deleting it, or correct the document first

Contract

it has locked cost items

unlock them, or cancel the contract: it stays on record with its history

Order

it is in a locked status, or a document still invoices it

unlock it, or correct the document first

Invoice

it is locked, has linked payments, or has already been sent to Agyo/Aruba

remove the linked payments first, or correct it with a credit note instead of deleting it

Numbered invoice

it is not the last one in its register

correct it instead of deleting it: a tax number is never reassigned

Boat

it is still linked to contracts or other data

remove those links first

As a rule BlueShell's message gives the precise reason, for example “Cannot delete customer “…”: it still has 2 contract(s) and 1 order(s). Delete or reassign them first.”

Restores that are not possible

On the item's page, the Can it be restored? section says “Not now: something has changed since the delete.” and explains why. The most common cases:

The linked item is in the Recycle bin too

For example you first deleted an order and then its customer. The message says “… which is in the recycle bin too: restore … first.” with the name of the item to bring back first. Restore that one (in the example, the customer) and then go back to the order.

The linked item no longer exists

The message says “… which no longer exists.”: for example the contract's boat has been permanently deleted. In this case the restore is not possible.

A number or a code has been reused

If in the meantime you created an item with the same code or number that must be unique, the message says “… would duplicate a value that must be unique …”. Change the code of the new item, then restore.

A numbered invoice has a successor

An invoice with a number from a protected register can be restored only if in the meantime no document has been issued with the same number or with a later number. Otherwise putting it back would break the numbering, and the message suggests issuing a new document. Drafts (without a number, marked draft) do not have this constraint: only the checks of the other cases above apply.

Already restored or deleted

“This entry has already been restored or deleted permanently.”: a colleague got there before you.


Did this answer your question?