fix tenant checkin bug in controller.
update generate bills method._
refactor generate bill method.