Resolve "Transition branch for CMB and Resq merging" #1181

Merged
korina.cordero merged 258 commits from 329-transition-branch-for-cmb-and-resq-merging into master 2020-04-03 02:49:26 +00:00
2 changed files with 4 additions and 8 deletions
Showing only changes of commit 26d2dab6d8 - Show all commits

View file

@ -635,10 +635,8 @@ class RAPIController extends Controller
];
$mclient->sendEvent($jo, $payload);
// TODO: verify if we need to create warranty for battery replacement under warranty
// create the warranty if new battery or battery replacement
if (($jo->getServiceType () == CMBServiceType::BATTERY_REPLACEMENT_NEW) ||
($jo->getServiceType () == CMBServiceType::BATTERY_REPLACEMENT_WARRANTY))
// create the warranty if new battery only
if ($jo->getServiceType () == CMBServiceType::BATTERY_REPLACEMENT_NEW)
{
$this->createWarranty($jo);
}

View file

@ -705,10 +705,8 @@ class CMBJobOrderHandler implements JobOrderHandlerInterface
$mclient->sendEvent($obj, $payload);
$mclient->sendRiderEvent($obj, $payload);
// TODO: verify if we need to create warranty for battery replacement under warranty
// create the warranty if new battery or battery replacement
if (($obj->getServiceType () == CMBServiceType::BATTERY_REPLACEMENT_NEW) ||
($obj->getServiceType () == CMBServiceType::BATTERY_REPLACEMENT_WARRANTY))
// create the warranty if new battery only
if ($obj->getServiceType () == CMBServiceType::BATTERY_REPLACEMENT_NEW)
{
$this->createWarranty($obj);
}