Removed Item

This commit is contained in:
2016-08-10 00:26:59 -04:00
committed by GitHub
parent 1b533d6dd8
commit fae815fd7f

View File

@@ -25,9 +25,6 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener
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}"
end end
# Check to see if there is a quickbooks item attached to the issue
item = issue.qbo_item ? issue.qbo_item.name : nil
# Estimate Number # Estimate Number
if issue.qbo_estimate if issue.qbo_estimate
estimate = issue.qbo_estimate.doc_number estimate = issue.qbo_estimate.doc_number
@@ -40,7 +37,6 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener
invoice_link = link_to invoice, "#{Redmine::Utils::relative_url_root}/qbo/invoice/#{issue.qbo_invoice.id}", :target => "_blank" invoice_link = link_to invoice, "#{Redmine::Utils::relative_url_root}/qbo/invoice/#{issue.qbo_invoice.id}", :target => "_blank"
end end
begin begin
v = Vehicle.find(issue.vehicles_id) v = Vehicle.find(issue.vehicles_id)
vehicle = link_to v.to_s, "#{Redmine::Utils::relative_url_root}/vehicles/#{v.id}" vehicle = link_to v.to_s, "#{Redmine::Utils::relative_url_root}/vehicles/#{v.id}"
@@ -59,11 +55,6 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener
<div class=\"label\"><span>Customer</span>:</div> <div class=\"label\"><span>Customer</span>:</div>
<div class=\"value\">#{customer}</div> <div class=\"value\">#{customer}</div>
</div> </div>
<div class=\"qbo_item_id attribute\">
<div class=\"label\"><span>Item</span>:</div>
<div class=\"value\">#{item}</div>
</div>
<div class=\"qbo_estimate_id attribute\"> <div class=\"qbo_estimate_id attribute\">
<div class=\"label\"><span>Estimate</span>:</div> <div class=\"label\"><span>Estimate</span>:</div>