Removed extra white spaces

This commit is contained in:
2022-03-09 22:53:03 -05:00
parent 09c497ff96
commit a75f1abd71
20 changed files with 58 additions and 60 deletions

View File

@@ -10,7 +10,7 @@
require_dependency 'issue'
# Patches Redmine's Issues dynamically.
# Patches Redmine's Issues dynamically.
# Adds a relationships
module IssuePatch
@@ -102,7 +102,7 @@ module IssuePatch
CustomerToken.create(:expires_at => Time.now + 1.month, :issue_id => id)
end
end
end
# Add module to Issue
Issue.send(:include, IssuePatch)

View File

@@ -17,12 +17,12 @@ class IssuesShowHookListener < Redmine::Hook::ViewListener
# Check to see if there is a quickbooks user attached to the issue
if issue.customer
customer = link_to issue.customer.name, customer_path( issue.customer.id )
customer = link_to issue.customer.name, customer_path( issue.customer.id )
end
# Estimate Number
if issue.estimate
estimate = issue.estimate.doc_number
estimate = issue.estimate.doc_number
estimate_link = link_to estimate, estimate_path( issue.estimate.id ), :target => "_blank"
end

View File

@@ -89,14 +89,14 @@ module IssuesPdfHelperPatch
if pdf.get_rtl
border_first_top = 'RT'
border_last_top = 'LT'
border_last_top = 'LT'
border_first = 'R'
border_last = 'L'
border_last = 'L'
else
border_first_top = 'LT'
border_last_top = 'RT'
border_last_top = 'RT'
border_first = 'L'
border_last = 'R'
border_last = 'R'
end
rows = left.size > right.size ? left.size : right.size
@@ -109,9 +109,9 @@ module IssuesPdfHelperPatch
heights << pdf.get_string_height(35, item ? "#{item.first}:" : "")
pdf.SetFontStyle('',9)
item = left[i]
heights << pdf.get_string_height(60, item ? item.last.to_s : "")
heights << pdf.get_string_height(60, item ? item.last.to_s : "")
item = right[i]
heights << pdf.get_string_height(60, item ? item.last.to_s : "")
heights << pdf.get_string_height(60, item ? item.last.to_s : "")
height = heights.max
item = left[i]
@@ -122,7 +122,7 @@ module IssuesPdfHelperPatch
item = right[i]
pdf.SetFontStyle('B',9)
pdf.RDMMultiCell(35, height, item ? "#{item.first}:" : "", (i == 0 ? border_first_top : border_first), '', 0, 0)
pdf.RDMMultiCell(35, height, item ? "#{item.first}:" : "", (i == 0 ? border_first_top : border_first), '', 0, 0)
pdf.SetFontStyle('',9)
pdf.RDMMultiCell(60, height, item ? item.last.to_s : "", (i == 0 ? border_last_top : border_last), '', 0, 2)
@@ -195,7 +195,7 @@ module IssuesPdfHelperPatch
pdf.ln
for changeset in issue.changesets
pdf.SetFontStyle('B',8)
csstr = "#{l(:label_revision)} #{changeset.format_identifier} - "
csstr = "#{l(:label_revision)} #{changeset.format_identifier} - "
csstr += format_time(changeset.committed_on) + " - " + changeset.author.to_s
pdf.RDMCell(190, 5, csstr)
pdf.ln

View File

@@ -10,7 +10,7 @@
require_dependency 'project'
# Patches Redmine's Projects dynamically.
# Patches Redmine's Projects dynamically.
# Adds a relationships
module ProjectPatch

View File

@@ -15,11 +15,11 @@ class ProjectsFormHookListener < Redmine::Hook::ViewListener
f = context[:form]
# Check to see if there is a quickbooks user attached to the issue
selected_customer = context[:project].customer ? context[:project].customer : nil
selected_customer = context[:project].customer ? context[:project].customer : nil
selected_vehicle = context[:project].vehicle_id ? context[:project].vehicle_id : nil
# Load customer information
customer = Customer.find_by_id(selected_customer) if selected_customer
customer = Customer.find_by_id(selected_customer) if selected_customer
search_customer = f.autocomplete_field :customer, autocomplete_customer_name_customers_path, :selected => selected_customer, :update_elements => {:id => '#project_customer_id', :value => '#project_customer'}
customer_id = f.hidden_field :customer_id, :id => "project_customer_id"

View File

@@ -10,7 +10,7 @@
require_dependency 'user'
# Patches Redmine's User dynamically.
# Patches Redmine's User dynamically.
# Adds a relationships
module UserPatch
def self.included(base) # :nodoc:
@@ -33,7 +33,7 @@ module UserPatch
end
end
end
# Add module to Issue
User.send(:include, UserPatch)

View File

@@ -11,5 +11,5 @@
class ViewHookListener < Redmine::Hook::ViewListener
render_on :view_layouts_base_sidebar, :partial => "qbo/sidebar"
end