Removed Vehicles

This commit is contained in:
2026-01-22 20:54:06 -05:00
parent 7f821d241c
commit e76f977ca8
7 changed files with 6 additions and 50 deletions

View File

@@ -28,7 +28,6 @@ module Patches
belongs_to :customer_token, primary_key: :id
belongs_to :estimate, primary_key: :id
has_and_belongs_to_many :invoices
belongs_to :vehicle, primary_key: :id
end
end

View File

@@ -58,14 +58,6 @@ module Patches
#left << [l(:field_category), issue.category] unless issue.disabled_core_fields.include?('category_id')
#left << [l(:field_fixed_version), issue.fixed_version] unless issue.disabled_core_fields.include?('fixed_version_id')
v = Vehicle.find_by_id(issue.vehicles_id)
vehicle = v ? v.to_s : nil
vin = v ? v.vin : nil
notes = v ? v.notes : nil
left << [l(:field_vehicles), vehicle]
left << [l(:field_vin), vin ? vin.gsub(/(.{9})/, '\1 ') : nil]
#left << [l(:field_notes), notes]
right = []
right << [l(:field_start_date), format_date(issue.start_date)] unless issue.disabled_core_fields.include?('start_date')
right << [l(:field_due_date), format_date(issue.due_date)] unless issue.disabled_core_fields.include?('due_date')

View File

@@ -24,7 +24,6 @@ module Patches
# Same as typing in the class
base.class_eval do
belongs_to :customer, primary_key: :id
belongs_to :vehicle, primary_key: :id
end
end