Add id to list vehicles for API

This commit is contained in:
Kendrick Chan 2018-02-04 12:13:59 +08:00
parent 59d76c3975
commit 3dff90da90

View file

@ -566,6 +566,7 @@ class APIController extends Controller
$wty_ex = $cv->getWarrantyExpiration()->format('Y-m-d');
$cv_list[] = [
'id' => $cv->getID(),
'mfg_id' => $cv->getVehicle()->getManufacturer()->getID(),
'make_id' => $cv->getVehicle()->getID(),
'name' => $cv->getName(),