|
|
|
|
|
|
|
|
|
|
|
|
|
|
$this->setTitle('Bons de livraison'); |
|
|
$this->setTitle('Bons de livraison'); |
|
|
$this->addBreadcrumb($this->getTitle()); |
|
|
$this->addBreadcrumb($this->getTitle()); |
|
|
//$this->addButton(['label' => 'Nouveau bon de livraison <span class="glyphicon glyphicon-plus"></span>', 'url' => 'delivery-note/create', 'class' => 'btn btn-primary']); |
|
|
|
|
|
|
|
|
$this->addButton(['label' => 'Nouveau bon de livraison <span class="glyphicon glyphicon-plus"></span>', 'url' => 'delivery-note/create', 'class' => 'btn btn-primary']); |
|
|
|
|
|
|
|
|
?> |
|
|
?> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
'header' => 'Point de vente', |
|
|
'header' => 'Point de vente', |
|
|
'format' => 'raw', |
|
|
'format' => 'raw', |
|
|
'value' => function($model) { |
|
|
'value' => function($model) { |
|
|
return Html::encode($model->getPointSale()->name).'<br />' |
|
|
|
|
|
.'le '.date('d/m/Y', strtotime($model->getDistribution()->date)); |
|
|
|
|
|
|
|
|
$pointSale = $model->getPointSale() ; |
|
|
|
|
|
$distribution = $model->getDistribution() ; |
|
|
|
|
|
if($pointSale && $distribution) { |
|
|
|
|
|
return Html::encode($pointSale->name).'<br />' |
|
|
|
|
|
.'le '.date('d/m/Y', strtotime($distribution->date)); |
|
|
|
|
|
} |
|
|
|
|
|
return '' ; |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
[ |
|
|
[ |