Hi guys,
I am building a billing system. The system needs to generate monthly invoices to Clients.
What I am doing now is using a For loop to check all the clients their previous invoices and decide if it is the time to generate a invoice for the client.
If there are huge number of clients in the database, I think it could be very heavy to do so.
What is the standard way of generating invoices? Is it possible to make cron jobs that records a client's next invoice date and only check a particular client when it is the time to generate an invoice.
Thanks a million