mirror of
https://github.com/rickbarrette/redmine_qbo_calendar.git
synced 2026-11-17 21:50:37 -05:00
Billing has been folded into redmine_qbo 2026.11.0; the settings link now opens redmine_qbo's settings. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01BiwYMjhoQvL7XsKKfRz4pM
8 lines
543 B
ERB
8 lines
543 B
ERB
<%# Add appointment link on an estimate's page (redmine_qbo) %>
|
|
<% if User.current.allowed_to?(:add_customer_appointments, nil, global: true) %>
|
|
<% vehicle = customer.vehicles.detect { |v| v.vin.to_s.casecmp?(vin.to_s.strip) } if vin.present? && customer.respond_to?(:vehicles) %>
|
|
<%= link_to sprite_icon('time-add', l(:label_add_appointment)),
|
|
new_customer_appointment_path(customer_id: customer.id, estimate_id: estimate_id, vehicle_id: vehicle&.id),
|
|
class: 'icon icon-time-add', target: :_blank %>
|
|
<% end %>
|