purchase_invoice_not_deletable_in_current_state
Only draft and cancelled purchase invoices can be deleted. A pending or paid one is part of the expense ledger.
| Code | Type | HTTP | Category |
|---|---|---|---|
purchase_invoice_not_deletable_in_current_state | invalid_request_error | 422 | Purchase Invoices |
Cause
Only draft and cancelled purchase invoices can be deleted. A pending or paid one is part of the expense ledger.
What to do
Cancel the invoice instead of deleting it; a cancelled invoice can then be removed if you really do not want it on record.