Page 1 of 1

Advice with signup script

Posted: Thu Jan 20, 2005 2:57 am
by wizzard81
Hello,

I've made a little portal and if someone signup everything is stored in my db and it creates automatic an invoice that will be send to the customer.

i have this table_invoices table_customers, table_orders

But now i want to give new customers a month trial so my problem is if they are in trial an invoice must not be made because the invoice numbering will be incorrect then.

My table orders is linked to invoices by invoice_id. So thats my big problem? Anyone can help or had this problem also?

Posted: Thu Jan 20, 2005 3:04 am
by feyd
check their user level, if it's a trial user, don't generate the invoice?

Posted: Thu Jan 20, 2005 3:14 am
by wizzard81
A good idea. Checking if they are trial, thanks feyd :)