mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-02-13 17:13:59 -05:00
Compare commits
2 Commits
4c49ec6890
...
1f03908040
| Author | SHA1 | Date | |
|---|---|---|---|
| 1f03908040 | |||
| 43a5317b4e |
@@ -23,7 +23,6 @@ class Employee < ActiveRecord::Base
|
|||||||
return unless employees
|
return unless employees
|
||||||
|
|
||||||
transaction do
|
transaction do
|
||||||
# Update the item table
|
|
||||||
employees.each { |e|
|
employees.each { |e|
|
||||||
logger.info "Processing employee #{e.id}"
|
logger.info "Processing employee #{e.id}"
|
||||||
employee = find_or_create_by(id: e.id)
|
employee = find_or_create_by(id: e.id)
|
||||||
|
|||||||
@@ -56,7 +56,6 @@ class Estimate < ActiveRecord::Base
|
|||||||
|
|
||||||
# update an estimate
|
# update an estimate
|
||||||
def self.update(id)
|
def self.update(id)
|
||||||
# Update the item table
|
|
||||||
qbo = Qbo.first
|
qbo = Qbo.first
|
||||||
estimate = qbo.perform_authenticated_request do |access_token|
|
estimate = qbo.perform_authenticated_request do |access_token|
|
||||||
service = Quickbooks::Service::Estimate.new(:company_id => qbo.realm_id, :access_token => access_token)
|
service = Quickbooks::Service::Estimate.new(:company_id => qbo.realm_id, :access_token => access_token)
|
||||||
|
|||||||
@@ -12,7 +12,6 @@
|
|||||||
# Usage I18n.t(:label)
|
# Usage I18n.t(:label)
|
||||||
en:
|
en:
|
||||||
field_customer: "Customer"
|
field_customer: "Customer"
|
||||||
field_item: "Item"
|
|
||||||
field_employee: "Employee"
|
field_employee: "Employee"
|
||||||
field_invoice: "Invoice"
|
field_invoice: "Invoice"
|
||||||
field_estimate: "Estimate"
|
field_estimate: "Estimate"
|
||||||
@@ -54,7 +53,6 @@ en:
|
|||||||
label_customer_count: "Customer Count"
|
label_customer_count: "Customer Count"
|
||||||
label_invoice_count: "Invoice Count"
|
label_invoice_count: "Invoice Count"
|
||||||
label_estimate_count: "Estimate Count"
|
label_estimate_count: "Estimate Count"
|
||||||
label_item_count: "Item Count"
|
|
||||||
label_employee_count: "Employee Count"
|
label_employee_count: "Employee Count"
|
||||||
label_client_id: "Intuit QBO OAuth2 Client ID"
|
label_client_id: "Intuit QBO OAuth2 Client ID"
|
||||||
label_client_secret: "Intuit QBO OAuth2 Client Secret"
|
label_client_secret: "Intuit QBO OAuth2 Client Secret"
|
||||||
|
|||||||
3
init.rb
3
init.rb
@@ -11,7 +11,7 @@
|
|||||||
Redmine::Plugin.register :redmine_qbo do
|
Redmine::Plugin.register :redmine_qbo do
|
||||||
|
|
||||||
# About
|
# About
|
||||||
name 'Redmine QBO DEVELOPMENT plugin'
|
name 'Redmine QBO plugin'
|
||||||
author 'Rick Barrette'
|
author 'Rick Barrette'
|
||||||
description 'This is a plugin for Redmine to intergrate with Quickbooks Online to allow for seamless intergration CRM and invoicing of completed issues'
|
description 'This is a plugin for Redmine to intergrate with Quickbooks Online to allow for seamless intergration CRM and invoicing of completed issues'
|
||||||
version '2026.1.3'
|
version '2026.1.3'
|
||||||
@@ -22,7 +22,6 @@ Redmine::Plugin.register :redmine_qbo do
|
|||||||
|
|
||||||
# Add safe attributes for core models
|
# Add safe attributes for core models
|
||||||
Issue.safe_attributes 'customer_id'
|
Issue.safe_attributes 'customer_id'
|
||||||
Issue.safe_attributes 'item_id'
|
|
||||||
Issue.safe_attributes 'estimate_id'
|
Issue.safe_attributes 'estimate_id'
|
||||||
Issue.safe_attributes 'invoice_id'
|
Issue.safe_attributes 'invoice_id'
|
||||||
User.safe_attributes 'employee_id'
|
User.safe_attributes 'employee_id'
|
||||||
|
|||||||
@@ -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
|
|
||||||
Reference in New Issue
Block a user