From 61c7774da01d74bd6c1845e92d749893e6d82610 Mon Sep 17 00:00:00 2001 From: Korina Cordero Date: Tue, 7 Jun 2022 03:08:02 +0000 Subject: [PATCH] Fix color coding issue. #678 --- src/Service/JobOrderHandler/ResqJobOrderHandler.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Service/JobOrderHandler/ResqJobOrderHandler.php b/src/Service/JobOrderHandler/ResqJobOrderHandler.php index 1adc6c0d..f94b5ee1 100644 --- a/src/Service/JobOrderHandler/ResqJobOrderHandler.php +++ b/src/Service/JobOrderHandler/ResqJobOrderHandler.php @@ -188,10 +188,11 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface $service_types = ServiceType::getCollection(); // process rows - $is_vip = false; - $is_emergency = false; $rows = []; foreach ($obj_rows as $orow) { + $is_vip = false; + $is_emergency = false; + // check if customer is vip $cust_class = $orow->getCustomer()->getCustomerClassification(); if ($cust_class == CustomerClassification::VIP) @@ -201,7 +202,7 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface $will_not_wait = $orow->getWillWait(); if ($will_not_wait == WillingToWaitContent::NOT_WILLING_TO_WAIT) $is_emergency = true; - + // add row data $row['id'] = $orow->getID(); $row['customer_name'] = $orow->getCustomer()->getFirstName() . ' ' . $orow->getCustomer()->getLastName(); -- 2.43.5