appraisermetrics_report_service 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: eaa82f92aa3a90033aceeadfe4264d643a820ef1
4
- data.tar.gz: 7201672dc79c5bbd0128385e619e4002a95d6cab
3
+ metadata.gz: 0d4ca9ad4041390d69d2c9f5cdde8e00269d4c96
4
+ data.tar.gz: 75ef9a1275a9be42fb8e137ba4a593fcdf150d1a
5
5
  SHA512:
6
- metadata.gz: 4546a5980afc4743abfec677532aa45bee782a668f228cac7579e542463d9fe360056aa2b7a820f18e9c5b6989170e193a628d0d12e0f448e47e2045bf5e2548
7
- data.tar.gz: 7b9b914721088691138b586ca1817c668fe894330af52341a460c10c466dc3e9633a93e7c4522b2a322c709944441f4e4f8fbf566fd18a8c474340d3fab22690
6
+ metadata.gz: fae4f6fc15fbef80f763ca5a489fdb6e488f18696e245bafe92afa0e2fccfdc4dc6725a115dccba1feeb1428592cd2fc43d2f820ef4764ed705af3c27faa6bd3
7
+ data.tar.gz: 03b54fd044302884d899113a204b5fab507783e27d25901069acbf7b3deebe245c24e194dc6b86f1655a98fb7f913fd1aee0ab4d180e7d94189b0a2a34726035
@@ -1,3 +1,3 @@
1
1
  module AppraisermetricsReportService
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
data/lib/closed_sale.rb CHANGED
@@ -341,6 +341,23 @@ class ClosedSale < Prawn::Document
341
341
  end
342
342
 
343
343
  property_inclusions = no_nil_array(@rep[:property_inclusions]).join(" ")
344
+ town_range = ""
345
+
346
+ if @rep[:townshipINT]
347
+ if @rep[:townshipINT] > 0
348
+ town_range << "#{@rep[:townshipINT]}N"
349
+ else
350
+ town_range << "#{@rep[:townshipINT]}S"
351
+ end
352
+ end
353
+
354
+ if @rep[:rangeINT]
355
+ if @rep[:rangeINT] > 0
356
+ town_range << ", #{@rep[:rangeINT]}E"
357
+ else
358
+ town_range << "#{@rep[:rangeINT]}W"
359
+ end
360
+ end
344
361
  type_and_address_data = [
345
362
  [{content: "Property Type and Address", colspan: 4}],
346
363
  ["Property Name:", "#{@rep[:property_name]}", "Primary Land Use:", "#{@rep[:primary_ag_use]}"],
@@ -349,7 +366,7 @@ class ClosedSale < Prawn::Document
349
366
  ["Address:", {content: "#{@rep[:property_address_number]}" + " #{@rep[:street_or_road_name]}", colspan: 3}],
350
367
  ["City:", "#{@rep[:city]}", "County:", "#{@rep[:ordinance_authority]}"],
351
368
  ["State:", "#{@rep[:county_state]}".strip.split('').last(2).join(""), "Zip Code:", "#{@rep[:zip_code]}"],
352
- ["Township/Range:","#{@rep[:townshipINT]}" + "#{@rep[:rangeINT]}", "Section(s):", "#{@rep[:legal_description]}"],
369
+ ["Township/Range:", town_range, "Section(s):", "#{@rep[:legal_description]}"],
353
370
  ["Latitude:", lat, "Longitude:", long]
354
371
  ]
355
372
 
data/lib/eval_report.rb CHANGED
@@ -776,7 +776,7 @@ class EvalReport < Prawn::Document
776
776
 
777
777
  def discussion_of_sales
778
778
  header("DIRECT COMPARISON ANALYSIS")
779
-
779
+ font_size 10
780
780
  if @comps && @comps.any? # just skip the table if there aren't any comps
781
781
 
782
782
  table(flip_discussions(@comps.first(5))) do
@@ -800,6 +800,7 @@ class EvalReport < Prawn::Document
800
800
  end
801
801
  end
802
802
  start_new_page
803
+ font_size 11
803
804
  end
804
805
 
805
806
  def flip_discussions(comps_to_flip)
