|
|
@@ -38,7 +38,7 @@ |
|
|
|
|
|
|
|
$this->setTitle('Bons de livraison'); |
|
|
|
$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']); |
|
|
|
|
|
|
|
?> |
|
|
|
|
|
|
@@ -61,8 +61,14 @@ $this->addBreadcrumb($this->getTitle()); |
|
|
|
'header' => 'Point de vente', |
|
|
|
'format' => 'raw', |
|
|
|
'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 '' ; |
|
|
|
|
|
|
|
} |
|
|
|
], |
|
|
|
[ |