mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Update issues_save_hook_listener.rb
This commit is contained in:
@@ -15,7 +15,7 @@ class IssuesSaveHookListener < Redmine::Hook::ViewListener
|
|||||||
issue = context[:issue]
|
issue = context[:issue]
|
||||||
|
|
||||||
# Check to see if we have registered with QBO
|
# Check to see if we have registered with QBO
|
||||||
if Qbo.first && issue.customer && issue.qbo_item
|
if Qbo.first && issue.customer && issue. qbo_item_id
|
||||||
|
|
||||||
# if this is a quote, lets create a new estimate based off estimated hours
|
# if this is a quote, lets create a new estimate based off estimated hours
|
||||||
if issue.tracker.name = "Quote" && issue.status.name = "New" && issue.qbo_estimate
|
if issue.tracker.name = "Quote" && issue.status.name = "New" && issue.qbo_estimate
|
||||||
|
|||||||
Reference in New Issue
Block a user