Hello Everybody!
I am working on a web-based application, which among other things, deals with monthly billing.
Every customer will have fixed monthly charges, and also (possible) particular charges for that month.
Of course, I will also need to keep a balance of what the customer ows at any given time.
I guess my question is:
1 - How should I save this information into the database? Should I have a record for every charge/credit? How should I save remaining balances, so it is showed in the next bill?
2 - Should I keep the balance recorded in a field? or should I calculate it on real-time every time?
I hope you guys undertood what I am asking.
I certainly appreciate your time.
Sincerely,
Juan