Compare commits

..

4 Commits

Author SHA1 Message Date
241dd594d0 Fixed pdf hooks 2026-01-26 23:22:23 -05:00
b603cb634a Version Bump 2026.1.2 2026-01-26 22:59:48 -05:00
1308a05011 Removed Load Customer Link 2026-01-26 21:00:16 -05:00
334ed60bf7 removed extra comma 2026-01-26 20:14:01 -05:00
4 changed files with 14 additions and 8 deletions

View File

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

View File

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

View File

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

View File

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