mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-05 20:02:05 +00:00
The queue Amount column, the detail modal and the reject/revoke dialogs showed requestedNTE (the resulting NTE total) while the decision toasts showed delta (the increase), so a work order with an existing NTE named two different figures for one request. Route every surface through one upliftAmount helper that returns the increase, matching the prototype's single uplift amount, and show it on both Approve buttons.
11 lines
490 B
TypeScript
11 lines
490 B
TypeScript
import type { UpliftRequest } from "@/domain/uplifts/types/uplift";
|
|
|
|
/**
|
|
* The amount of an uplift: the increase being requested on top of the work
|
|
* order's current NTE. Every surface that names "the uplift" (queue Amount,
|
|
* Approve label, detail modal, reject/revoke dialogs and decision toasts)
|
|
* shows this figure; `requestedNTE` is the resulting NTE total, not the uplift.
|
|
*/
|
|
export function upliftAmount(request: Pick<UpliftRequest, "delta">): number {
|
|
return request.delta;
|
|
}
|