Jump to content

[SOLVED] How to add the invoice number to the orders grid ?


Recommended Posts

Try to start with adding another array item to $this->fields_list field (between 'osname' and 'date_add') in /controllers/admin/AdminOrdersController.php.

 

It could be something like this:

        'invoice_number' => array(
            'title' => $this->l('Rechnung-Nr: '),
            'width' => 50
        ),

(not tested)

  • Like 1
Link to comment
Share on other sites

  • 2 weeks later...

I'd like to ask a slightly different question. I know how to add or modify a column in the orders grid by editing /controllers/admin/AdminOrdersController.php.

 

What I need (for my accountant!) is to display multiple rows for the same order in the orders grid:

- one row with a number of fields (date, customer, order number etc) + the net total for products

- one row with a number of fields (date, customer, order number etc) + the shipping total

- one row with a number of fields (date, customer, order number etc) + the tax total

- one row with a number of fields (date, customer, order number etc) + the grand total

 

Any idea on how to display multiple rows for the same order? Some code to change in AdminOrdersController.php I guess?

 

I would need to display all the orders and 4 rows per order

So if there are 100 orders, display 400 rows total

 

Then I am going to export all 400 rows to a csv file.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...