Pārlūkot izejas kodu

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

feature/souke
Guillaume Bourgeois pirms 9 mēnešiem
vecāks
revīzija
019b89c5b5
1 mainītis faili ar 15 papildinājumiem un 0 dzēšanām
  1. +15
    -0
      backend/views/delivery-note/index.php

+ 15
- 0
backend/views/delivery-note/index.php Parādīt failu

return $deliveryNoteModule->getAmountWithTax($deliveryNote, Order::INVOICE_AMOUNT_TOTAL, true); 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', 'class' => 'yii\grid\ActionColumn',
'template' => '{validate} {update} {delete} {send} {download}', 'template' => '{validate} {update} {delete} {send} {download}',

Notiek ielāde…
Atcelt
Saglabāt