Browse Source

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

feature/rotating_product
Guillaume Bourgeois 5 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

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

Loading…
Cancel
Save