|
|
@@ -118,6 +118,21 @@ $this->addButton(['label' => 'Nouveau bon de livraison <span class="glyphicon gl |
|
|
|
return $deliveryNoteModule->getAmountWithTax($deliveryNote, Order::INVOICE_AMOUNT_TOTAL, true); |
|
|
|
} |
|
|
|
], |
|
|
|
[ |
|
|
|
'attribute' => 'is_sent', |
|
|
|
'header' => 'Envoyé', |
|
|
|
'format' => 'raw', |
|
|
|
'headerOptions' => ['class' => 'column-hide-on-mobile'], |
|
|
|
'filterOptions' => ['class' => 'column-hide-on-mobile'], |
|
|
|
'contentOptions' => ['class' => 'column-hide-on-mobile'], |
|
|
|
'value' => function ($model) { |
|
|
|
if ($model->is_sent) { |
|
|
|
return '<span class="label label-success">Oui</span>'; |
|
|
|
} else { |
|
|
|
return '<span class="label label-default">Non</span>'; |
|
|
|
} |
|
|
|
} |
|
|
|
], |
|
|
|
[ |
|
|
|
'class' => 'yii\grid\ActionColumn', |
|
|
|
'template' => '{validate} {update} {delete} {send} {download}', |