Files
redmine_qbo_calendar/app/views/customer_appointments/_estimate_actions.html.erb
T
Claude 13e8c07c0d Depend on redmine_qbo for estimate issues and labor hours
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
2026-10-30 23:49:17 -04:00

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 %>