mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-02-13 17:13:59 -05:00
Compare commits
5 Commits
b80e1d4e28
...
2026.1.6
| Author | SHA1 | Date | |
|---|---|---|---|
| defeec7f8e | |||
| 37c302e274 | |||
| 006e907b35 | |||
| f1f77a8022 | |||
| ff358d806e |
14
init.rb
14
init.rb
@@ -14,18 +14,18 @@ Redmine::Plugin.register :redmine_qbo do
|
|||||||
name 'Redmine QBO 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.4'
|
version '2026.1.6'
|
||||||
url 'https://github.com/rickbarrette/redmine_qbo'
|
url 'https://github.com/rickbarrette/redmine_qbo'
|
||||||
author_url 'https://barrettefabrication.com'
|
author_url 'https://barrettefabrication.com'
|
||||||
settings default: {'empty' => true}, partial: 'qbo/settings'
|
settings default: {'empty' => true}, partial: 'qbo/settings'
|
||||||
requires_redmine version_or_higher: '6.1.0'
|
requires_redmine version_or_higher: '6.1.0'
|
||||||
|
|
||||||
# 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 '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
|
||||||
TimeEntry.safe_attributes 'billed'
|
TimeEntry.safe_attributes :billed
|
||||||
|
|
||||||
# set per_page globally
|
# set per_page globally
|
||||||
WillPaginate.per_page = 20
|
WillPaginate.per_page = 20
|
||||||
@@ -35,7 +35,7 @@ Redmine::Plugin.register :redmine_qbo do
|
|||||||
permission :add_customers, customers: :new, public: false
|
permission :add_customers, customers: :new, public: false
|
||||||
|
|
||||||
# Register top menu items
|
# Register top menu items
|
||||||
menu :top_menu, :customers, { controller: :customers, action: :index }, caption: 'Customers', if: Proc.new {User.current.logged?}
|
menu :top_menu, :customers, { controller: :customers, action: :index }, caption: :label_customers, if: Proc.new {User.current.logged?}
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
@@ -39,7 +39,7 @@ module Hooks
|
|||||||
# Generate the drop down list of quickbooks estimates owned by the selected customer
|
# Generate the drop down list of quickbooks estimates owned by the selected customer
|
||||||
select_estimate = f.select :estimate_id,
|
select_estimate = f.select :estimate_id,
|
||||||
issue.customer ? issue.customer.estimates.pluck(:doc_number, :id).sort! {|x, y| y <=> x} : [],
|
issue.customer ? issue.customer.estimates.pluck(:doc_number, :id).sort! {|x, y| y <=> x} : [],
|
||||||
selected: issue.estimate,
|
selected: issue.estimate ? issue.estimate.id : nil,
|
||||||
include_blank: true
|
include_blank: true
|
||||||
|
|
||||||
# Pass all prebuilt form components to our partial
|
# Pass all prebuilt form components to our partial
|
||||||
|
|||||||
Reference in New Issue
Block a user