Class: ScheduleWorkers::ReservationReport
- Inherits:
-
ApplicationWorker
- Object
- ApplicationWorker
- ScheduleWorkers::ReservationReport
- Defined in:
- app/workers/schedule_workers/reservation_report.rb
Overview
to send monthly invoice to restaurant
Instance Method Summary collapse
Methods inherited from ApplicationWorker
Instance Method Details
#perform ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'app/workers/schedule_workers/reservation_report.rb', line 6 def perform date_range = calculate_report_date_range start_date = date_range[:start_date] end_date = date_range[:end_date] send_restaurant_reports(start_date, end_date) send_hh_staff_reports(start_date, end_date) end |