Verified Commit 46860ad3 authored by Kaspar Vollenweider's avatar Kaspar Vollenweider 👻
Browse files

fix hours meeting date scope on volunteers with_billable_hours scopes

parent bb2969d2
Pipeline #22974 passed with stage
in 36 minutes and 46 seconds
......@@ -209,7 +209,7 @@ class Volunteer < ApplicationRecord
scope :with_billable_hours_meeting_date_semester, lambda { |date|
return all if date.blank?
where('hours.meeting_date BETWEEN :start_date AND :end_date',
start_date: date,
start_date: date.advance(days: 1),
end_date: date.advance(months: BillingExpense::SEMESTER_LENGTH))
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment