From f8e3e7df2d9bd1ee687529e99e410f9b5fcc07c8 Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Fri, 10 Jun 2022 08:00:18 +0000 Subject: [PATCH] Add rush request JOs to be marked the same color as emergency. #681 --- src/Service/JobOrderHandler/ResqJobOrderHandler.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/Service/JobOrderHandler/ResqJobOrderHandler.php b/src/Service/JobOrderHandler/ResqJobOrderHandler.php index 4ec6917d..1b6013e0 100644 --- a/src/Service/JobOrderHandler/ResqJobOrderHandler.php +++ b/src/Service/JobOrderHandler/ResqJobOrderHandler.php @@ -202,7 +202,13 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface // check if customer is not willing to wait $will_not_wait = $orow->getWillWait(); if ($will_not_wait == WillingToWaitContent::NOT_WILLING_TO_WAIT) - $is_emergency = true; + { + // check if reason is emergency or rush + $reason = $orow->getReasonNotWait(); + if (($reason == CustomerNotWaitReason::EMERGENCY) || + ($reason == CustomerNotWaitReason::RUSH_REQUEST)) + $is_emergency = true; + } // add row data $row['id'] = $orow->getID();