Jump to content

Question about invoice numbering


velcro

Recommended Posts

Hello everybody,

 

I have a question about the invoice numbering in WHMCS. Our current invoice number in WHMCS that is generated automatically is a lot higher than the number of the real invoices. Therefore we always have to manually change the invoice number manually after an invoice is created.

 

Is there a way to close the gap between the number in WHMCS and the real amount of invoices so we don't have to change the invoicenumbers manually??

 

Thanks a lot in advance!

Link to comment
Share on other sites

Just because you've only got 1240 invoices, it doesn't mean the invoice number has to be the same.

 

Can't see that it matters.

 

Also we need to have Order Number = Invoice Number

and Order No. reported on pdf....

 

 

we use a different progressive numeration and template/kind of regular invoice,

so we cannot use this in Italy. A lot of whmcs users here create a second invoice for this.

 

How do you suggest to resolve this issue?

 

regarda

 

Emanuele

Vedova Computing

Link to comment
Share on other sites

I will try to clarify with an example. When we create a new invoice WHMCS gives it number 2120. But in fact it is only invoice number 1240. So every time when an invoice is created we have to change the invoice number manually.

 

Thx

 

Hi Velcro,

I think invoice number is generate automaticaly by the function in SQL (auto incremet). So, try to access database, and open table "tblinvoices". It may be come you have some number of data inf tbleinvoices at past time, then delete them and add more data but not restart auto increment number.

 

1. Open table "tblinvoices"

2. Click Structure tab

3. Scroll down, and find out what is next auto-increment value. If not 1241 (because your last invoice number is 1240), you have to re-set it.

4. To set next auto-increment value, click "Operation" tab, and fill auto_increment value with 5 or use this SQL statement:

ALTER TABLE `tblinvoices` AUTO_INCREMENT =1241;

 

Hope it is usefull.

Link to comment
Share on other sites

  • WHMCS Support Manager

Whatever change you make to the auto-increment value, I cannot stress how important it is that you set it to a number that has not already been used for an invoice in your WHMCS install.

 

For example if invoice 1000 already exists, and you change the auto-increment value to 1000 via the database then in all likelihood the wrong clients will be invoiced.

Link to comment
Share on other sites

Sorry, I make a mistake. Please check the bold text.

Hi Velcro,

I think invoice number is generate automaticaly by the function in SQL (auto incremet). So, try to access database, and open table "tblinvoices". It may be come you have some number of data in tbleinvoices at past time, then delete them and add more data but not restart auto increment number.

 

1. Open table "tblinvoices"

2. Click Structure tab

3. Scroll down, and find out what is next auto-increment value. If not 1241 (because your last invoice number is 1240), you have to re-set it.

4. To set next auto-increment value, click "Operation" tab, and fill auto_increment value with 1241 or use this SQL statement:

ALTER TABLE `tblinvoices` AUTO_INCREMENT =1241;

 

Hope it is usefull.

 

@earthlover

 

Thanks for your reply I will try that.

You are always welcome.

:-P

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated