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