diff --git a/frontend/views/car/order-add.php b/frontend/views/car/order-add.php index 8cc5330..9d6647b 100644 --- a/frontend/views/car/order-add.php +++ b/frontend/views/car/order-add.php @@ -357,9 +357,11 @@ use common\models\PriceT; $('#insurer2_begin_date').val(obj.data.UserInfo.NextForceStartDate); } if(obj.data.UserInfo.CarUsedType) { - $('#car_use_id').val(parseint(obj.data.UserInfo.CarUsedType)); + $('#car_use_id').val(parseInt(obj.data.UserInfo.CarUsedType)); + } + if(obj.data.UserInfo.SeatCount) { + $('#seats').val(obj.data.UserInfo.SeatCount); } - //purchase_price } if(obj.data.VehicleItems && obj.data.VehicleItems[0]) { if(obj.data.VehicleItems[0].PurchasePrice) {