|
|
|
|
|
|
|
|
use backend\forms\ProductPriceUploadForm; |
|
|
use backend\forms\ProductPriceUploadForm; |
|
|
use common\helpers\CSV; |
|
|
use common\helpers\CSV; |
|
|
use common\helpers\GlobalParam; |
|
|
use common\helpers\GlobalParam; |
|
|
use common\logic\Distribution\ProductDistribution\Model\ProductDistribution; |
|
|
|
|
|
use common\logic\Feature\Feature\Model\Feature; |
|
|
|
|
|
|
|
|
use common\logic\Feature\Feature\Feature; |
|
|
use common\logic\PointSale\PointSale\Model\PointSale; |
|
|
use common\logic\PointSale\PointSale\Model\PointSale; |
|
|
use common\logic\Product\Product\Model\Product; |
|
|
use common\logic\Product\Product\Model\Product; |
|
|
use common\logic\Product\Product\Model\ProductSearch; |
|
|
use common\logic\Product\Product\Model\ProductSearch; |
|
|
|
|
|
|
|
|
use common\logic\User\UserProducer\Model\UserProducer; |
|
|
use common\logic\User\UserProducer\Model\UserProducer; |
|
|
use Yii; |
|
|
use Yii; |
|
|
use yii\filters\AccessControl; |
|
|
use yii\filters\AccessControl; |
|
|
use yii\helpers\BaseFileHelper; |
|
|
|
|
|
use yii\helpers\Html; |
|
|
use yii\helpers\Html; |
|
|
use yii\web\NotFoundHttpException; |
|
|
use yii\web\NotFoundHttpException; |
|
|
use yii\filters\VerbFilter; |
|
|
|
|
|
use common\helpers\Upload; |
|
|
use common\helpers\Upload; |
|
|
use yii\web\UploadedFile; |
|
|
use yii\web\UploadedFile; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/ |
|
|
*/ |
|
|
public function actionPriceImport() |
|
|
public function actionPriceImport() |
|
|
{ |
|
|
{ |
|
|
if($this->getFeatureModule()->getManager()->isDisabled(Feature::ALIAS_PRODUCT_PRICE_IMPORT)) { |
|
|
|
|
|
|
|
|
if($this->getFeatureModule()->getChecker()->isDisabled(Feature::ALIAS_PRODUCT_PRICE_IMPORT)) { |
|
|
return $this->redirectDashboard(); |
|
|
return $this->redirectDashboard(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
*/ |
|
|
*/ |
|
|
public function actionPriceExport() |
|
|
public function actionPriceExport() |
|
|
{ |
|
|
{ |
|
|
if($this->getFeatureModule()->getManager()->isDisabled(Feature::ALIAS_PRODUCT_PRICE_IMPORT)) { |
|
|
|
|
|
|
|
|
if($this->getFeatureModule()->getChecker()->isDisabled(Feature::ALIAS_PRODUCT_PRICE_IMPORT)) { |
|
|
return $this->redirectDashboard(); |
|
|
return $this->redirectDashboard(); |
|
|
} |
|
|
} |
|
|
|
|
|
|