mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-10-03 20:40:43 -04:00
Refactor appointment model and views to use a single date field; update tooltip and calendar display for improved functionality
This commit is contained in:
1 parent
88a40b356c
commit
86533981bc
8 files changed
+66
-76
No files matched your search
@@ -41,8 +41,7 @@ class CustomerAppointmentsController < ApplicationController
|
||||
def new
|
||||
@appointment = CustomerAppointment.new
|
||||
@appointment.project = @project
|
||||
@appointment.start_date = (params[:start_date].to_date + 9.hours) if params[:start_date].present?
|
||||
@appointment.end_date = @appointment.start_date + 1.hour if @appointment.start_date.present?
|
||||
@appointment.date = (params[:start_date].to_date + 9.hours) if params[:start_date].present?
|
||||
end
|
||||
|
||||
def create
|
||||
@@ -89,8 +88,7 @@ class CustomerAppointmentsController < ApplicationController
|
||||
:description,
|
||||
:status,
|
||||
:user_id,
|
||||
:start_date,
|
||||
:end_date,
|
||||
:date,
|
||||
:estimated_hours,
|
||||
:estimate_id,
|
||||
:duration
|
||||
|
||||
Reference in new issue
Block a user