mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-02-13 09:13:58 -05:00
Remove unused add_appointment method from CustomersController
This commit is contained in:
@@ -188,21 +188,6 @@ class CustomersController < ApplicationController
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def add_apointment
|
|
||||||
estimate = params[:estimate_id]
|
|
||||||
invoice = params[:invoice_id]
|
|
||||||
output = ""
|
|
||||||
logger.debug "Calling :add_apointment hook"
|
|
||||||
results = Redmine::Hook.call_hook :add_apointment, { customer: customer }
|
|
||||||
unless results.nil?
|
|
||||||
results.each do |r|
|
|
||||||
output.concat "%0A" if output.length > 0
|
|
||||||
output.concat r unless r.nil?
|
|
||||||
end
|
|
||||||
end
|
|
||||||
redirect_to "https://calendar.google.com/calendar/render?action=TEMPLATE&text=#{@customer.name}+-&details=#{ link_to t(:customer_details), "https://#{Setting.host_name}#{customer_path @customer.id}"}%0A#{@customer.primary_phone}%0A#{output}&dates=#{Time.now.strftime("%Y%m%d")}T090000/#{Time.now.strftime("%Y%m%d")}T170000", target: :_blank
|
|
||||||
end
|
|
||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
# redmine permission - add customers
|
# redmine permission - add customers
|
||||||
|
|||||||
Reference in New Issue
Block a user