Udhaar khata that adds up
When a khata customer buys something, the screen shows what he owed before, what this bill comes to, and the total. Take whatever he hands over and the balance sorts itself out. Print him a statement whenever he asks for one.