mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-10-04 01:00:44 -04:00
Added nil check for qbo_customer_id when closing
This commit is contained in:
1 parent
bc2be81f7e
commit
168c53b71b
1 file changed
+1
-1
@@ -67,7 +67,7 @@ class QboHookListener < Redmine::Hook::ViewListener
|
||||
|
||||
# If the issue is closed, then create a new billable time activty for the customer
|
||||
# TODO Add configuration settings for employee_id, hourly_rate, item_id
|
||||
if issue.status.is_closed? then
|
||||
if issue.status.is_closed? and not issue.qbo_customer_id.nil? then
|
||||
time_entry.description = issue.subject
|
||||
time_entry.employee_id = 59
|
||||
time_entry.customer_id = issue.qbo_customer_id
|
||||
|
||||
Reference in new issue
Block a user