Change the start date for warranty expiration computation to date_schedule, instead of date_create or date_fulfilled. #401

This commit is contained in:
Korina Cordero 2020-05-11 06:50:15 +00:00
parent f54369d97f
commit e67c011831
2 changed files with 14 additions and 8 deletions

View file

@ -834,10 +834,13 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
$mobile_number = $obj->getCustomer()->getPhoneMobile();
// check if date fulfilled is null
if ($obj->getDateFulfill() == null)
$date_purchase = $obj->getDateCreate();
else
$date_purchase = $obj->getDateFulfill();
//if ($obj->getDateFulfill() == null)
// $date_purchase = $obj->getDateCreate();
//else
// $date_purchase = $obj->getDateFulfill();
// use date_schedule for warranty expiration computation
$date_purchase = $obj->getDateSchedule();
// validate plate number
// $plate_number = $this->wh->cleanPlateNumber($jo->getCustomerVehicle()->getPlateNumber());

View file

@ -535,10 +535,13 @@ class ResqRiderAPIHandler implements RiderAPIHandlerInterface
$mobile_number = $jo->getCustomer()->getPhoneMobile();
// check if date fulfilled is null
if ($jo->getDateFulfill() == null)
$date_purchase = $jo->getDateCreate();
else
$date_purchase = $jo->getDateFulfill();
//if ($jo->getDateFulfill() == null)
// $date_purchase = $jo->getDateCreate();
//else
// $date_purchase = $jo->getDateFulfill();
// use date_schedule for warranty expiration computation
$date_purchase = $jo->getDateSchedule();
$plate_number = $this->wh->cleanPlateNumber($jo->getCustomerVehicle()->getPlateNumber());