PDA

View Full Version : Invoicescript similar to checkoutscript



Fonix
09-05-06, 09:40 PM
Hi,

Is it possible to add an option to call a script everytime an invoice is generated, like the checkoutscript?

This will enable us to :

- generate and send PDF invoices if customer wants invoices by email. We are using form based invoices and PDF supports this sort invoices better

- print an invoice and send by air mail if that's what the client wants

If you can add an extra int field in to the invoice table, as requested earlier, this invoicescript option will enable us to put our own invoice ID into the invoice table.

Matt
09-05-06, 10:06 PM
Hi,

If you have the code to generate PDF invoices then if you're willing to share it I can add it into the script as a feature so there would be no need for the script to be run when an invoice is generated.

Matt

MACscr
09-05-06, 10:31 PM
Hi,

If you have the code to generate PDF invoices then if you're willing to share it I can add it into the script as a feature so there would be no need for the script to be run when an invoice is generated.

Matt

Wouldnt he still need a way to do his own custom invoice numbers, etc?

Fonix
09-07-06, 08:09 PM
Hi,

I'm currently running a Windows based billing system which have this feature built in.

You may however want to take a look at this site : http://www.fpdf.org/ . Look under Scripts where you will find an example to generate an invoice. It's an advance one, but there you will find some other tutorials which might be interesting as well.

I have another script to generate invoices, but it's designed for Norwegian form-based invoices. I have not testet it my self and I do not think it will be suitable for general use. In case we get the "invoicescript" feature, I will base my script on this one.