Jump to content
thirty bees forum

Where can I change the customer number & the invoice number & have it increment from that?


alwayspaws

Recommended Posts

@alwayspaws

override / controllers / admin / AdminOrdersController.php but at the moment i dont know what to do, how to show the invoice number on pdf ..... without zeros, prefix and the minimum number of invoice is the .....

``` <?php

class AdminOrdersController extends AdminOrdersControllerCore
{
    public function __construct()
    {
        parent::__construct();

        $this->fields_list['invoice_number'] = array(
            'title' => $this->l('invoice'),
            'align' => 'text-center',
            'class' => 'fixed-width-xs'
        );
    }
}```
Link to comment
Share on other sites

@zimmer-media said in Where can I change the customer number & the invoice number & have it increment from that?:

@alwayspaws do you mean only in this list with the inoice number or in all views, order view, pdf .... ?

I just saw this one. I want the invoice number in all views, but especially I want the customer to see the right number. Not "1" which would mean no previous customers. :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...