Update issues_show_hook_listener.rb

This commit is contained in:
2016-09-13 23:26:37 -04:00
committed by GitHub
parent e542f098a8
commit a2cac188bb

View File

@@ -20,6 +20,8 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener
def view_issues_show_details_bottom(context={}) def view_issues_show_details_bottom(context={})
issue = context[:issue] issue = context[:issue]
issue_fields_rows do |rows|
# Check to see if there is a quickbooks user attached to the issue # Check to see if there is a quickbooks user attached to the issue
if issue.customer if issue.customer
customer = link_to issue.customer.name, "#{Redmine::Utils::relative_url_root}/customers/#{issue.customer.id}" customer = link_to issue.customer.name, "#{Redmine::Utils::relative_url_root}/customers/#{issue.customer.id}"
@@ -27,6 +29,8 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener
customer = rows.left l(:field_customer), customer, :class => 'customer' customer = rows.left l(:field_customer), customer, :class => 'customer'
end end
end
# Estimate Number # Estimate Number
if issue.qbo_estimate if issue.qbo_estimate
estimate = issue.qbo_estimate.doc_number estimate = issue.qbo_estimate.doc_number