Invoice And Order Number

Hello,



When somebody orders in the webshop, the order gets directly an order number.

Is it possible to autogenerate an invoice number when the order is paid for this invoice?

This because when an order is don’t get paid it don’t get an invoice number.

This makes it easier for the administration.



I hope somebody can help me.



Petra

[quote name='ellermep' timestamp='1430461172' post='213124']

Hello,



When somebody orders in the webshop, the order gets directly an order number.

Is it possible to autogenerate an invoice number when the order is paid for this invoice?

This because when an order is don't get paid it don't get an invoice number.

This makes it easier for the administration.



I hope somebody can help me.



Petra

[/quote]



Dear Petra,



If you set status order as “Invoice”, will it resolve your issue?



Instruction:


  1. Go to this page: http://demo.cart-power.com/graceful_edition/admin.php?dispatch=statuses.manage&type=O
  2. Click the “Processed” status.
  3. Find “Invoice/Credit memo” field.
  4. Choose “Invoice” value.



    Now, as soon as order gets status “Processed”, Invoice Number will be generated for order.



    Please, read also:

    CS-Cart Documentation — CS-Cart 4.15.x documentation

    CS-Cart Documentation — CS-Cart 4.15.x documentation



    I hope it makes sense.

Good info, I never knew this.One question though, how do we set the invoice number that shows in email, it starts at number 1.



John

[quote name='johnbol1' timestamp='1430477927' post='213139']

Good info, I never knew this.One question though, how do we set the invoice number that shows in email, it starts at number 1.

[/quote]



John,



Find cscart_order_docs table in database (within phpMyAdmin for example) and change last value of doc_id column.



I hope it makes sense.

Done, thanks for info

John,



Thanks for your help, this is perfect!



Kind regards,



Petra

Goodmorning. How can I get the generated invoicenumber on my invoice? Is there a code for this?

/admin.php?dispatch=statuses.manage&type=O

Open for example complete

Invoice/Credit memo change to invoice. Once you change order status to complete you will get invoice nr. For example order nr 100, invoice 1.

Please note once you do this you cannot go back to -1, only via database..

I found that, but I want (have) to have the invoicenumber printed on the invoice itself, it now only prints the ordernumber..