mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 09:24:23 -05:00
Removed Item
This commit is contained in:
@@ -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}"
|
||||||
@@ -60,11 +56,6 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener
|
|||||||
<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>
|
||||||
<div class=\"value\">#{estimate_link}</div>
|
<div class=\"value\">#{estimate_link}</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user