mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-10-03 20:40:43 -04:00
only show furture appointments
This commit is contained in:
1 parent
5960127b26
commit
f3583528ea
1 file changed
+2
-2
@@ -28,9 +28,9 @@ class CustomerAppointmentsController < ApplicationController
|
||||
def index
|
||||
if params[:project_id]
|
||||
@project = Project.find(params[:project_id])
|
||||
@appointments = CustomerAppointment.where(project: @project).order(:start_date)
|
||||
@appointments = CustomerAppointment.where(project: @project).where('date >= ?', Time.zone.now.beginning_of_day).order(:date)
|
||||
else
|
||||
@appointments = CustomerAppointment.order(:start_date)
|
||||
@appointments = CustomerAppointment.where('date >= ?', Time.zone.now.beginning_of_day).order(:date)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user