update
This commit is contained in:
parent
16fc88fb9b
commit
38690a5c9a
@ -277,6 +277,9 @@ class VehicleContractController extends BaseAdminController
|
|||||||
$cars[$k]['type'] = 0;
|
$cars[$k]['type'] = 0;
|
||||||
}
|
}
|
||||||
if($data['type'] == 1){
|
if($data['type'] == 1){
|
||||||
|
if(empty($v['id'])){
|
||||||
|
$cars[$k]['type'] = 1;
|
||||||
|
}
|
||||||
$rentInfo = VehicleRent::where('car_id',$v['id'])->findOrEmpty();
|
$rentInfo = VehicleRent::where('car_id',$v['id'])->findOrEmpty();
|
||||||
if($rentInfo->isEmpty()){
|
if($rentInfo->isEmpty()){
|
||||||
$cars[$k]['type'] = 0;
|
$cars[$k]['type'] = 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user