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