There are many good commercial packages available (some not very expensive)
that will do this for you. Why re-invent the wheel?
Besides - it's actually quite difficult to set these up, especially when you
start talking about aged debtors, aged creditors, unallocated cash, credit
notes etc etc etc.