diff --git a/app/models/employee.rb b/app/models/employee.rb index 32ded44..8bde654 100644 --- a/app/models/employee.rb +++ b/app/models/employee.rb @@ -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) diff --git a/app/models/estimate.rb b/app/models/estimate.rb index 20e8c38..6de04b3 100644 --- a/app/models/estimate.rb +++ b/app/models/estimate.rb @@ -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) diff --git a/config/locales/en.yml b/config/locales/en.yml index ed2075e..0201549 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -12,7 +12,6 @@ # Usage I18n.t(:label) en: field_customer: "Customer" - field_item: "Item" field_employee: "Employee" field_invoice: "Invoice" field_estimate: "Estimate" @@ -54,7 +53,6 @@ en: label_customer_count: "Customer Count" label_invoice_count: "Invoice Count" label_estimate_count: "Estimate Count" - label_item_count: "Item Count" label_employee_count: "Employee Count" label_client_id: "Intuit QBO OAuth2 Client ID" label_client_secret: "Intuit QBO OAuth2 Client Secret" diff --git a/init.rb b/init.rb index 06885ff..5be8d70 100644 --- a/init.rb +++ b/init.rb @@ -22,7 +22,6 @@ Redmine::Plugin.register :redmine_qbo do # Add safe attributes for core models Issue.safe_attributes 'customer_id' - Issue.safe_attributes 'item_id' Issue.safe_attributes 'estimate_id' Issue.safe_attributes 'invoice_id' User.safe_attributes 'employee_id' diff --git a/test/unit/qbo_item_test.rb b/test/unit/qbo_item_test.rb deleted file mode 100644 index 6d9fa6c..0000000 --- a/test/unit/qbo_item_test.rb +++ /dev/null @@ -1,9 +0,0 @@ -require File.expand_path('../../test_helper', __FILE__) - -class QboItemTest < ActiveSupport::TestCase - - # Replace this with your real tests. - def test_truth - assert true - end -end