@@ -12,9 +12,7 @@ discard block |
||
| 12 | 12 | |
| 13 | 13 | use hipanel\actions\IndexAction; |
| 14 | 14 | use hipanel\actions\RedirectAction; |
| 15 | -use hipanel\actions\SmartCreateAction; |
|
| 16 | 15 | use hipanel\actions\SmartDeleteAction; |
| 17 | -use hipanel\actions\SmartPerformAction; |
|
| 18 | 16 | use hipanel\actions\SmartUpdateAction; |
| 19 | 17 | use hipanel\actions\ValidateFormAction; |
| 20 | 18 | use hipanel\actions\ViewAction; |
@@ -23,16 +21,11 @@ discard block |
||
| 23 | 21 | use hipanel\modules\finance\forms\BillImportForm; |
| 24 | 22 | use hipanel\modules\finance\forms\CurrencyExchangeForm; |
| 25 | 23 | use hipanel\modules\finance\models\Bill; |
| 26 | -use hipanel\modules\finance\models\BillSearch; |
|
| 27 | -use hipanel\modules\finance\models\Charge; |
|
| 28 | -use hipanel\modules\finance\models\ChargeSearch; |
|
| 29 | 24 | use hipanel\modules\finance\models\ExchangeRate; |
| 30 | 25 | use hipanel\modules\finance\providers\BillTypesProvider; |
| 31 | -use hiqdev\hiart\ActiveDataProvider; |
|
| 32 | 26 | use Yii; |
| 33 | 27 | use yii\base\Event; |
| 34 | 28 | use yii\base\Module; |
| 35 | -use yii\data\ArrayDataProvider; |
|
| 36 | 29 | use yii\filters\AccessControl; |
| 37 | 30 | |
| 38 | 31 | class BillController extends \hipanel\base\CrudController |
@@ -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 | { |