mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-02-13 09:13:58 -05:00
Refactor employee and estimate models by removing redundant comments; update locale file to remove item references; delete unused QboItemTest file.
This commit is contained in:
@@ -23,7 +23,6 @@ class Employee < ActiveRecord::Base
|
||||
return unless employees
|
||||
|
||||
transaction do
|
||||
# Update the item table
|
||||
employees.each { |e|
|
||||
logger.info "Processing employee #{e.id}"
|
||||
employee = find_or_create_by(id: e.id)
|
||||
|
||||
@@ -56,7 +56,6 @@ class Estimate < ActiveRecord::Base
|
||||
|
||||
# update an estimate
|
||||
def self.update(id)
|
||||
# Update the item table
|
||||
qbo = Qbo.first
|
||||
estimate = qbo.perform_authenticated_request do |access_token|
|
||||
service = Quickbooks::Service::Estimate.new(:company_id => qbo.realm_id, :access_token => access_token)
|
||||
|
||||
Reference in New Issue
Block a user