Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Invoice Numbers


Check.NL

Recommended Posts

Posted

Hi there,

 

Just a quick question for which I cant seem to find the answer.

When you are going to use OSCommerce for a large store some Legal things have to be taken care of.

One of the things is Invoice Numbers.

Can anyone tell me if there is a addon available for that adds Invoice Numbers?

I would also like to know whether it is possible to store invoices in the system?

 

Can someone let me know if these things are possible?

 

Thanks in advance and kind regards,

 

Coen Heck

Posted

I use the order number as the invoice number. It auto-increments, so each one is unique. As long as you don't delete the orders, the invoices are stored in the system. Keep a good backup of your database if you're depending on this.

Chris Dunning

osCommerce, Contributions Moderator Team

 

Please do not send me PM! I do not read or answer these often. Use the email button instead!

 

I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly.

Posted

This is the Contribution you are looking for. NIF

 

It says it is in Spanish, but the readme is in English and the modifications are so clear, that you can easy translate it in your native language,

  • 3 months later...
Posted
I use the order number as the invoice number. It auto-increments, so each one is unique. As long as you don't delete the orders, the invoices are stored in the system. Keep a good backup of your database if you're depending on this.
I use the order number as the invoice number.  It auto-increments, so each one is unique.  As long as you don't delete the orders, the invoices are stored in the system.  Keep a good backup of your database if you're depending on this.

Correct, but as you say "as long as you don't delete the orders" everything is OK. But if I need to delete an order for any other reason, I will have a gap in the invoice numbers. And this is not possible (at least as far as the Italian laws say). The number of the invoice must be progressive, that is why I think the invoice no does not have to be linked to the order no.

 

In this case, you have to add a row in the db. What I am looking for, is for example the possibility to activate the invoice whenever I want, so that I can check the order first and then, if it is OK, print or get the invoice shown by clicking a button which create it in that precise moment.

 

How to do that? I don't know.

 

Any help is appreciated

Posted

You could just add a few lines into the invoice.php file that would create the invoice number when you click on the "invoice" button. That should be fairly simple. Look at the code for creating order numbers for a reference on how to do it. You can find that code in checkout_process.php.

Chris Dunning

osCommerce, Contributions Moderator Team

 

Please do not send me PM! I do not read or answer these often. Use the email button instead!

 

I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly.

Posted

Thank you.

 

I am trying to get it working, but probably I am doing something wrong in the db or in the code.

 

Isn't there any similar contribution you know about this?

Posted

Nope, I haven't seen one.

Chris Dunning

osCommerce, Contributions Moderator Team

 

Please do not send me PM! I do not read or answer these often. Use the email button instead!

 

I do NOT support contributions other than my own. Emails asking for support on other people's contributions will be ignored. Ask in the forum or contact the contribution author directly.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...