add contract controller(s) changes

This commit is contained in:
Roland Schneider
2018-09-10 07:40:50 +02:00
parent dd0d6c50c9
commit 792d0caab5
7 changed files with 266 additions and 74 deletions

View File

@@ -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