@@ -68,6 +68,9 @@ |
||
| 68 | 68 | return $this->generateDocument('generate-document', compact('id', 'type')); |
| 69 | 69 | } |
| 70 | 70 | |
| 71 | + /** |
|
| 72 | + * @param string $action |
|
| 73 | + */ |
|
| 71 | 74 | public function generateDocument($action, $params) |
| 72 | 75 | { |
| 73 | 76 | try { |
@@ -41,7 +41,6 @@ discard block |
||
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | - * @param string $type Tariff type |
|
| 45 | 44 | * @return string |
| 46 | 45 | */ |
| 47 | 46 | protected function buildClassName() |
@@ -49,6 +48,9 @@ discard block |
||
| 49 | 48 | return 'hipanel\modules\finance\logic\bill\\' . $this->types[$this->type]; |
| 50 | 49 | } |
| 51 | 50 | |
| 51 | + /** |
|
| 52 | + * @param string $type |
|
| 53 | + */ |
|
| 52 | 54 | protected function fixType($type) |
| 53 | 55 | { |
| 54 | 56 | if (strpos($type, ',') !== false) { |
@@ -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 | { |
@@ -12,7 +12,6 @@ |
||
| 12 | 12 | |
| 13 | 13 | use hipanel\modules\finance\logic\IntegrityException; |
| 14 | 14 | use hipanel\modules\finance\models\CertificateResource; |
| 15 | -use Yii; |
|
| 16 | 15 | use yii\web\UnprocessableEntityHttpException; |
| 17 | 16 | |
| 18 | 17 | /** |
@@ -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 | { |
@@ -14,7 +14,6 @@ |
||
| 14 | 14 | use hipanel\modules\finance\models\decorators\AbstractResourceDecorator; |
| 15 | 15 | use hipanel\modules\finance\models\decorators\ResourceDecoratorInterface; |
| 16 | 16 | use hipanel\modules\finance\models\ServerResource; |
| 17 | -use NumberFormatter; |
|
| 18 | 17 | use Yii; |
| 19 | 18 | |
| 20 | 19 | abstract class AbstractServerResourceDecorator extends AbstractResourceDecorator implements ResourceDecoratorInterface |
@@ -12,9 +12,7 @@ |
||
| 12 | 12 | |
| 13 | 13 | use hipanel\helpers\ArrayHelper; |
| 14 | 14 | use hipanel\modules\finance\logic\ServerTariffCalculatorInterface; |
| 15 | -use hipanel\modules\finance\models\Resource; |
|
| 16 | 15 | use hipanel\modules\finance\models\ServerResource; |
| 17 | -use hipanel\modules\server\models\Server; |
|
| 18 | 16 | use Yii; |
| 19 | 17 | use yii\web\UnprocessableEntityHttpException; |
| 20 | 18 | |
@@ -13,7 +13,6 @@ |
||
| 13 | 13 | use hipanel\base\ModelTrait; |
| 14 | 14 | use hipanel\modules\finance\models\decorators\server\AbstractServerResourceDecorator; |
| 15 | 15 | use hipanel\modules\finance\models\decorators\server\ServerResourceDecoratorFactory; |
| 16 | -use hipanel\modules\server\models\Server; |
|
| 17 | 16 | use Yii; |
| 18 | 17 | |
| 19 | 18 | /** |
@@ -18,7 +18,6 @@ |
||
| 18 | 18 | use hiqdev\hiart\ResponseErrorException; |
| 19 | 19 | use Yii; |
| 20 | 20 | use yii\base\InvalidConfigException; |
| 21 | -use yii\web\NotFoundHttpException; |
|
| 22 | 21 | use yii\web\UnprocessableEntityHttpException; |
| 23 | 22 | |
| 24 | 23 | /** |
@@ -21,7 +21,6 @@ |
||
| 21 | 21 | use hipanel\modules\finance\widgets\BillTypeFilter; |
| 22 | 22 | use hipanel\modules\finance\widgets\ColoredBalance; |
| 23 | 23 | use hipanel\widgets\ArraySpoiler; |
| 24 | -use hiqdev\combo\StaticCombo; |
|
| 25 | 24 | use hiqdev\yii2\menus\grid\MenuColumn; |
| 26 | 25 | use Yii; |
| 27 | 26 | use yii\helpers\Html; |