supplier_has_documents
The supplier is referenced by registered purchase invoices, and deleting it would leave those expenses without the party that issued them.
| Code | Type | HTTP | Category |
|---|---|---|---|
supplier_has_documents | invalid_request_error | 422 | Suppliers |
Cause
The supplier is referenced by registered purchase invoices, and deleting it would leave those expenses without the party that issued them.
What to do
Deactivate the supplier instead of deleting it: it stops appearing in selectors and its invoices keep their reference.