City Ledger following Customer Credit Account concept

These may give an idea.