add contract controller(s) changes
This commit is contained in:
@@ -60,11 +60,13 @@ class ContractController extends Controller {
|
||||
'dataProvider' => $dataProvider
|
||||
] );
|
||||
}
|
||||
/**
|
||||
* Lists all Contract models.
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
|
||||
/**
|
||||
* Lists all Contract models.
|
||||
*
|
||||
* @return mixed
|
||||
* @throws NotFoundHttpException
|
||||
*/
|
||||
public function actionIndexCustomer($id) {
|
||||
$model = Customer::findOne ( $id );
|
||||
|
||||
@@ -82,13 +84,14 @@ class ContractController extends Controller {
|
||||
'dataProvider' => $dataProvider
|
||||
] );
|
||||
}
|
||||
|
||||
/**
|
||||
* Displays a single Contract model.
|
||||
*
|
||||
* @param integer $id
|
||||
* @return mixed
|
||||
*/
|
||||
|
||||
/**
|
||||
* Displays a single Contract model.
|
||||
*
|
||||
* @param integer $id
|
||||
* @return mixed
|
||||
* @throws NotFoundHttpException
|
||||
*/
|
||||
public function actionView($id) {
|
||||
return $this->render ( 'view', [
|
||||
'model' => $this->findModel ( $id )
|
||||
@@ -115,14 +118,15 @@ class ContractController extends Controller {
|
||||
] );
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Updates an existing Contract model.
|
||||
* If update is successful, the browser will be redirected to the 'view' page.
|
||||
*
|
||||
* @param integer $id
|
||||
* @return mixed
|
||||
*/
|
||||
|
||||
/**
|
||||
* Updates an existing Contract model.
|
||||
* If update is successful, the browser will be redirected to the 'view' page.
|
||||
*
|
||||
* @param integer $id
|
||||
* @return mixed
|
||||
* @throws NotFoundHttpException
|
||||
*/
|
||||
public function actionUpdate($id) {
|
||||
$model = $this->findModel ( $id );
|
||||
|
||||
@@ -217,7 +221,13 @@ class ContractController extends Controller {
|
||||
'index'
|
||||
] );
|
||||
}
|
||||
public function actionDetails($id) {
|
||||
|
||||
/**
|
||||
* @param $id
|
||||
* @return string
|
||||
* @throws NotFoundHttpException
|
||||
*/
|
||||
public function actionDetails($id) {
|
||||
$contract = Contract::findOne ( $id );
|
||||
// ticket_installment_request
|
||||
|
||||
|
||||
Reference in New Issue
Block a user