Fixed Querying issues by customer name

This commit is contained in:
2026-02-16 08:13:57 -05:00
parent 3111f391f3
commit 1ade938eb3
2 changed files with 28 additions and 2 deletions

View File

@@ -25,7 +25,7 @@ module RedmineQbo
# Same as typing in the class
base.class_eval do
belongs_to :customer, primary_key: :id
belongs_to :customer, class_name: 'Customer', foreign_key: :customer_id, optional: true
belongs_to :customer_token, primary_key: :id
belongs_to :estimate, primary_key: :id
has_and_belongs_to_many :invoices