Jump to content

Bill Number


Recommended Posts

Hello to all the Prestashop community, this might be a recurrent topic actually, but those post i found about this issue arent really clear, so i need help to fix this problem.

 

Like you see the image below, thats the problem, i delete the test orders in the platform but the bills are in #15 i need this number become #1 but well i cant manage to do it.

 

Any suggestion?

 

Thx to all community.

post-944743-0-72589800-1426163102_thumb.jpg

Link to comment
Share on other sites

Yes they will. I thought you were just reinitializing your database, so the cleaner would have been a good idea.

 

If you already have real orders and real invoices in your database, you should delete from the table ps_order_invoice only the lines that correspond to test invoices, but after that the next bill will be #last_real+1 and not #1.

 

If no invoice has been generated for the real orders yet, then you can still truncate the ps_order_invoice table, and next (first) bill will be #1

Link to comment
Share on other sites

You're welcome.

 

The cleaner proposes 2 different actions: clean the catalog, and clean the orders + customers. The data that will be removed (without possible rollback) for each of these is detailled in the module page.

 

In your case, cleaning orders + customers will affect "customers, carts, orders, connections, guests, messages, stats...", and also invoices which are not mentionned. If it's not an issue for you...

 

Otherwise, cleaning database "manually" is always possible, but if you miss some data you may face strange things afterward (e.g. from my own experience, a cart rule spontaneously applies to an order...)

Link to comment
Share on other sites

×
×
  • Create New...