mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2025-11-09 09:24:23 -05:00
Update issues_save_hook_listener.rb
to ues Qbo.get_base
This commit is contained in:
@@ -78,8 +78,8 @@ class IssuesSaveHookListener < Redmine::Hook::ViewListener
|
|||||||
if spent_hours > 0 then
|
if spent_hours > 0 then
|
||||||
|
|
||||||
# Prepare to create a new Time Activity
|
# Prepare to create a new Time Activity
|
||||||
time_service = Quickbooks::Base.new(Qbo.get_account, :time_activity).service
|
time_service = Qbo.get_base(:time_activity).service
|
||||||
item_service = Quickbooks::Base.new(Qbo.get_account, :item).service
|
item_service = Qbo.get_base(:item).service
|
||||||
time_entry = Quickbooks::Model::TimeActivity.new
|
time_entry = Quickbooks::Model::TimeActivity.new
|
||||||
|
|
||||||
# Convert float spent time to hours and minutes
|
# Convert float spent time to hours and minutes
|
||||||
|
|||||||
Reference in New Issue
Block a user