mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 17:04:23 -05:00
Update issues_form_hook_listener.rb
This commit is contained in:
@@ -22,7 +22,7 @@ class IssuesFormHookListener < Redmine::Hook::ViewListener
|
|||||||
selected_estimate = context[:issue].qbo_estimate ? context[:issue].qbo_estimate.id : nil
|
selected_estimate = context[:issue].qbo_estimate ? context[:issue].qbo_estimate.id : nil
|
||||||
|
|
||||||
@customer = QboCustomer.find_by_id(selected_customer).name if selected_customer
|
@customer = QboCustomer.find_by_id(selected_customer).name if selected_customer
|
||||||
@vehicle = context[:issue].vehicle_id
|
@vehicle = context[:issue].vehicles_id
|
||||||
|
|
||||||
# Generate the drop down list of quickbooks customers
|
# Generate the drop down list of quickbooks customers
|
||||||
select_customer = @f.select :qbo_customer_id, QboCustomer.all.pluck(:name, :id).sort, :selected => selected_customer, include_blank: true
|
select_customer = @f.select :qbo_customer_id, QboCustomer.all.pluck(:name, :id).sort, :selected => selected_customer, include_blank: true
|
||||||
|
|||||||
Reference in New Issue
Block a user