feat(contracts): show allotment headline and edit allotted hours from detail view #257
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/mapps-255-contract-allotment-edit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Surface the current-period allotted/remaining hours as a headline on the contract detail Hour Balance card and let managers edit the allotment in place. The headline derives "X of Y hours remaining" from the most-recently-started period in balance_resource, above the existing per-period table which still lists Included / Used / Remaining / Rollover.
Add an "Edit Allotment" control (billing-gated, shown only when a block_hours line item exists) that opens a modal editing that item's included_hours via a full-replace PUT through UpsertContractItemRequest, preserving every other field so the allotment changes without re-creating the line item. On save, both the balance and items resources refresh so the new remaining balance shows immediately.
#MAPPS-255