|
|
@@ -117,6 +117,20 @@ $this->addButton(['label' => 'Nouveau bon de livraison <span class="glyphicon gl |
|
|
|
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', |
|
|
|
'header' => 'Envoyé', |