fixed bug in cash processing