mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-06-08 11:37:25 +00:00
Merge pull request #205 from Hestia-Homes/feautre/data_for_corodination_guiness
Some checks are pending
Next.js Build Check / build (push) Waiting to run
Some checks are pending
Next.js Build Check / build (push) Waiting to run
Feautre/data for corodination guiness
This commit is contained in:
commit
c95f73f2c6
1 changed files with 2 additions and 1 deletions
|
|
@ -60,6 +60,7 @@ const STAGE_ID_MAP: Record<string, string> = {
|
|||
"2769407184": "Queries", //[Ops] Talk to client, Needs Heating Upgrade (Pre EPR C)
|
||||
"2702650617": "AFTER_ASSESSMENT", //[Design] Ready for Design
|
||||
"2473886962": "AFTER_ASSESSMENT", //[Design] Design in progress
|
||||
"1668803774": "AFTER_ASSESSMENT", //[Ops] post-ERF / completed coordination stage
|
||||
};
|
||||
|
||||
// -----------------------------------------------------------------------
|
||||
|
|
@ -94,7 +95,7 @@ function resolveAfterAssessmentStage(
|
|||
// Maps dealstage ID + coordinationStatus + designStatus -> DisplayStage
|
||||
// -----------------------------------------------------------------------
|
||||
export function resolveDisplayStage(deal: HubspotDeal): DisplayStage {
|
||||
const raw = STAGE_ID_MAP[deal.dealstage ?? ""] ?? "Unknown Stage";
|
||||
const raw = STAGE_ID_MAP[deal.dealstage ?? ""] ?? "AFTER_ASSESSMENT";
|
||||
|
||||
if (raw === "AFTER_ASSESSMENT") {
|
||||
return resolveAfterAssessmentStage(
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue