Add checking for JO service type. #740
This commit is contained in:
parent
e2498beca7
commit
92abe703d3
1 changed files with 4 additions and 0 deletions
|
|
@ -4122,6 +4122,10 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
|
||||||
{
|
{
|
||||||
$hub = $rejection->getHub();
|
$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
|
// check if hub has a notification number
|
||||||
$notif_number = $hub->getNotifNumber();
|
$notif_number = $hub->getNotifNumber();
|
||||||
if (empty($notif_number))
|
if (empty($notif_number))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue