|
|
@@ -37,6 +37,7 @@ termes. |
|
|
|
*/ |
|
|
|
|
|
|
|
use common\logic\Distribution\Distribution\Model\Distribution; |
|
|
|
use common\logic\Distribution\Distribution\Wrapper\DistributionManager; |
|
|
|
use common\logic\Distribution\PointSaleDistribution\Model\PointSaleDistribution; |
|
|
|
use common\logic\Producer\Producer\Model\Producer; |
|
|
|
use common\logic\Producer\Producer\Wrapper\ProducerManager; |
|
|
@@ -47,6 +48,8 @@ use common\helpers\Price; |
|
|
|
|
|
|
|
$productManager = ProductManager::getInstance(); |
|
|
|
$producerManager = ProducerManager::getInstance(); |
|
|
|
$distributionManager = DistributionManager::getInstance(); |
|
|
|
|
|
|
|
$producer = $this->context->getProducerCurrent() ; |
|
|
|
|
|
|
|
$this->setTitle('Accueil'); |
|
|
@@ -86,7 +89,7 @@ $this->setPageTitle(Html::encode($producer->type.' à '.$producer->city)) ; |
|
|
|
'label' => 'Jours de livraison', |
|
|
|
'format' => 'raw', |
|
|
|
'contentOptions' => ['class' => 'days'], |
|
|
|
'value' => function($model) { |
|
|
|
'value' => function($model) use ($distributionManager) { |
|
|
|
|
|
|
|
$producer = \Yii::$app->controller->getProducerCurrent() ; |
|
|
|
|
|
|
@@ -119,7 +122,7 @@ $this->setPageTitle(Html::encode($producer->type.' à '.$producer->city)) ; |
|
|
|
} |
|
|
|
elseif($producer->behavior_home_point_sale_day_list == Producer::BEHAVIOR_HOME_POINT_SALE_DAY_LIST_INCOMING_DISTRIBUTIONS) { |
|
|
|
$html = '' ; |
|
|
|
$incomingDistributions = Distribution::getIncoming(); |
|
|
|
$incomingDistributions = $distributionManager->findDistributionsIncoming(); |
|
|
|
$cpt = 0 ; |
|
|
|
foreach($incomingDistributions as $distribution) { |
|
|
|
$countPointSaleDistribution = PointSaleDistribution::searchCount([ |