Update RAPIController.php

This commit is contained in:
Korina Cordero 2020-01-25 01:31:18 +00:00
parent c9185e6139
commit 3eb7c2c426

View file

@ -934,7 +934,8 @@ class RAPIController extends Controller
protected function updateVehicleBattery(JobOrder $jo)
{
// check if new battery
if ($jo->getServiceType() != ServiceType::BATTERY_REPLACEMENT_NEW)
if (($jo->getServiceType() != ServiceType::BATTERY_REPLACEMENT_NEW) ||
($jo->getServiceType() != CMBServiceType::BATTERY_REPLACEMENT_NEW))
return;
// customer vehicle