refactored cash receipt process