Rename variable stype_id to service_type for more consistency #104
This commit is contained in:
parent
32d6c7238c
commit
14976361b9
2 changed files with 1020 additions and 2 deletions
1016
sql/resq.backup.20180419.1710.sql
Normal file
1016
sql/resq.backup.20180419.1710.sql
Normal file
File diff suppressed because one or more lines are too long
|
|
@ -848,7 +848,7 @@ class APIController extends Controller
|
||||||
{
|
{
|
||||||
// check required parameters and api key
|
// check required parameters and api key
|
||||||
$required_params = [
|
$required_params = [
|
||||||
'stype_id',
|
'service_type',
|
||||||
'cv_id',
|
'cv_id',
|
||||||
'batt_id',
|
'batt_id',
|
||||||
'trade_in',
|
'trade_in',
|
||||||
|
|
@ -869,7 +869,7 @@ class APIController extends Controller
|
||||||
|
|
||||||
// make invoice criteria
|
// make invoice criteria
|
||||||
$icrit = new InvoiceCriteria();
|
$icrit = new InvoiceCriteria();
|
||||||
$icrit->setServiceType($req->request->get('stype_id'));
|
$icrit->setServiceType($req->request->get('service_type'));
|
||||||
|
|
||||||
// check promo
|
// check promo
|
||||||
$promo_id = $req->request->get('promo_id');
|
$promo_id = $req->request->get('promo_id');
|
||||||
|
|
@ -1266,6 +1266,8 @@ class APIController extends Controller
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$jo_data['items'] = $items;
|
||||||
|
|
||||||
|
|
||||||
// dates depending on status
|
// dates depending on status
|
||||||
switch ($status)
|
switch ($status)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue