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:
2026-01-28 07:45:20 -05:00
parent 43a5317b4e
commit 1f03908040
5 changed files with 0 additions and 14 deletions

View File

@@ -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)

View File

@@ -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)

View File

@@ -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"

View File

@@ -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'

View File

@@ -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