Browse Source

[Opendistrib] Bons de livraison > liste : ajout colonne "Envoyé"

feature/souke
Guillaume Bourgeois 10 months ago
parent
commit
019b89c5b5
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      backend/views/delivery-note/index.php

+ 15
- 0
backend/views/delivery-note/index.php View File

@@ -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}',

Loading…
Cancel
Save