mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-02-13 09:13:58 -05:00
Compare commits
4 Commits
d63bf809f2
...
241dd594d0
| Author | SHA1 | Date | |
|---|---|---|---|
| 241dd594d0 | |||
| b603cb634a | |||
| 1308a05011 | |||
| 334ed60bf7 |
@@ -2,7 +2,6 @@
|
|||||||
<label for="issue_customer"><%= t(:customer) %></label>
|
<label for="issue_customer"><%= t(:customer) %></label>
|
||||||
<%= search_customer %>
|
<%= search_customer %>
|
||||||
<%= customer_id %>
|
<%= customer_id %>
|
||||||
<%= link_to t(:label_load_customer), '#', onclick: "#{js_link}; return false;" %>
|
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<p>
|
<p>
|
||||||
|
|||||||
2
init.rb
2
init.rb
@@ -14,7 +14,7 @@ Redmine::Plugin.register :redmine_qbo do
|
|||||||
name 'Redmine QBO DEVELOPMENT plugin'
|
name 'Redmine QBO DEVELOPMENT 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.1'
|
version '2026.1.2'
|
||||||
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'
|
||||||
|
|||||||
@@ -67,8 +67,7 @@ module Hooks
|
|||||||
locals: {
|
locals: {
|
||||||
search_customer: search_customer,
|
search_customer: search_customer,
|
||||||
customer_id: customer_id,
|
customer_id: customer_id,
|
||||||
js_link: js_link,
|
select_estimate: select_estimate
|
||||||
select_estimate: select_estimate,
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|||||||
@@ -59,8 +59,12 @@ module Patches
|
|||||||
#left << [l(:field_fixed_version), issue.fixed_version] unless issue.disabled_core_fields.include?('fixed_version_id')
|
#left << [l(:field_fixed_version), issue.fixed_version] unless issue.disabled_core_fields.include?('fixed_version_id')
|
||||||
|
|
||||||
logger.debug "Calling :pdf_left hook"
|
logger.debug "Calling :pdf_left hook"
|
||||||
context = Redmine::Hook.call_hook :pdf_left, { array: left, issue: issue }
|
left_hook_output = Redmine::Hook.call_hook :pdf_left, { issue: issue }
|
||||||
left << context.first unless context.nil?
|
unless left_hook_output.nil?
|
||||||
|
left_hook_output.each do |l|
|
||||||
|
left.concat l unless l.nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
right = []
|
right = []
|
||||||
right << [l(:field_start_date), format_date(issue.start_date)] unless issue.disabled_core_fields.include?('start_date')
|
right << [l(:field_start_date), format_date(issue.start_date)] unless issue.disabled_core_fields.include?('start_date')
|
||||||
@@ -70,8 +74,12 @@ module Patches
|
|||||||
right << [l(:label_spent_time), l_hours(issue.total_spent_hours)] if User.current.allowed_to?(:view_time_entries, issue.project)
|
right << [l(:label_spent_time), l_hours(issue.total_spent_hours)] if User.current.allowed_to?(:view_time_entries, issue.project)
|
||||||
|
|
||||||
logger.debug "Calling :pdf_right hook"
|
logger.debug "Calling :pdf_right hook"
|
||||||
context = Redmine::Hook.call_hook :pdf_right, { array: right, issue: issue }
|
right_hook_output = Redmine::Hook.call_hook :pdf_right, { issue: issue }
|
||||||
right << context.first unless context.nil?
|
unless right_hook_output.nil?
|
||||||
|
right_hook_output.each do |r|
|
||||||
|
right.concat r unless r.nil?
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
rows = left.size > right.size ? left.size : right.size
|
rows = left.size > right.size ? left.size : right.size
|
||||||
while left.size < rows
|
while left.size < rows
|
||||||
|
|||||||
Reference in New Issue
Block a user