Add checking for JO service type. #740

This commit is contained in:
Korina Cordero 2023-03-07 02:30:57 +00:00
parent e2498beca7
commit 92abe703d3

View file

@ -4122,6 +4122,10 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
{
$hub = $rejection->getHub();
// check if JO service type is NOT battery sales
if ($jo->getServiceType() !== ServiceType::BATTERY_REPLACEMENT_NEW)
return null;
// check if hub has a notification number
$notif_number = $hub->getNotifNumber();
if (empty($notif_number))