Log Mileage
log_mileageRecords one trip the signed-in person drove for a job as a mileage claim on a project (by projectId, or by its code or name), priced at the published rate for the workspace currency and the trip's year (the IRS standard rate per mile in USD, the CRA allowance per kilometer in CAD; not offered in other currencies), with the arithmetic kept on the claim. Owed back to the person unless they say otherwise. Handles "I drove 34 miles to the RISE site today". The result carries the call that undoes it.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| date | No | The day of the cost, YYYY-MM-DD. Defaults to today in the person's time zone; never in the future. | |
| userId | No | Not needed when signed in: these tools act for the signed-in person, and any other ID is refused. Applies only to a workspace connection with no signed-in user, naming whose expenses these are. | |
| project | No | The project as the person said it: its code (e.g. "RISE") or its name, matched exactly on code first. When several projects match, nothing is recorded and the candidates come back. | |
| billable | No | Whether the client pays for it (default false). | |
| distance | Yes | How far was driven, in miles for a USD workspace or kilometers for CAD, like 34 or 42.5. | |
| projectId | No | The project the cost is on, by id. Give projectId or project. | |
| description | No | The trip, e.g. "Office to the RISE site and back". | |
| reimbursable | No | Whether it is owed back to the person (default true). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| undo | No | The call that reverses this one, with its arguments. | |
| expense | No | ||
| receipt | No |