mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-08 08:54:23 -05:00
don't bill time if not assigned to anyone EE
This commit is contained in:
@@ -41,7 +41,9 @@ module IssuePatch
|
||||
|
||||
# Create billable time entries
|
||||
def bill_time
|
||||
|
||||
|
||||
return if assigned_to.nil?
|
||||
|
||||
# Get unbilled time entries
|
||||
spent_time = time_entries.where(qbo_billed: [false, nil])
|
||||
spent_hours ||= spent_time.sum(:hours) || 0
|
||||
|
||||
Reference in New Issue
Block a user