Hey all,
I wanted to post on how to set a module or some equivalent to do automatic billing, but I think that that would have become a longer than necessary thread if my database is not designed correctly in the first place. I thought I would solicit some feedback on whether my database can even be designed to do that. So here goes:
I have a very simple database based on four tables:
1) tblclients: Has very basic information such as names and such but the relevant data to billing would be the monthly fee field called "fee" that is set for each client (can range from 10 to 300 dollars.)
2) tblmonth: Gives each billing month a distinct entity/ id and has three fields - monthid (pk/ autonumber), month (the name/ title of the month, e.g. August 2009) and monthstart (an actual date field that sets the start of the month)
3) tblpayment: The table that loads actual payments made by clients and has, aside from actual money paid and date they made the payment, a tblclients.clientid linked field called "payclient" (who made the payment) and tblmonth.monthid linked field called "paymonth" (what billing month/ invoice they are making the payment towards)
4) tblfeetype: This one would probably be irrelevant as it just feeds a lookup field in tblclients that tells you what kind of fee they pay (e.g. utility reimbursement, section 8 balance, etc.)
I got the database set up well to input/ edit/ display client info and payments, but the final component would be a date triggered automatic billing module that would maybe append to another table or update query or something that would, at the start of the month, "bill" the clients (e.g. client X has no outstanding balnace on 8/31, but when the module triggers the billing month on 9/1, he would "owe" whatever his fee amount is) by perhaps adding a new record that has like... invoiceid (pk) monthid, clientid, amount owed, etc.... From there, I can set a query based on payments against a billng month vs. what he or she owes on that billing month and calculate their outstanding balance and what they have left to pay on each billing month?
Is the database even set up to do something like what I just described?
I wanted to post on how to set a module or some equivalent to do automatic billing, but I think that that would have become a longer than necessary thread if my database is not designed correctly in the first place. I thought I would solicit some feedback on whether my database can even be designed to do that. So here goes:
I have a very simple database based on four tables:
1) tblclients: Has very basic information such as names and such but the relevant data to billing would be the monthly fee field called "fee" that is set for each client (can range from 10 to 300 dollars.)
2) tblmonth: Gives each billing month a distinct entity/ id and has three fields - monthid (pk/ autonumber), month (the name/ title of the month, e.g. August 2009) and monthstart (an actual date field that sets the start of the month)
3) tblpayment: The table that loads actual payments made by clients and has, aside from actual money paid and date they made the payment, a tblclients.clientid linked field called "payclient" (who made the payment) and tblmonth.monthid linked field called "paymonth" (what billing month/ invoice they are making the payment towards)
4) tblfeetype: This one would probably be irrelevant as it just feeds a lookup field in tblclients that tells you what kind of fee they pay (e.g. utility reimbursement, section 8 balance, etc.)
I got the database set up well to input/ edit/ display client info and payments, but the final component would be a date triggered automatic billing module that would maybe append to another table or update query or something that would, at the start of the month, "bill" the clients (e.g. client X has no outstanding balnace on 8/31, but when the module triggers the billing month on 9/1, he would "owe" whatever his fee amount is) by perhaps adding a new record that has like... invoiceid (pk) monthid, clientid, amount owed, etc.... From there, I can set a query based on payments against a billng month vs. what he or she owes on that billing month and calculate their outstanding balance and what they have left to pay on each billing month?
Is the database even set up to do something like what I just described?