Mark maintenance done
complete_maintenanceRecords completed maintenance tasks, updates next due dates, adjusts part stock, and logs notes or costs so recurring upkeep stays on schedule.
Instructions
Records that a task was done (today, or doneOn), with an optional note and cost in cents — use it whenever the person says they did one ("changed the furnace filter"); the id comes from list_maintenance. Credited to the task's usual provider unless providerId says otherwise (null: the household did it), and its part, if it has one, comes out of stock. A repeating task is then due again one interval after that day; a one-off is finished. For maintenance by use, give reading (what the odometer or hour meter says now): the next is due usageEvery after it. Returns the task with its new due date.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The task's id, from list_maintenance | |
| note | No | Anything worth remembering about this time | |
| doneOn | No | When it was done, yyyy-mm-dd; today if left out. The next due date counts from this day | |
| reading | No | Maintenance by use: what the item's counter says now; the next one is due usageEvery after it | |
| usePart | No | Take the task's part out of stock (default true; false when an old one was cleaned instead) | |
| costCents | No | What it cost this time, in cents | |
| providerId | No | Who did it this time (list_providers); left out: the task's usual provider; null: the household |