@@ -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 | /** |
@@ -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,11 +3,9 @@ |
||
| 3 | 3 | namespace hipanel\modules\finance\grid; |
| 4 | 4 | |
| 5 | 5 | use hipanel\modules\client\grid\ClientColumn; |
| 6 | -use hipanel\modules\finance\menus\SalePricesActionsMenu; |
|
| 7 | 6 | use hipanel\modules\finance\models\FakeSale; |
| 8 | 7 | use hipanel\modules\finance\models\Sale; |
| 9 | 8 | use hipanel\modules\finance\widgets\LinkToObjectResolver; |
| 10 | -use hiqdev\yii2\menus\grid\MenuColumn; |
|
| 11 | 9 | use Yii; |
| 12 | 10 | use yii\helpers\Html; |
| 13 | 11 | |
@@ -45,6 +45,10 @@ |
||
| 45 | 45 | ]; |
| 46 | 46 | } |
| 47 | 47 | |
| 48 | + /** |
|
| 49 | + * @param string $name |
|
| 50 | + * @param string[] $formulas |
|
| 51 | + */ |
|
| 48 | 52 | private function groupOf($name, $formulas) |
| 49 | 53 | { |
| 50 | 54 | return ['name' => $name, 'formulas' => $formulas]; |
@@ -3,7 +3,6 @@ |
||
| 3 | 3 | use hipanel\modules\finance\grid\SaleGridView; |
| 4 | 4 | use hipanel\widgets\IndexPage; |
| 5 | 5 | use hipanel\widgets\Pjax; |
| 6 | -use yii\helpers\Html; |
|
| 7 | 6 | |
| 8 | 7 | $this->title = Yii::t('hipanel:finance:sale', 'Sales'); |
| 9 | 8 | $this->params['breadcrumbs'][] = $this->title; |
@@ -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 | { |