@@ -30,6 +30,9 @@ |
||
| 30 | 30 | $this->loadMerchants($this->depositRequest); |
| 31 | 31 | } |
| 32 | 32 | |
| 33 | + /** |
|
| 34 | + * @param DepositRequest $depositRequest |
|
| 35 | + */ |
|
| 33 | 36 | public function loadMerchants($depositRequest) |
| 34 | 37 | { |
| 35 | 38 | $this->addItems($this->fetchMerchants($depositRequest)); |
@@ -89,6 +89,9 @@ |
||
| 89 | 89 | return $this->getDocumentsOfType('acceptance'); |
| 90 | 90 | } |
| 91 | 91 | |
| 92 | + /** |
|
| 93 | + * @param string $type |
|
| 94 | + */ |
|
| 92 | 95 | public function getDocumentsOfType($type) |
| 93 | 96 | { |
| 94 | 97 | if (Yii::$app->user->can('document.read') === false) { |
@@ -3,8 +3,6 @@ |
||
| 3 | 3 | use hipanel\modules\finance\grid\PriceGridView; |
| 4 | 4 | use hipanel\widgets\IndexPage; |
| 5 | 5 | use hipanel\widgets\Pjax; |
| 6 | -use yii\helpers\Html; |
|
| 7 | -use yii\helpers\Url; |
|
| 8 | 6 | |
| 9 | 7 | $this->title = Yii::t('hipanel:finance', 'Price'); |
| 10 | 8 | $this->params['breadcrumbs'][] = $this->title; |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | /** |
| 43 | - * @return array |
|
| 43 | + * @return string[] |
|
| 44 | 44 | */ |
| 45 | 45 | public static function getPeriods() |
| 46 | 46 | { |
@@ -104,7 +104,7 @@ |
||
| 104 | 104 | /** |
| 105 | 105 | * @param Transaction $transaction |
| 106 | 106 | * @param string|array $response |
| 107 | - * @return mixed |
|
| 107 | + * @return Transaction |
|
| 108 | 108 | * @throws \yii\base\ExitException |
| 109 | 109 | */ |
| 110 | 110 | protected function completeTransaction($transaction, $response) |
@@ -6,7 +6,6 @@ |
||
| 6 | 6 | use hipanel\modules\finance\models\Bill; |
| 7 | 7 | use hipanel\modules\finance\models\Charge; |
| 8 | 8 | use hipanel\modules\server\models\Consumption; |
| 9 | -use hiqdev\php\units\Quantity; |
|
| 10 | 9 | use Yii; |
| 11 | 10 | |
| 12 | 11 | /** |
@@ -19,7 +19,6 @@ |
||
| 19 | 19 | use hipanel\modules\finance\models\factories\PriceModelFactory; |
| 20 | 20 | use hipanel\modules\finance\models\Plan; |
| 21 | 21 | use hipanel\modules\finance\models\PriceSuggestionRequestForm; |
| 22 | -use hipanel\modules\server\models\Server; |
|
| 23 | 22 | use hipanel\filters\EasyAccessControl; |
| 24 | 23 | use hipanel\modules\finance\models\Price; |
| 25 | 24 | use hipanel\modules\finance\models\TargetObject; |
@@ -202,11 +202,17 @@ |
||
| 202 | 202 | ]); |
| 203 | 203 | } |
| 204 | 204 | |
| 205 | + /** |
|
| 206 | + * @param Bill $model |
|
| 207 | + */ |
|
| 205 | 208 | public function tariffLink($model): string |
| 206 | 209 | { |
| 207 | 210 | return Html::a($model->tariff, ['@plan/view', 'id' => $model->tariff_id]); |
| 208 | 211 | } |
| 209 | 212 | |
| 213 | + /** |
|
| 214 | + * @param Bill $model |
|
| 215 | + */ |
|
| 210 | 216 | public function objectTag($model): string |
| 211 | 217 | { |
| 212 | 218 | return $model->object ? implode(': ', [$model->class_label, $this->objectLink($model)]) : ''; |
@@ -47,6 +47,9 @@ |
||
| 47 | 47 | ]; |
| 48 | 48 | } |
| 49 | 49 | |
| 50 | + /** |
|
| 51 | + * @param string $name |
|
| 52 | + */ |
|
| 50 | 53 | private function groupOf($name, $formulas) |
| 51 | 54 | { |
| 52 | 55 | return ['name' => $name, 'formulas' => $formulas]; |