|
|
|
|
|
|
|
|
return $deliveryNoteModule->getAmountWithTax($deliveryNote, Order::INVOICE_AMOUNT_TOTAL, true); |
|
|
return $deliveryNoteModule->getAmountWithTax($deliveryNote, Order::INVOICE_AMOUNT_TOTAL, true); |
|
|
} |
|
|
} |
|
|
], |
|
|
], |
|
|
|
|
|
[ |
|
|
|
|
|
'header' => 'Facture', |
|
|
|
|
|
'format' => 'raw', |
|
|
|
|
|
'headerOptions' => ['class' => 'column-hide-on-mobile'], |
|
|
|
|
|
'filterOptions' => ['class' => 'column-hide-on-mobile'], |
|
|
|
|
|
'contentOptions' => ['class' => 'column-hide-on-mobile'], |
|
|
|
|
|
'value' => function ($deliveryNote) use ($deliveryNoteModule) { |
|
|
|
|
|
$invoice = $deliveryNoteModule->getSolver()->getInvoice($deliveryNote); |
|
|
|
|
|
if($invoice) { |
|
|
|
|
|
return Html::a($invoice->reference, ['invoice/update', 'id' => $invoice->id], ['class' => 'btn btn-xs btn-default']); |
|
|
|
|
|
} |
|
|
|
|
|
return ''; |
|
|
|
|
|
} |
|
|
|
|
|
], |
|
|
[ |
|
|
[ |
|
|
'attribute' => 'is_sent', |
|
|
'attribute' => 'is_sent', |
|
|
'header' => 'Envoyé', |
|
|
'header' => 'Envoyé', |