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
This commit is contained in:
Claude committed 2026-10-30 23:49:17 -04:00
1 parent fc503fca68
commit 13e8c07c0d
10 files changed
+21 -27

No files matched your search

@@ -24,7 +24,7 @@ class CustomerAppointmentsController < ApplicationController
}
end
# The estimate's labor hours (redmine_qbo_billing's item codes), so the form can make sure the
# The estimate's labor hours (redmine_qbo's item codes), so the form can make sure the
# appointment's hours aren't less
def estimate_hours
estimate = Estimate.find_by(id: params[:estimate_id])
@@ -109,7 +109,7 @@ class CustomerAppointmentsController < ApplicationController
private
# Links from an estimate (redmine_qbo_billing) pass the estimate and vehicle; each is used only when it
# Links from an estimate (redmine_qbo) pass the estimate and vehicle; each is used only when it
# belongs to the appointment's customer
def prefill_estimate_and_vehicle
customer = @appointment.customer
+1 -1
View File
@@ -81,7 +81,7 @@ class CustomerAppointment < ActiveRecord::Base
end
# The estimate's labor hours rounded up to whole hours (appointment hours are whole numbers): the
# quantities of its lines whose item matches redmine_qbo_billing's item codes (e.g. Labor). 0 if the
# quantities of its lines whose item matches redmine_qbo's item codes (e.g. Labor). 0 if the
# estimate can't be read from QuickBooks.
def self.estimate_labor_hours(estimate)
return 0 if estimate.nil?
@@ -1,4 +1,4 @@
<%# Add appointment link on an estimate's page (redmine_qbo_billing) %>
<%# 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)),
@@ -14,7 +14,7 @@
<% end %>
<% end %>
<%# Issues from the estimate are made by redmine_qbo_billing, with this appointment's dates, technician and vehicle %>
<%# Issues from the estimate are made by redmine_qbo, with this appointment's dates, technician and vehicle %>
<% if @appointment.estimate && User.current.allowed_to?(:create_estimate_issues, nil, global: true) %>
<%= link_to issues_preview_qbo_estimate_path(@appointment.estimate_id, appointment_id: @appointment.id) do %>
<i class="fa-solid fa-list-check"></i> <%= l(:button_create_issues_from_estimate) %>
@@ -1,5 +1,5 @@
<%# The issues-from-estimate settings moved to redmine_qbo_billing %>
<%# The issues-from-estimate settings moved to redmine_qbo %>
<p>
<%= l(:text_estimate_issue_settings_moved) %>
<%= link_to l(:label_redmine_qbo_billing_settings), plugin_settings_path(id: 'redmine_qbo_billing') %>
<%= link_to l(:label_redmine_qbo_settings), plugin_settings_path(id: 'redmine_qbo') %>
</p>