mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-12-29 22:21:00 -05:00
Estimate PDF is now dowloaded and served
TODO: The routes are somehow messed up and need to be fixed. example: example.com/redmine/redmine/qbo/estimate/1 in lieu: example.com/redmine/qbo/estimate/1
This commit is contained in:
@@ -35,8 +35,6 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener
|
||||
QboEstimate.update(issue.qbo_estimate.id)
|
||||
@estimate = issue.qbo_estimate.doc_number
|
||||
end
|
||||
base = QboEstimate.get_base.service
|
||||
#base.initialize
|
||||
|
||||
return "<div class=\"attributes\">
|
||||
<div class=\"qbo_customer_id attribute\">
|
||||
@@ -51,7 +49,7 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener
|
||||
|
||||
<div class=\"qbo_estimate_id attribute\">
|
||||
<div class=\"label\"><span>Estimate</span>:</div>
|
||||
<div class=\"value\"><a href=\"</div>
|
||||
<div class=\"value\">#{link_to @estimate, qbo_estimate_pdf_path(issue.qbo_estimate.id)}</div>
|
||||
</div>
|
||||
</div>"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user