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 | Contacts |
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.
Related
All Contacts error codes
Causes and actions for errors in this category.
Error codes by category
Find an error by the category that emits it.
Full reference table
All codes, HTTP statuses, types and descriptions in one reference.
Error model
Interpret the error envelope and handle errors by code.