/**
  * @param $financeId FinanceRecord::$ID
  * @return mixed
  */
 public function actionPrint($financeId)
 {
     /** @var FinanceRecord $finance */
     if (($finance = FinanceRecord::findOne($financeId)) === null) {
         throw new NotFoundHttpException('The requested page does not exist.');
     }
     $model = new FinanceCheckRecord();
     $model->ContractorID = $finance->contractor->ID;
     $model->FinanceID = $finance->ID;
     $model->push($finance);
     $model->save();
     return $this->render('print', ['model' => $model]);
 }