Browse Source

[Administration] Bons de livraison > Liste : ajout colonne "Facture"

feature/rotating_product
Guillaume Bourgeois 6 months ago
parent
commit
a0e02da92d
1 changed files with 14 additions and 0 deletions
  1. +14
    -0
      backend/views/delivery-note/index.php

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

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

Loading…
Cancel
Save