appraisermetrics_report_service 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/appraisermetrics_report_service/version.rb +1 -1
- data/lib/closed_sale.rb +18 -1
- data/lib/eval_report.rb +21 -7
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0d4ca9ad4041390d69d2c9f5cdde8e00269d4c96
|
4
|
+
data.tar.gz: 75ef9a1275a9be42fb8e137ba4a593fcdf150d1a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fae4f6fc15fbef80f763ca5a489fdb6e488f18696e245bafe92afa0e2fccfdc4dc6725a115dccba1feeb1428592cd2fc43d2f820ef4764ed705af3c27faa6bd3
|
7
|
+
data.tar.gz: 03b54fd044302884d899113a204b5fab507783e27d25901069acbf7b3deebe245c24e194dc6b86f1655a98fb7f913fd1aee0ab4d180e7d94189b0a2a34726035
|
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:",
|
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 = "
|
813
|
-
c_string << "#{c[:
|
814
|
-
c_string << "#{c[:
|
815
|
-
c_string << "#{c[:
|
816
|
-
c_string << "#{c[:
|
817
|
-
c_string << "#{c[:
|
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.
|
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-
|
11
|
+
date: 2015-02-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ttfunk
|