Resolve "Fuel price change and geofence message change" #1620
2 changed files with 9 additions and 5 deletions
|
|
@ -902,7 +902,7 @@ class APIController extends Controller implements LoggedController
|
|||
{
|
||||
// TODO: put geofence error message in config file somewhere
|
||||
$res->setError(true)
|
||||
->setErrorMessage('Oops! Our service is limited to some areas in Metro Manila, Laguna, and Baguio only. We will update you as soon as we are able to cover your area');
|
||||
->setErrorMessage($this->getGeoErrorMessage());
|
||||
return $res->getReturnResponse();
|
||||
}
|
||||
|
||||
|
|
@ -2308,7 +2308,7 @@ class APIController extends Controller implements LoggedController
|
|||
if (!$is_covered)
|
||||
{
|
||||
$res->setError(true)
|
||||
->setErrorMessage('Oops! Our service is limited to some areas in Metro Manila, Laguna, and Baguio only. We will update you as soon as we are able to cover your area');
|
||||
->setErrorMessage($this->getGeoErrorMessage());
|
||||
}
|
||||
|
||||
return $res->getReturnResponse();
|
||||
|
|
@ -2769,7 +2769,7 @@ class APIController extends Controller implements LoggedController
|
|||
{
|
||||
// TODO: put geofence error message in config file somewhere
|
||||
$res->setError(true)
|
||||
->setErrorMessage('Oops! Our service is limited to some areas in Metro Manila, Laguna, and Baguio only. We will update you as soon as we are able to cover your area');
|
||||
->setErrorMessage($this->getGeoErrorMessage());
|
||||
return $res->getReturnResponse();
|
||||
}
|
||||
|
||||
|
|
@ -4708,4 +4708,8 @@ class APIController extends Controller implements LoggedController
|
|||
{
|
||||
return trim(strtolower($string));
|
||||
}
|
||||
|
||||
protected function getGeoErrorMessage() {
|
||||
return 'Oops! Our service is limited to some areas in Metro Manila, Laguna, Cavite, Pampanga and Baguio only. We will update you as soon as we are able to cover your area';
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -35,8 +35,8 @@ class ResqInvoiceGenerator implements InvoiceGeneratorInterface
|
|||
const WARRANTY_FEE = 0;
|
||||
const OTHER_SERVICES_FEE = 200;
|
||||
const COOLANT_FEE = 1600;
|
||||
const REFUEL_FEE_GAS = 380;
|
||||
const REFUEL_FEE_DIESEL = 400;
|
||||
const REFUEL_FEE_GAS = 340; // for 4 liters
|
||||
const REFUEL_FEE_DIESEL = 360; // for 4 liters
|
||||
|
||||
private $security;
|
||||
protected $em;
|
||||
|
|
|
|||
Loading…
Reference in a new issue