@@ -808,13 +809,26 @@ class EvalReport < Prawn::Document
808
809
  ["Subject"]
809
810
  ]
810
811
  sale_discussions = ["N/A"]
812
+
811
813
  comps_to_flip.each do |c|
812
- c_string = "#{c[:directions_or_ownership_comments]}\n\n" << "#{c[:allowed_uses_and_limitations]}\n\n"
813
- c_string << "#{c[:development_potential]}\n\n" << "#{c[:comments_on_floodways]}\n\n" << "#{c[:sale_adjustment_comments]}\n\n"
814
- c_string << "#{c[:general_comments]}\n\n" << "#{c[:atmarket_comments]}\n\n" << "#{c[:listing_comments]}\n\n"
815
- c_string << "#{c[:lease_comments]}\n\n" << "#{c[:change_of_use]}\n\n" << "#{c[:water_rights_comment]}\n\n"
816
- c_string << "#{c[:water_distribution_comment]}\n\n" << "#{c[:accessibility]}\n\n" << "#{c[:easements_description]}\n\n"
817
- c_string << "#{c[:elevation]}\n\n" << "#{c[:property_improvement_comments]}\n\n" << "#{c[:income_comments]}"
814
+ c_string = " "
815
+ c_string << "#{c[:directions_or_ownership_comments]}\n\n" unless !c[:directions_or_ownership_comments] || "#{c[:directions_or_ownership_comments]}".empty?
816
+ c_string << "#{c[:allowed_uses_and_limitations]}\n\n" unless !c[:allowed_uses_and_limitations] || "#{c[:allowed_uses_and_limitations]}".empty?
817
+ c_string << "#{c[:development_potential]}\n\n" unless !c[:development_potential] || "#{c[:development_potential]}".empty?
818
+ c_string << "#{c[:comments_on_floodways]}\n\n" unless !c[:comments_on_floodways] || "#{c[:comments_on_floodways]}".empty?
819
+ c_string << "#{c[:sale_adjustment_comments]}\n\n" unless !c[:sale_adjustment_comments] || "#{c[:sale_adjustment_comments]}".empty?
820
+ c_string << "#{c[:general_comments]}\n\n" unless !c[:general_comments] || "#{c[:general_comments]}".empty?
821
+ c_string << "#{c[:atmarket_comments]}\n\n" unless !c[:atmarket_comments] || "#{c[:atmarket_comments]}".empty?
822
+ c_string << "#{c[:listing_comments]}\n\n" unless !c[:listing_comments] || "#{c[:listing_comments]}".empty?
823
+ c_string << "#{c[:lease_comments]}\n\n" unless !c[:lease_comments] || "#{c[:lease_comments]}".empty?
824
+ c_string << "#{c[:change_of_use]}\n\n" unless !c[:change_of_use] || "#{c[:change_of_use]}".empty?
825
+ c_string << "#{c[:water_rights_comment]}\n\n" unless !c[:water_rights_comment] || "#{c[:water_rights_comment]}".empty?
826
+ c_string << "#{c[:water_distribution_comment]}\n\n" unless !c[:water_distribution_comment] || "#{c[:water_distribution_comment]}".empty?
827
+ c_string << "#{c[:accessibility]}\n\n" unless !c[:accessibility] || "#{c[:accessibility]}".empty?
828
+ c_string << "#{c[:easements_description]}\n\n" unless !c[:easements_description] || "#{c[:easements_description]}".empty?
829
+ c_string << "#{c[:elevation]}\n\n" unless !c[:elevation] || "#{c[:elevation]}".empty?
830
+ c_string << "#{c[:property_improvement_comments]}\n\n" unless !c[:property_improvement_comments] || "#{c[:property_improvement_comments]}".empty?
831
+ c_string << "#{c[:income_comments]}" unless !c[:income_comments] || "#{c[:income_comments]}".empty?
818
832
 
819
833
  # build on sub-array
820
834
  discussion_data[0] << "Sale #{@discussion_increment}"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appraisermetrics_report_service
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - StackPoint
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-20 00:00:00.000000000 Z
11
+ date: 2015-02-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ttfunk