mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 01:14:23 -05:00
Fixed Issue Save Hook
This commit is contained in:
@@ -18,7 +18,7 @@ class IssuesSaveHookListener < Redmine::Hook::ViewListener
|
|||||||
if Qbo.first && issue.qbo_customer && issue.qbo_item
|
if Qbo.first && issue.qbo_customer && issue.qbo_item
|
||||||
|
|
||||||
# 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.is_new? && !issue.qbo_estimate
|
if issue.tracker.name = "Quote" && issue.status.name = "New" && !issue.qbo_estimate_id
|
||||||
|
|
||||||
# Get QBO Services
|
# Get QBO Services
|
||||||
item_service = QboItem.get_base.service
|
item_service = QboItem.get_base.service
|
||||||
|
|||||||
Reference in New Issue
Block a user