PS 1.7.8.7: - to add new column Invoice number to BO Orders list:
in file /src/Core/Grid/Definition/Factory/OrderGridDefinitionFactory.php
- to add new column: add this around line 194
->add((new DataColumn('invoice_number'))
->setName($this->trans('Invoice', [], 'Admin.Global'))
->setOptions([
'field' => 'invoice_number',
])
)
- to add filter field: add this around line 321
->add((new IdentifierColumn('invoice_number' ))
->setName($this->trans('Invoice', [], 'Admin.Global'))
->setOptions([
'identifier_field' => 'invoice_number',
'preview' => $previewColumn,
'clickable' => false,
])
)
To do / not working:
- how to sort out in Invoices in Ascending / Descending order?
- How to search/ filter for a specific Invoice number?