mirror of
https://github.com/Sea-Haven-Industries/shoc-frontend-new.git
synced 2026-10-06 12:22:03 +00:00
12 lines
490 B
TypeScript
12 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;
|
||
|
|
}
|