clients_sync_invoices
Resync unsent invoices with a client's current name, CUI, and tax details, including older drafts not uploaded to ANAF; cached XML/PDF regenerate with the updated data.
Instructions
Resync all unsent invoices with the client's current profile data (name, CUI, tax details). Unlike the automatic propagation on client update (current month only), this also rewrites older invoices, as long as they were not uploaded to ANAF and are not cancelled. Cached XML/PDF files are invalidated so they regenerate with the new data. Returns the number of invoices updated.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| uuid | Yes | Client UUID whose unsent invoices should be resynced | |
| companyId | No | Company UUID override (uses active company if not set) |