foundations
foundations copied to clipboard
Allow setting the `nominalAccountId` in Work order item `POST`/`PATCH` request
Is your feature request related to a problem? Please describe. The nominal account id cannot be set/updated though the API
Describe the solution you'd like
Add the nominalAccountId as an optional field in the POST /worksOrders/{id}/items and PATCH /worksOrders/{id}/items/{itemId} endpoints
Example
{
"notes": "Please book the electrical certificate for either Thursday or Friday.",
"chargeTo": "landlord",
....
"nominalAccountId" : "genman"
}
Describe alternatives you've considered There are no alternatives. This should have already been an option after #8517