mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-04-02 08:21:57 -04:00
formatting
This commit is contained in:
@@ -59,16 +59,9 @@ class BillIssueTimeJob < ActiveJob::Base
|
|||||||
def create_time_activities(issue, totals, access_token, qbo)
|
def create_time_activities(issue, totals, access_token, qbo)
|
||||||
log "Creating TimeActivity records in QBO for issue ##{issue.id}"
|
log "Creating TimeActivity records in QBO for issue ##{issue.id}"
|
||||||
|
|
||||||
time_service = Quickbooks::Service::TimeActivity.new(
|
time_service = Quickbooks::Service::TimeActivity.new( company_id: qbo.realm_id, access_token: access_token)
|
||||||
company_id: qbo.realm_id,
|
item_service = Quickbooks::Service::Item.new( company_id: qbo.realm_id, access_token: access_token )
|
||||||
access_token: access_token
|
|
||||||
)
|
|
||||||
|
|
||||||
item_service = Quickbooks::Service::Item.new(
|
|
||||||
company_id: qbo.realm_id,
|
|
||||||
access_token: access_token
|
|
||||||
|
|
||||||
)
|
|
||||||
totals.each do |activity_name, hours_float|
|
totals.each do |activity_name, hours_float|
|
||||||
next if activity_name.blank?
|
next if activity_name.blank?
|
||||||
next if hours_float.to_f <= 0
|
next if hours_float.to_f <= 0
|
||||||
|
|||||||
Reference in New Issue
Block a user