add sales receipt function