purchase_invoice_not_editable_in_current_state
Only a draft purchase invoice can be edited. Once registered as pending, paid or cancelled, its content backs an accounting entry.
| Code | Type | HTTP | Category |
|---|---|---|---|
purchase_invoice_not_editable_in_current_state | invalid_request_error | 422 | Purchase Invoices |
Cause
Only a draft purchase invoice can be edited. Once registered as pending, paid or cancelled, its content backs an accounting entry.
What to do
Move the invoice back to draft if it is still pending, or record the difference with a new document if it is already settled.