appraisermetrics_report_service 0.0.1

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.
@@ -0,0 +1,213 @@
1
+ require 'spec_helper'
2
+
3
+ describe ReportUtils do
4
+ describe '#moneymaker' do
5
+ context 'money hash is nil' do
6
+ it 'returns a money string for 0 USD' do
7
+ c = ClosedSale.new
8
+ expect(c.moneymaker(nil, false)).to eq('$0.00')
9
+ end
10
+ end
11
+
12
+ context 'money has exists' do
13
+ it 'returns a money string for the given hash' do
14
+ c = ClosedSale.new
15
+ expect(c.moneymaker({cents: 1000, currency_iso: 'USD'}, true)).to eq('$10')
16
+ end
17
+ end
18
+ end
19
+
20
+ describe '#datemaker' do
21
+ context 'bad string' do
22
+ it 'returns empty string' do
23
+ c = ClosedSale.new
24
+ expect(c.datemaker('foo')).to eq('')
25
+ end
26
+ end
27
+
28
+ context 'valid string' do
29
+ it 'returns a formatted string' do
30
+ c = ClosedSale.new
31
+ expect(c.datemaker('2014-12-17T22:11:26Z').to_s).to eq('2014-12-17')
32
+ end
33
+ end
34
+ end
35
+
36
+ describe '#no_nil_array' do
37
+ it 'returns an empty array if passed nil' do
38
+ c = ClosedSale.new
39
+ expect(c.no_nil_array(nil)).to eq([])
40
+ end
41
+
42
+ it 'returns the array passed if not nil' do
43
+ c = ClosedSale.new
44
+ expect(c.no_nil_array([1, 2, 3])).to eq([1, 2, 3])
45
+ end
46
+ end
47
+
48
+ describe '#no_nil_number' do
49
+ it 'returns 0 if the argument passed is nil' do
50
+ c = ClosedSale.new
51
+ expect(c.no_nil_number(nil)).to eq(0)
52
+ end
53
+
54
+ it 'returns the number passed if non-nil' do
55
+ c = ClosedSale.new
56
+ expect(c.no_nil_number(4)).to eq(4)
57
+ end
58
+ end
59
+
60
+ describe '#load_static_strings' do
61
+ it 'loads the static strings from .yml' do
62
+ s = ReportUtils.static_strings
63
+ expect(s[:transmittal]).to include('In fulfillment')
64
+ end
65
+ end
66
+
67
+ describe '#parallel_text' do
68
+ it 'renders text in the pdf' do
69
+ @pdf = EvalReport.new do
70
+ parallel_text('Foo','Bar', 100)
71
+ end
72
+
73
+ @parallel_content = PDF::Reader.new(StringIO.new(@pdf.render)).page(1).to_s
74
+ expect(@parallel_content).to include('Foo', 'Bar')
75
+ end
76
+ end
77
+
78
+ describe '#average_primary_land_val' do
79
+ it 'returns the average of an array of values' do
80
+ @recon_primary_per_acre = [100, 200, 300, 400, 500, 600]
81
+ ave = ReportUtils.average_primary_land_val(@recon_primary_per_acre)
82
+ expect(ave.format(no_cents: false)).to eq("$350.00")
83
+ end
84
+ end
85
+
86
+ describe '#median_primary_land_val' do
87
+ it 'returns the median value for an odd numbered array' do
88
+ @recon_primary_per_acre = [100, 200, 300, 400, 500, 600, 700]
89
+ median = ReportUtils.median_primary_land_val(@recon_primary_per_acre)
90
+ expect(median.format(no_cents: false)).to eq("$400.00")
91
+ end
92
+
93
+ it 'returns the median value for an even numbered array' do
94
+ @recon_primary_per_acre = [100, 200, 300, 400, 500, 600]
95
+ median = ReportUtils.median_primary_land_val(@recon_primary_per_acre)
96
+ expect(median.format(no_cents: false)).to eq("$350.00")
97
+ end
98
+ end
99
+
100
+ describe '#maximum_primary_land_val' do
101
+ it 'returns the max value in the array' do
102
+ @recon_primary_per_acre = [100, 200, 300, 400, 500, 600]
103
+ max = ReportUtils.maximum_primary_land_val(@recon_primary_per_acre)
104
+ expect(max.format(no_cents: false)).to eq("$600.00")
105
+ end
106
+ end
107
+
108
+ describe '#minimum_primary_land_val' do
109
+ it 'returns the min value in the array' do
110
+ @recon_primary_per_acre = [100, 200, 300, 400, 500, 600]
111
+ min = ReportUtils.minimum_primary_land_val(@recon_primary_per_acre)
112
+ expect(min.format(no_cents: false)).to eq("$100.00")
113
+ end
114
+ end
115
+
116
+ describe 'flip improvements array' do
117
+ context "non-empty array" do
118
+ it "produces an array of attributes for a given improvement within a 2D array" do
119
+ c = ClosedSale.new
120
+ sorted_a = c.flip_improvements_array(Sampler.improv_array)
121
+ expect(sorted_a).to eq([[{:content=>"Improvements", :colspan=>8}],
122
+ ["Description", "Imprv.1", "Imprv.2", "Imprv.3", "Imprv.4", "Imprv.5", "Imprv.6", "Imprv.7"],
123
+ ["Type", "Shop", "Granary", "Apple Storage Building"],
124
+ ["Size", "2000", "10000", "25000"],
125
+ ["Unit of Measure", "Sq. Ft.", "Bushels", "Sq. Ft."],
126
+ ["Foundation", "Poured Concrete", "Poured Concrete", "Poured Concrete"],
127
+ ["Const. Class", "Class D", "Class S", "Class S"],
128
+ ["Floor", "Concrete", "Concrete", "Concrete"],
129
+ ["Const. Quality", "", "", ""],
130
+ ["Cond Utility", "Good", "Average", "Average"],
131
+ ["Year Built", "2010", "1990", "2000"],
132
+ ["Total Economic AL", "40", "40", "40"],
133
+ ["Remaining AL:", "2", "20", "10"],
134
+ ["RCN:", "38", "20", "30"],
135
+ ["Deferred Maint:", "$18", "$4", "$32"],
136
+ ["% Physical Deprec.", "$150.00", "$0.00", "$114,700.00"],
137
+ ["% Physical Deprec.", "0", "0", "0"],
138
+ ["% Functional Deprec.", "0", "25", "14"],
139
+ ["% Economic", "0", "0", "0"],
140
+ ["Total Cont. Value:", "$35,007.50", "$15,000.00", "$450,081.00"]])
141
+ end
142
+ end
143
+
144
+ context 'empty array' do
145
+ it 'produces an array of headers and row titles' do
146
+ c = ClosedSale.new
147
+ sorted_a = c.flip_improvements_array([])
148
+ expect(sorted_a).to eq([[{:content=>"Improvements", :colspan=>8}],
149
+ ["Description", "Imprv.1", "Imprv.2", "Imprv.3", "Imprv.4", "Imprv.5", "Imprv.6", "Imprv.7"],
150
+ ["Type"],
151
+ ["Size"],
152
+ ["Unit of Measure"],
153
+ ["Foundation"],
154
+ ["Const. Class"],
155
+ ["Floor"],
156
+ ["Const. Quality"],
157
+ ["Cond Utility"],
158
+ ["Year Built"],
159
+ ["Total Economic AL"],
160
+ ["Remaining AL:"],
161
+ ["RCN:"],
162
+ ["Deferred Maint:"],
163
+ ["% Physical Deprec."],
164
+ ["% Physical Deprec."],
165
+ ["% Functional Deprec."],
166
+ ["% Economic"],
167
+ ["Total Cont. Value:"]])
168
+ end
169
+ end
170
+ end
171
+
172
+ describe 'conditional_externs_array' do
173
+ context "no keys" do
174
+ it "returns an array without missing attributes" do
175
+ @rep = {}
176
+
177
+ expect(ReportUtils.conditional_externs_array(@rep).flatten.join(' ')).to_not include('Description', 'affect(s)', 'problems', 'income',
178
+ 'Number', 'Type of', 'Generation Type', 'Speed', 'Height')
179
+ end
180
+
181
+ it "returns an array with a 'no' response for hazardous waste" do
182
+ @rep = {}
183
+ expect(ReportUtils.conditional_externs_array(@rep).flatten.join(' ')).to include('No')
184
+ end
185
+ end
186
+
187
+ context "with keys" do
188
+
189
+ it "renders an array with appropriate labels" do
190
+ @rep = {
191
+ property_affectedby: ["foo", "bar"],
192
+ has_hazardous_waste: "Yes",
193
+ hazard_descr: "foobar hazard",
194
+ problem_descr: "stubbed problem",
195
+ env_problems: "stubbed env problem",
196
+ env_problem_descr: "stubbed env description",
197
+ ttowers: ["tower1", "tower2"],
198
+ windgeneratortype: ["other", "windtype"],
199
+ tt_annual_income: "$15,000",
200
+ windspeed: "15 mph",
201
+ transtower_comments: "Tower comments",
202
+ num_of_gentowers: 5,
203
+ avgtowerhight: "70 ft",
204
+ windgenincome: "$25,000",
205
+ windgen_comment: "comments on windgen"
206
+ }
207
+ flat_array = ReportUtils.conditional_externs_array(@rep).flatten.flat_map { |e| e.is_a?(Hash) ? e.values : e}
208
+ expect(flat_array.join(" ")).to include('affect(s)', 'problems', 'Transmission Tower on Property:', 'Wind Power Generation Type:',
209
+ 'Annual net income', 'Number of Generation Towers:', 'Average Height', 'Wind Generation Comments:')
210
+ end
211
+ end
212
+ end
213
+ end
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ require 'rspec'
3
+ require 'report_utils'
4
+ require 'appraisermetrics_report_service'
5
+ require 'pdf-reader'
6
+ require './spec/test_data/sampler'
7
+
8
+ RSpec.configure do |config|
9
+
10
+ end
@@ -0,0 +1,1404 @@
1
+ class Sampler
2
+ require 'money'
3
+ require 'appraisermetrics_report_service'
4
+ # this class exists soley to return sample objects for use in dev/test environments
5
+
6
+ # generate a sample report quickly
7
+ def self.test_closed_sale
8
+ c = ClosedSale.new do
9
+ write_content(Sampler.get_comp2, Sampler.sample_closed_sale_images, nil)
10
+ render_file("closed_sale.pdf")
11
+ end
12
+
13
+ return nil
14
+ end
15
+
16
+ def self.test_eval_report
17
+ r = EvalReport.new do
18
+ comps = []
19
+ 5.times {|c| comps << Sampler.get_comp2}
20
+ write_content(Sampler.get_eval1, comps, Sampler.sample_eval_images, Sampler.sample_logo)
21
+ render_file("eval.pdf")
22
+ end
23
+
24
+ return nil
25
+ end
26
+
27
+ def self.sample_logo
28
+ './spec/test_data/images/test_logo.png'
29
+ end
30
+
31
+ def self.sample_closed_sale_images
32
+ images = [
33
+ './spec/test_data/images/profile1.png',
34
+ './spec/test_data/images/property_pic1.png',
35
+ './spec/test_data/images/property_pic2.png',
36
+ './spec/test_data/images/property_pic3.png',
37
+ './spec/test_data/images/property_pic4.png'
38
+ ]
39
+ end
40
+
41
+ def self.sample_eval_images
42
+ images = {
43
+ subject_photos: [
44
+ './spec/test_data/images/subject1.jpg',
45
+ './spec/test_data/images/subject2.jpg',
46
+ './spec/test_data/images/subject3.jpg',
47
+ './spec/test_data/images/subject4.jpg'
48
+ ],
49
+ regional_maps: [
50
+ './spec/test_data/images/regional1.jpg',
51
+ './spec/test_data/images/regional2.jpg'
52
+ ],
53
+ topo_maps: [
54
+ './spec/test_data/images/topo1.jpg',
55
+ './spec/test_data/images/topo2.jpg'
56
+ ],
57
+ ag_sales_map: './spec/test_data/images/ag_sales.jpg'
58
+ }
59
+ end
60
+
61
+
62
+ def self.get_comp2
63
+ h = {
64
+ FSAmap_uploaded: "Yes",
65
+ SWOT_analysis1: "Low-lift water from Columbia River. Farm to Market within 10 miles to Con-Agra processing facilities. Transportation systems: Port facilities on Columbia River, Railex - Burbank, good interstate system - I-395 to I-90 and I-84; regional Pasco airport.",
66
+ SWOT_analysis2: "Stable electricity costs; increasing fertilizer costs 8-10% in the past two years; over-supply of potatoes, 2013 shortage of fuji apple crop",
67
+ _id: "5488d59f3432310002130000",
68
+ _type: "Comp",
69
+ allowed_uses_and_limitations: "Protects Agriculture",
70
+ any_plantings: "Yes",
71
+ any_water_rights: "Yes",
72
+ atmarket_comments: "Closed bid auction. Six bids received.",
73
+ atmarket_trans: "Yes",
74
+ avg_precipitation: 10,
75
+ avgtowerhight: "70.00",
76
+ cesaleprice: {
77
+ cents: 950000000,
78
+ currency_iso: "USD"
79
+ },
80
+ cesaleunitprice: {
81
+ cents: 1000000,
82
+ currency_iso: "USD"
83
+ },
84
+ city: "Pasco",
85
+ conf_type: "Conforming",
86
+ contract_date: "2014-09-16T00:00:00Z",
87
+ county: 3042,
88
+ county_state: "Franklin County,WA",
89
+ created_at: "2014-12-10T23:22:06Z",
90
+ crop10yrep_uploaded: "No",
91
+ crops: [
92
+ {
93
+ _id: "5489b51f3336390002730000",
94
+ year: 2010,
95
+ commodity: "Potatoes",
96
+ unit: "cwt/ac",
97
+ avgyield: 750,
98
+ updated_at: "2014-12-11T15:15:43Z",
99
+ created_at: "2014-12-11T15:15:43Z"
100
+ },
101
+ {
102
+ _id: "5489b51f3336390002740000",
103
+ year: 2011,
104
+ commodity: "Potatoes",
105
+ unit: "cwt/ac",
106
+ avgyield: 855,
107
+ updated_at: "2014-12-11T15:15:43Z",
108
+ created_at: "2014-12-11T15:15:43Z"
109
+ },
110
+ {
111
+ _id: "5489b51f3336390002750000",
112
+ year: 2012,
113
+ commodity: "Potatoes",
114
+ unit: "cwt/ac",
115
+ avgyield: 600,
116
+ updated_at: "2014-12-11T15:15:43Z",
117
+ created_at: "2014-12-11T15:15:43Z"
118
+ },
119
+ {
120
+ _id: "5489b51f3336390002760000",
121
+ year: 2013,
122
+ commodity: "Potatoes",
123
+ unit: "cwt/ac",
124
+ avgyield: 780,
125
+ updated_at: "2014-12-11T15:15:43Z",
126
+ created_at: "2014-12-11T15:15:43Z"
127
+ },
128
+ {
129
+ _id: "5489b51f3336390002770000",
130
+ year: 2010,
131
+ commodity: "Corn",
132
+ unit: "bu/ac",
133
+ avgyield: 165,
134
+ updated_at: "2014-12-11T15:15:43Z",
135
+ created_at: "2014-12-11T15:15:43Z"
136
+ },
137
+ {
138
+ _id: "5489b51f3336390002780000",
139
+ year: 2011,
140
+ commodity: "Corn",
141
+ unit: "bu/ac",
142
+ avgyield: 180,
143
+ updated_at: "2014-12-11T15:15:43Z",
144
+ created_at: "2014-12-11T15:15:43Z"
145
+ },
146
+ {
147
+ _id: "5489b51f3336390002790000",
148
+ year: 2012,
149
+ commodity: "Corn",
150
+ unit: "bu/ac",
151
+ avgyield: 170,
152
+ updated_at: "2014-12-11T15:15:43Z",
153
+ created_at: "2014-12-11T15:15:43Z"
154
+ },
155
+ {
156
+ _id: "5489b51f33363900027a0000",
157
+ year: 2013,
158
+ commodity: "Corn",
159
+ unit: "bu/ac",
160
+ avgyield: 185,
161
+ updated_at: "2014-12-11T15:15:43Z",
162
+ created_at: "2014-12-11T15:15:43Z"
163
+ }
164
+ ],
165
+ estimatedproductivity: [
166
+ {
167
+ _id: "5489b51f33363900027a14000",
168
+ commodity: "Corn",
169
+ unit: "Bushels",
170
+ estmtdyield: 500.00
171
+ },
172
+ {
173
+ _id: "5489b76f33363900027a14000",
174
+ commodity: "Beans",
175
+ unit: "Bushels",
176
+ estmtdyield: 400.00
177
+ }
178
+ ],
179
+ CSR2: "54.3",
180
+ data_verification: "Frank Doe",
181
+ date_inspected: "2014-12-10T00:00:00Z",
182
+ date_last_verified: "2014-12-11T00:00:00Z",
183
+ development_potential: "None",
184
+ directions_or_ownership_comments: "Main Road north 10 miles from Pasco, then River road to Blanding Road",
185
+ easements_description: "Easement for mainline from Columbia River to the property",
186
+ east_land: "Vineyard - Corporate Owned",
187
+ eff_gross_income: 698000,
188
+ electric_station_type: [
189
+ "High-Voltage Transmission Line (HVTLs)"
190
+ ],
191
+ elevation: 350,
192
+ expRatio: 20.14,
193
+ expenses: [
194
+ {
195
+ _id: "5489b51f33363900026c0000",
196
+ exptype: "Fixed Expense",
197
+ expdescr: "Real Estate Taxes",
198
+ cost: {
199
+ cents: 6500000,
200
+ currency_iso: "USD"
201
+ },
202
+ paidbyoperator: 100,
203
+ ownerexpense: {
204
+ cents: 6500000,
205
+ currency_iso: "USD"
206
+ }
207
+ },
208
+ {
209
+ _id: "5489b51f33363900026d0000",
210
+ exptype: "Fixed Expense",
211
+ expdescr: "Insurance",
212
+ cost: {
213
+ cents: 160000,
214
+ currency_iso: "USD"
215
+ },
216
+ paidbyoperator: 100,
217
+ ownerexpense: {
218
+ cents: 160000,
219
+ currency_iso: "USD"
220
+ }
221
+ },
222
+ {
223
+ _id: "5489b51f33363900026e0000",
224
+ exptype: "Capital Expense or Replacement Reserve",
225
+ expdescr: "Irrigation Equipment Replacement",
226
+ cost: {
227
+ cents: 2400000,
228
+ currency_iso: "USD"
229
+ },
230
+ paidbyoperator: 100,
231
+ ownerexpense: {
232
+ cents: 2400000,
233
+ currency_iso: "USD"
234
+ }
235
+ },
236
+ {
237
+ _id: "5489b51f33363900026f0000",
238
+ exptype: "Capital Expense or Replacement Reserve",
239
+ expdescr: "Orchard Tree Replacement",
240
+ cost: {
241
+ cents: 3000000,
242
+ currency_iso: "USD"
243
+ },
244
+ paidbyoperator: 100,
245
+ ownerexpense: {
246
+ cents: 3000000,
247
+ currency_iso: "USD"
248
+ }
249
+ },
250
+ {
251
+ _id: "5489b51f3336390002700000",
252
+ exptype: "Capital Expense or Replacement Reserve",
253
+ expdescr: "Wind Tower Demolition",
254
+ cost: {
255
+ cents: 2000000,
256
+ currency_iso: "USD"
257
+ },
258
+ paidbyoperator: 100,
259
+ ownerexpense: {
260
+ cents: 2000000,
261
+ currency_iso: "USD"
262
+ }
263
+ }
264
+ ],
265
+ exposure_period: 30,
266
+ farming_practices: "Conventional Tillage",
267
+ financing_type: "Farmer Mac",
268
+ flood_zone: [
269
+ "Not in a Flood Zone"
270
+ ],
271
+ general_comments: "Farmer retiring, sold to adjoining neighbor",
272
+ grantee: "Nancy Doe",
273
+ grantor: "Frank Doe",
274
+ growing_season: 160,
275
+ guarantors_email: "509-555-5555",
276
+ has_legal_access: "Yes",
277
+ has_physical_access: "Yes",
278
+ historyrecords: [
279
+ {
280
+ _id: "548998ac6136630002590000",
281
+ transType: "Prior Transfer of Title",
282
+ transDescr: "Sale",
283
+ transDate: "2008-01-16T00:00:00Z",
284
+ price: {
285
+ cents: 650000000,
286
+ currency_iso: "USD"
287
+ },
288
+ grantor: "Tom Doe",
289
+ grantee: "Frank Doe",
290
+ verificationNo: "950000",
291
+ comments: "Sold through MLS, according to appraiser's files and county records.",
292
+ updated_at: "2014-12-11T13:14:20Z",
293
+ created_at: "2014-12-11T13:14:20Z"
294
+ }
295
+ ],
296
+ improvements: [
297
+ {
298
+ _id: "5489b51f33363900027b0000",
299
+ improvtype: "Shop",
300
+ unitsize: 2000,
301
+ unitdescr: "Sq. Ft.",
302
+ effage: 2,
303
+ depval: {
304
+ cents: 3500750,
305
+ currency_iso: "USD"
306
+ },
307
+ foundation: "Poured Concrete",
308
+ constrclass: "Class D",
309
+ floor: "Concrete",
310
+ qualityconstr: "Average",
311
+ condition: "Good",
312
+ yearbuilt: 2010,
313
+ totalecoage: 40,
314
+ rplccost: {
315
+ cents: 1850,
316
+ currency_iso: "USD"
317
+ },
318
+ rplccostsrc: "Marshall & Swift",
319
+ deffmaintenance: {
320
+ cents: 15000,
321
+ currency_iso: "USD"
322
+ },
323
+ fnctldeprication: 0,
324
+ extdeprication: 0
325
+ },
326
+ {
327
+ _id: "5489b51f33363900027c0000",
328
+ improvtype: "Granary",
329
+ unitsize: 10000,
330
+ unitdescr: "Bushels",
331
+ effage: 20,
332
+ depval: {
333
+ cents: 1500000,
334
+ currency_iso: "USD"
335
+ },
336
+ foundation: "Poured Concrete",
337
+ constrclass: "Class S",
338
+ floor: "Concrete",
339
+ qualityconstr: "Average",
340
+ condition: "Average",
341
+ yearbuilt: 1990,
342
+ totalecoage: 40,
343
+ rplccost: {
344
+ cents: 400,
345
+ currency_iso: "USD"
346
+ },
347
+ rplccostsrc: "Market",
348
+ deffmaintenance: {
349
+ cents: 0,
350
+ currency_iso: "USD"
351
+ },
352
+ fnctldeprication: 25,
353
+ extdeprication: 0
354
+ },
355
+ {
356
+ _id: "5489b51f33363900027d0000",
357
+ improvtype: "Apple Storage Building",
358
+ unitsize: 25000,
359
+ unitdescr: "Sq. Ft.",
360
+ effage: 10,
361
+ depval: {
362
+ cents: 45008100,
363
+ currency_iso: "USD"
364
+ },
365
+ foundation: "Poured Concrete",
366
+ constrclass: "Class S",
367
+ floor: "Concrete",
368
+ qualityconstr: "Good",
369
+ condition: "Average",
370
+ yearbuilt: 2000,
371
+ totalecoage: 40,
372
+ rplccost: {
373
+ cents: 3250,
374
+ currency_iso: "USD"
375
+ },
376
+ rplccostsrc: "MS",
377
+ deffmaintenance: {
378
+ cents: 11470000,
379
+ currency_iso: "USD"
380
+ },
381
+ fnctldeprication: 14,
382
+ extdeprication: 0
383
+ }
384
+ ],
385
+ imprv_unitprice: {
386
+ cents: 52632,
387
+ currency_iso: "USD"
388
+ },
389
+ incomes: [
390
+ {
391
+ _id: "5489b51f3336390002680000",
392
+ srcref: "Pivot Irrigated Cropland",
393
+ incomesrc: "Cash Lease",
394
+ measureunit: "$/Acre",
395
+ totalunits: 800,
396
+ stabilizedyield: 1,
397
+ stabcashperunit: {
398
+ cents: 60000,
399
+ currency_iso: "USD"
400
+ },
401
+ grosincome: {
402
+ cents: 48000000,
403
+ currency_iso: "USD"
404
+ },
405
+ ownerpercent: 100
406
+ },
407
+ {
408
+ _id: "5489b51f3336390002690000",
409
+ srcref: "Apple Orchards",
410
+ incomesrc: "Cash",
411
+ measureunit: "$/Acre",
412
+ totalunits: 150,
413
+ stabilizedyield: 1,
414
+ stabcashperunit: {
415
+ cents: 85000,
416
+ currency_iso: "USD"
417
+ },
418
+ grosincome: {
419
+ cents: 12750000,
420
+ currency_iso: "USD"
421
+ },
422
+ ownerpercent: 100
423
+ },
424
+ {
425
+ _id: "5489b51f33363900026a0000",
426
+ srcref: "Wind Towers",
427
+ incomesrc: "Cash Lease",
428
+ measureunit: "$/Tower",
429
+ totalunits: 3,
430
+ stabilizedyield: 1,
431
+ stabcashperunit: {
432
+ cents: 2500000,
433
+ currency_iso: "USD"
434
+ },
435
+ grosincome: {
436
+ cents: 7500000,
437
+ currency_iso: "USD"
438
+ },
439
+ ownerpercent: 100
440
+ },
441
+ {
442
+ _id: "5489b51f33363900026b0000",
443
+ srcref: "Transmission Tower",
444
+ incomesrc: "Cash Lease",
445
+ measureunit: "$/Tower",
446
+ totalunits: 1,
447
+ stabilizedyield: 1,
448
+ stabcashperunit: {
449
+ cents: 1550000,
450
+ currency_iso: "USD"
451
+ },
452
+ grosincome: {
453
+ cents: 1550000,
454
+ currency_iso: "USD"
455
+ },
456
+ ownerpercent: 100
457
+ }
458
+ ],
459
+ information_source_contact: "509-444-4444",
460
+ instrument_of_conveyance: "No",
461
+ is_survey_or_plat_uploaded: "No",
462
+ is_title_report_uploaded: "Yes",
463
+ land_use_ordinance: "Yes",
464
+ land_use_zone: "Agriculture",
465
+ landclassifications: [
466
+ {
467
+ _id: "5489b51f3336390002710000",
468
+ landclass: "Cropland-Pivot/Pipe Irrig",
469
+ soilclass: "Class I",
470
+ numacres: 800,
471
+ priceperacre: {
472
+ cents: 750000,
473
+ currency_iso: "USD"
474
+ }
475
+ },
476
+ {
477
+ _id: "5489b51f3336390002720000",
478
+ landclass: "Orchard-O/Hd, Solid or Drip",
479
+ soilclass: "Class I",
480
+ numacres: 150,
481
+ priceperacre: {
482
+ cents: 2000000,
483
+ currency_iso: "USD"
484
+ }
485
+ }
486
+ ],
487
+ last_verification_date: "2014-12-11T00:00:00Z",
488
+ legal_access: "Blanding Road is a county road with several approaches to the farmland and orchards",
489
+ legal_description: "Section 7",
490
+ meridian: "Willamette",
491
+ north_land: "Pivot Irrigated Cropland - Corporate Owned",
492
+ num_of_gentowers: 5,
493
+ num_of_units: 950,
494
+ occupancy: "Owner-Operated",
495
+ ordinance_authority: "Franklin County",
496
+ overall_capitalization_rate: 5.87,
497
+ irrig_cost_per_acre: {
498
+ cents: 10000,
499
+ currency_iso: "USD"
500
+ },
501
+ pumping_cost_per_acre: {
502
+ cents: 15000,
503
+ currency_iso: "USD"
504
+ },
505
+ owner_tenant_id: 18,
506
+ physical_access: "Same as legal access",
507
+ plantings: [
508
+ {
509
+ _id: "5489b51f33363900027e0000",
510
+ planting: "Apples",
511
+ variety: "Fujis",
512
+ acres: "Bearing",
513
+ numacres: 75,
514
+ avgage: 15,
515
+ overallestimate: "20",
516
+ plantarea: "NENWNW Sec 6",
517
+ plantsacre: 300,
518
+ irrsystem: "Drip",
519
+ protection: "Wind Machine",
520
+ prodY1: 2009,
521
+ unitdescr1: "Bin",
522
+ numunitsY1: 510,
523
+ unitpriceY1: {
524
+ cents: 1000,
525
+ currency_iso: "USD"
526
+ },
527
+ prodY2: 2010,
528
+ unitdescr2: "Bin",
529
+ numunitsY2: 610,
530
+ unitpriceY2: {
531
+ cents: 800,
532
+ currency_iso: "USD"
533
+ },
534
+ prodY3: 2011,
535
+ unitdescr3: "Bin",
536
+ numunitsY3: 625,
537
+ unitpriceY3: {
538
+ cents: 750,
539
+ currency_iso: "USD"
540
+ },
541
+ prodY4: 2012,
542
+ unitdescr4: "Bin",
543
+ numunitsY4: 485,
544
+ unitpriceY4: {
545
+ cents: 1050,
546
+ currency_iso: "USD"
547
+ },
548
+ avgproduction: 542,
549
+ avgprice: {
550
+ cents: 915,
551
+ currency_iso: "USD"
552
+ },
553
+ prodY5: 2013,
554
+ unitdescr5: "Bin",
555
+ numunitsY5: 480,
556
+ unitpriceY5: {
557
+ cents: 975,
558
+ currency_iso: "USD"
559
+ },
560
+ currcost: {
561
+ cents: 550000,
562
+ currency_iso: "USD"
563
+ },
564
+ typicaleconomy: 25,
565
+ spacing: "12 Feet"
566
+ },
567
+ {
568
+ _id: "5489b51f33363900027f0000",
569
+ planting: "Apples",
570
+ variety: "Gala",
571
+ acres: "Bearing",
572
+ numacres: 75,
573
+ avgage: 10,
574
+ overallestimate: "20",
575
+ plantarea: "NENWNW Sec 7",
576
+ spacing: "12 feet",
577
+ plantsacre: 300,
578
+ irrsystem: "Drip",
579
+ protection: "Wind Machine",
580
+ prodY1: 2009,
581
+ unitdescr1: "Bin",
582
+ numunitsY1: 445,
583
+ unitpriceY1: {
584
+ cents: 1145,
585
+ currency_iso: "USD"
586
+ },
587
+ prodY2: 2010,
588
+ unitdescr2: "Bin",
589
+ numunitsY2: 545,
590
+ unitpriceY2: {
591
+ cents: 1140,
592
+ currency_iso: "USD"
593
+ },
594
+ prodY3: 2011,
595
+ unitdescr3: "Bin",
596
+ numunitsY3: 645,
597
+ unitpriceY3: {
598
+ cents: 745,
599
+ currency_iso: "USD"
600
+ },
601
+ prodY4: 2012,
602
+ unitdescr4: "Bin",
603
+ numunitsY4: 425,
604
+ unitpriceY4: {
605
+ cents: 950,
606
+ currency_iso: "USD"
607
+ },
608
+ avgproduction: 548,
609
+ avgprice: {
610
+ cents: 961,
611
+ currency_iso: "USD"
612
+ },
613
+ prodY5: 2013,
614
+ unitdescr5: "Bin",
615
+ numunitsY5: 680,
616
+ unitpriceY5: {
617
+ cents: 825,
618
+ currency_iso: "USD"
619
+ },
620
+ currcost: {
621
+ cents: 650000,
622
+ currency_iso: "USD"
623
+ },
624
+ typicaleconomy: 30
625
+ }
626
+ ],
627
+ position: [
628
+ -119.323879,
629
+ 46.369325
630
+ ],
631
+ primary_ag_use: "Cropland-Pivot/Pipe Irrig",
632
+ property_address_number: 0,
633
+ property_affectedby: [
634
+ "Wind Generation",
635
+ "Transmission Towers"
636
+ ],
637
+ property_inclusions: [
638
+ "Improved with Permanent Plantings",
639
+ "Improved with Ag Use Improvements"
640
+ ],
641
+ property_name: "Apple and Potato Farm",
642
+ property_rights: "Fee Simple",
643
+ public_rec_ref_number: "1000000",
644
+ rangeINT: 20,
645
+ readpermissions: 2,
646
+ record_created_by: "DemoDemo",
647
+ record_date: "2014-12-10T23:22:06Z",
648
+ record_edited: "2014-12-11T16:49:57.229Z",
649
+ record_owned_by: 45,
650
+ sale_adjustment: {
651
+ cents: 7500000,
652
+ currency_iso: "USD"
653
+ },
654
+ sale_adjustment_comments: "$75,000 allocated to rolling stock",
655
+ sale_adjustment_prefix: -1,
656
+ sale_date: "2014-11-05T00:00:00Z",
657
+ sale_price: {
658
+ cents: 957500000,
659
+ currency_iso: "USD"
660
+ },
661
+ secondary_ag_use: "Orchard-O/Hd, Solid or Drip",
662
+ sequence: 1054,
663
+ soils: "Sandy Loam",
664
+ south_land: "Pivot Irrigated Cropland - Family Partnership Owned",
665
+ state: 49,
666
+ status: "SAVED",
667
+ street_or_road_name: "Blanding Road",
668
+ taxes: [
669
+ {
670
+ _id: "548998ac61366300025a0000",
671
+ tax_parcel_no: "RP10N29E067500",
672
+ assessed_value_land_only: {
673
+ cents: 485000000,
674
+ currency_iso: "USD"
675
+ },
676
+ assessed_value_improvements_only: {
677
+ cents: 35000000,
678
+ currency_iso: "USD"
679
+ },
680
+ assessed_value: {
681
+ cents: 520000000,
682
+ currency_iso: "USD"
683
+ },
684
+ RET: {
685
+ cents: 6500000,
686
+ currency_iso: "USD"
687
+ },
688
+ numofunits: 940,
689
+ updated_at: "2014-12-11T13:14:20Z",
690
+ created_at: "2014-12-11T13:14:20Z"
691
+ }
692
+ ],
693
+ topography: "0-3%",
694
+ total_RET: "65000.00",
695
+ total_assessed_value: "5200000.00",
696
+ total_expenses: 140600,
697
+ total_imprv_budget: {
698
+ cents: 50000000,
699
+ currency_iso: "USD"
700
+ },
701
+ townshipINT: 10,
702
+ tt_anual_income: "$15,500.00",
703
+ ttowers: [
704
+ "Guyed Tower"
705
+ ],
706
+ type_of_lease: "Existing lease",
707
+ type_of_transaction: "Closed Sale",
708
+ unit: "Acre",
709
+ updated_at: "2014-12-11T19:13:04.077Z",
710
+ utilities: [
711
+ {
712
+ _id: "5489b51f3336390002830000",
713
+ description: "Electricity",
714
+ availability: "Existing Hookup",
715
+ provider: "Puget Sound",
716
+ comments: "3-phase"
717
+ },
718
+ {
719
+ _id: "5489b51f3336390002840000",
720
+ description: "Water",
721
+ availability: "Culinary Well ",
722
+ provider: "",
723
+ comments: "Licensed up to 13,000 gallons per day"
724
+ }
725
+ ],
726
+ verification_guarantor: "John Smith, MAI",
727
+ verification_of_water_rights: "Washington Department of Ecology",
728
+ verifications: [
729
+ "Interviewed Buyer or Tenant",
730
+ "Interviewed Seller or Landlord",
731
+ "Personally inspected the property",
732
+ "County Assessor",
733
+ "Obtained copy of transfer deed"
734
+ ],
735
+ water_distribution_comment: "Domestic well has 3-HP submersible pump/motor installed in 2003",
736
+ water_rights_comment: "",
737
+ waterdistributions: [
738
+ {
739
+ _id: "5489b51f3336390002820000",
740
+ waterdistrEq: "Pump",
741
+ manufacturer: "US Motors",
742
+ brand: "Hollowshaft",
743
+ yearManuf: 1994,
744
+ condition: "Average",
745
+ serialNo: "133456",
746
+ descr: "4000 HP",
747
+ installDate: "1995-01-01T00:00:00Z",
748
+ levelTestingDate: "2013-05-01T00:00:00Z",
749
+ testedBy: "Fred's Electric",
750
+ cornerIrr: "No",
751
+ irrAcres: 800,
752
+ remainingEcLife: 15,
753
+ eqType: "Vertical Three-Phase",
754
+ yearRefurbished: 2004
755
+ }
756
+ ],
757
+ waterrights: [
758
+ {
759
+ _id: "5489b51f3336390002800000",
760
+ waterRight: "Right",
761
+ waterSrc: "Surface",
762
+ enfPriorityDate: "1961-05-26T00:00:00Z",
763
+ purpose: "Irrigation",
764
+ usagePeriod: "April 1",
765
+ waterrightNum: "09050000",
766
+ recordOwner: "Frank Doe",
767
+ srcName: "Columbia River",
768
+ diversionMeans: "Pump",
769
+ priorityDate: "1961-05-26T00:00:00Z",
770
+ numIrrAcres: 950,
771
+ flowRateType: "CFS",
772
+ annVolume: 4275,
773
+ shareWaterVol: 4.5,
774
+ right: "Primary",
775
+ diversionPoint: "Columbia River",
776
+ placeOfUse: "T10NR29ESec6-7",
777
+ easements: "Irrigation mainline easement from river to property"
778
+ },
779
+ {
780
+ _id: "5489b51f3336390002810000",
781
+ waterRight: "License",
782
+ waterSrc: "Ground",
783
+ enfPriorityDate: "1975-01-01T00:00:00Z",
784
+ purpose: "Domestic",
785
+ usagePeriod: "January 1 to December 31",
786
+ waterrightNum: "4560000",
787
+ recordOwner: "Frank Doe",
788
+ diversionMeans: "Pump",
789
+ priorityDate: "1975-01-01T00:00:00Z",
790
+ flowRateType: "GPM",
791
+ maxFlow: 65,
792
+ staticLevel: 180,
793
+ recession5y: 170
794
+ }
795
+ ],
796
+ websoilrep_uploaded: "No",
797
+ west_land: "Agriculture Processing Plants",
798
+ wetlands: "No",
799
+ windgeneratortype: [
800
+ "Triple Blade"
801
+ ],
802
+ windgenincome: "$75,000.00",
803
+ windgeninfouploaded: "No",
804
+ windspeed: "Class 5 16.8-17.9 mph",
805
+ year_of_assessment: 2015,
806
+ year_of_real_estate_taxes: 2014,
807
+ zip_code: 99345
808
+ }
809
+ end
810
+
811
+
812
+ def self.get_eval1
813
+ eval1 = {
814
+ FSAmap_uploaded: "Yes",
815
+ SWOT_analysis1: "Property is adjacent to the Columbia River, 5 miles from Umatilla, where services are located. Farm to market includes two-lane state highway and major interstate to Portland and the coast. Two major railroads exist on the north and south sides of the Columbia River.",
816
+ SWOT_analysis2: "Wheat prices remain stable. Apple prices are plummeting due to an over-supply of Red Delicious Apples in the region. Potatoes are between $5/cwt and $5.50/cwt, lower than last year but higher than five-year average. Fuel prices are 50% lower then past five-year average.",
817
+ _id: "549079786539620002000000",
818
+ _type: "Evaluation",
819
+ accessibility: "Access from State Highway 730 to West 8th Road, a hard-surface county road",
820
+ allowed_uses_and_limitations: "Uses are limited to Agriculture and Agriculture businesses",
821
+ analysis: [
822
+ "Gathered and analyzed data necessary to develop the Sales Comparison Approach to Value."
823
+ ],
824
+ any_plantings: "Yes",
825
+ any_water_rights: "Yes",
826
+ appproblem: "Conclude the fee simple estimated value on 234 acres of irrigated cropland, small apple orchard, and associated outbuildings purposes of internal decision making purposes for collateral assessment on loan under $250,000.",
827
+ avg_precipitation: 9,
828
+ cesaleprice: {
829
+ cents: 0,
830
+ currency_iso: "USD"
831
+ },
832
+ cesaleunitprice: {
833
+ cents: 0,
834
+ currency_iso: "USD"
835
+ },
836
+ change_of_use: "Property is protected by no net loss county covenants protecting development of farmland",
837
+ city: "Boardman",
838
+ clientaddress: "505 Main Street, Suite D, Pullman, Washington 99163",
839
+ clientcontact: "Bob Jones",
840
+ clientid: "Wheatland Bank of Idaho",
841
+ clientrefnum: "14-00865-01",
842
+ complianceid: [
843
+ "Office of Thrift Supervision (OTS)",
844
+ "Federal Deposit Insurance Corporation (FDIC)",
845
+ "Office of the Comptroller of the Currency (OCC)"
846
+ ],
847
+ conf_type: "Conforming",
848
+ conservation_program: "No",
849
+ county: 2237,
850
+ county_state: "Umatilla County,OR",
851
+ created_at: "2014-12-16T18:27:04Z",
852
+ crop10yrep_uploaded: "Yes",
853
+ crop_ins_agent: "509-333-3333",
854
+ crop_insurance_company: "ABC Crop Insurance Co.",
855
+ crops: [
856
+ {
857
+ _id: "54b5aba63465640002060100",
858
+ year: 2008,
859
+ commodity: "Norcoda",
860
+ unit: "cwt",
861
+ avgyield: 755,
862
+ updated_at: "2015-01-13T23:35:02.441Z",
863
+ created_at: "2015-01-13T23:35:02.441Z"
864
+ },
865
+ {
866
+ _id: "54b5aba63465640002070100",
867
+ year: 2009,
868
+ commodity: "Russets",
869
+ unit: "cwt",
870
+ avgyield: 648,
871
+ updated_at: "2015-01-13T23:35:02.441Z",
872
+ created_at: "2015-01-13T23:35:02.441Z"
873
+ },
874
+ {
875
+ _id: "54b5aba63465640002080100",
876
+ year: 2010,
877
+ commodity: "Russets",
878
+ unit: "cwt",
879
+ avgyield: 725,
880
+ updated_at: "2015-01-13T23:35:02.441Z",
881
+ created_at: "2015-01-13T23:35:02.441Z"
882
+ },
883
+ {
884
+ _id: "54b5aba63465640002090100",
885
+ year: 2011,
886
+ commodity: "Nordoca",
887
+ unit: "cwt",
888
+ avgyield: 825,
889
+ updated_at: "2015-01-13T23:35:02.442Z",
890
+ created_at: "2015-01-13T23:35:02.442Z"
891
+ },
892
+ {
893
+ _id: "54b5aba634656400020a0100",
894
+ year: 2012,
895
+ commodity: "Norcoda",
896
+ unit: "cwt",
897
+ avgyield: 610,
898
+ updated_at: "2015-01-13T23:35:02.442Z",
899
+ created_at: "2015-01-13T23:35:02.442Z"
900
+ }
901
+ ],
902
+ curr_owner: "Jason Jackson",
903
+ development_potential: "None",
904
+ easements_description: "Roadway right of way on east side of the property.",
905
+ east_land: "Boardman Bombing Range",
906
+ eff_gross_income: 96000,
907
+ effvaluedateasis: "2015-01-13T00:00:00Z",
908
+ elevation: 300,
909
+ estimatedproductivity: [
910
+ {
911
+ _id: "54b5aba634656400020b0100",
912
+ commodity: "Potatoes",
913
+ unit: "cwt",
914
+ estmtdyield: 700,
915
+ updated_at: "2015-01-13T23:35:02.442Z",
916
+ created_at: "2015-01-13T23:35:02.442Z"
917
+ }
918
+ ],
919
+ expenses: [
920
+ {
921
+ _id: "54b5aba63465640002fe0000",
922
+ exptype: "Fixed Expense",
923
+ expdescr: "Real Estate Taxes",
924
+ cost: {
925
+ cents: 236536,
926
+ currency_iso: "USD"
927
+ },
928
+ paidbyoperator: 100,
929
+ ownerexpense: {
930
+ cents: 236536,
931
+ currency_iso: "USD"
932
+ }
933
+ }
934
+ ],
935
+ exptimereasoning: "Based on limited supply of irrigated cropland with small apple orchards in the Kendrick, Idaho region, the estimated exposure time would be less than 12 months.",
936
+ extrassumptions: "None",
937
+ farming_practices: "Conventional Tillage",
938
+ flood_zone: [
939
+ "Not in a Flood Zone"
940
+ ],
941
+ growing_season: 180,
942
+ has_legal_access: "Yes",
943
+ has_physical_access: "Yes",
944
+ historyrecords: [
945
+ {
946
+ _id: "54b5aba63465640002000100",
947
+ transType: "Prior Transfer of Title",
948
+ transDescr: "Sale",
949
+ transDate: "2008-02-13T00:00:00Z",
950
+ price: {
951
+ cents: 234000000,
952
+ currency_iso: "USD"
953
+ },
954
+ updated_at: "2015-01-13T23:35:02.441Z",
955
+ created_at: "2015-01-13T23:35:02.441Z"
956
+ },
957
+ {
958
+ _id: "54b5aba63465640002010100",
959
+ transType: "Prior Offering",
960
+ transDescr: "Expired Listing",
961
+ transDate: "2014-09-18T00:00:00Z",
962
+ price: {
963
+ cents: 280000000,
964
+ currency_iso: "USD"
965
+ },
966
+ updated_at: "2015-01-13T23:35:02.441Z",
967
+ created_at: "2015-01-13T23:35:02.441Z"
968
+ }
969
+ ],
970
+ hypotheticalconditions: "None",
971
+ improvements: [
972
+ {
973
+ _id: "54b5aba634656400020c0100",
974
+ improvtype: "Potato Cellar",
975
+ unitsize: 128000,
976
+ unitdescr: "CWT",
977
+ effage: 20,
978
+ depval: {
979
+ cents: 25600000,
980
+ currency_iso: "USD"
981
+ },
982
+ foundation: "Poured Concrete",
983
+ constrclass: "Class S",
984
+ floor: "Dirt",
985
+ qualityconstr: "Average",
986
+ condition: "Average",
987
+ yearbuilt: 1985,
988
+ lastminorimpryear: 2005,
989
+ totalecoage: 40,
990
+ rplccost: {
991
+ cents: 500,
992
+ currency_iso: "USD"
993
+ },
994
+ fnctldeprication: 20,
995
+ extdeprication: 0
996
+ }
997
+ ],
998
+ imprv_unitprice: {
999
+ cents: 0,
1000
+ currency_iso: "USD"
1001
+ },
1002
+ incomes: [
1003
+ {
1004
+ _id: "54b5aba63465640002fd0000",
1005
+ srcref: "Class I",
1006
+ incomesrc: "Cash Lease",
1007
+ measureunit: "$/Acre",
1008
+ totalunits: 160,
1009
+ stabilizedyield: 1,
1010
+ stabcashperunit: {
1011
+ cents: 60000,
1012
+ currency_iso: "USD"
1013
+ },
1014
+ grosincome: {
1015
+ cents: 9600000,
1016
+ currency_iso: "USD"
1017
+ },
1018
+ ownerpercent: 100
1019
+ }
1020
+ ],
1021
+ intendeduse: [
1022
+ "loan underwriting decisions"
1023
+ ],
1024
+ intendeduser: "Wheatland Bank of Idaho\nAgriAccess",
1025
+ irrig_cost_per_acre: {
1026
+ cents: 1150,
1027
+ currency_iso: "USD"
1028
+ },
1029
+ land_use_ordinance: "Yes",
1030
+ land_use_zone: "Agriculture",
1031
+ landclassifications: [
1032
+ {
1033
+ _id: "54b5aba63465640002020100",
1034
+ landclass: "Cropland-Pivot/Pipe Irrig",
1035
+ soilclass: "Class I",
1036
+ numacres: 160,
1037
+ priceperacre: {
1038
+ cents: 0,
1039
+ currency_iso: "USD"
1040
+ }
1041
+ },
1042
+ {
1043
+ _id: "54b5aba63465640002030100",
1044
+ landclass: "Orchard-Surface Irrig",
1045
+ soilclass: "Class I",
1046
+ numacres: 20,
1047
+ priceperacre: {
1048
+ cents: 0,
1049
+ currency_iso: "USD"
1050
+ }
1051
+ },
1052
+ {
1053
+ _id: "54b5aba63465640002040100",
1054
+ landclass: "Home/Building Site",
1055
+ soilclass: "0",
1056
+ numacres: 5,
1057
+ priceperacre: {
1058
+ cents: 0,
1059
+ currency_iso: "USD"
1060
+ }
1061
+ },
1062
+ {
1063
+ _id: "54b5aba63465640002050100",
1064
+ landclass: "Roads/Waste",
1065
+ soilclass: "0",
1066
+ numacres: 49,
1067
+ priceperacre: {
1068
+ cents: 0,
1069
+ currency_iso: "USD"
1070
+ }
1071
+ }
1072
+ ],
1073
+ landlord_name: "Jim Neighbors",
1074
+ latterofengdate: "2015-01-07T00:00:00Z",
1075
+ lease_data: [
1076
+ {
1077
+ _id: "54b5aba63465640002ff0000",
1078
+ property: "Cropland-Pivot/Pipe Irrig",
1079
+ leasetype: "Fixed Payment",
1080
+ unit: "Acre",
1081
+ numOfUnits: 120,
1082
+ unitprice: {
1083
+ cents: 65000,
1084
+ currency_iso: "USD"
1085
+ },
1086
+ landlordexp: [
1087
+ "Real Estate Taxes",
1088
+ "Liability Insurance",
1089
+ "Management Fee"
1090
+ ],
1091
+ startLeaseDate: "2015-01-01T00:00:00Z",
1092
+ endLeaseDate: "2015-12-31T00:00:00Z"
1093
+ }
1094
+ ],
1095
+ legal_access: "Year-round maintained county road. State highway bounds the property to the south but does not have permitted approach. Property only has legal access from the county road.",
1096
+ legal_description: "Section 6",
1097
+ listing_comments: "Property sold to the current owner in 2008 at $10,000 per acre. Owner listed the property in 2014, but didn't sell, listing expired in September 2014",
1098
+ marketingtimereasoning: "Same as exposure time.",
1099
+ meridian: "Willamette",
1100
+ north_land: "Columbia River",
1101
+ num_of_units: 234,
1102
+ occupancy: "Owner-Operated",
1103
+ ordinance_authority: "Umatilla County, Oregon",
1104
+ overall_capitalization_rate: 0,
1105
+ owner_tenant_id: 4,
1106
+ physical_access: "Approach from County Road runs across a drainage ditch, creating a physical approach to the property.",
1107
+ plantings: [
1108
+ {
1109
+ _id: "54b5aba634656400020d0100",
1110
+ planting: "Apples",
1111
+ variety: "Red Delicious",
1112
+ acres: "Bearing",
1113
+ numacres: 20,
1114
+ avgage: 15,
1115
+ overallestimate: "",
1116
+ plantarea: "Northern Oregon",
1117
+ plantsacre: 3,
1118
+ prodY1: 2013,
1119
+ unitdescr1: "Bin",
1120
+ numunitsY1: 20
1121
+ }
1122
+ ],
1123
+ position: [
1124
+ -119.6158,
1125
+ 45.8446
1126
+ ],
1127
+ primary_ag_use: "Cropland-Pivot/Pipe Irrig",
1128
+ property_address_number: 0,
1129
+ property_inclusions: [
1130
+ "Improved with Permanent Plantings",
1131
+ "Improved with Ag Use Improvements"
1132
+ ],
1133
+ property_name: "Jackson Farm",
1134
+ property_rights: "Fee Simple",
1135
+ pumping_cost_per_acre: {
1136
+ cents: 3500,
1137
+ currency_iso: "USD"
1138
+ },
1139
+ rangeINT: 26,
1140
+ record_created_by: "Ruby Stroschein",
1141
+ record_date: "2014-12-16T18:27:04Z",
1142
+ record_edited: "2015-01-13T23:35:01.025Z",
1143
+ record_owned_by: 43,
1144
+ research: [
1145
+ "Inspect exterior of property.",
1146
+ "Gather and analyze assessed value, property taxes, and tax implications.",
1147
+ "Research and analyze water rights associated with this property.",
1148
+ "Analyze physical and legal access.",
1149
+ "Analyze values, sales, and trends in the current market."
1150
+ ],
1151
+ scopeofworkcomments: "This is a limited scope analysis for internal purposes. Used KLS comparable land sales database. I inspected the subject property. I did not inspect the comparable sale properties.",
1152
+ secondary_ag_use: "Orchard-Surface Irrig",
1153
+ soils: "Sandy silt loam",
1154
+ south_land: "Interstate 84",
1155
+ state: 38,
1156
+ status: "SAVED",
1157
+ street_or_road_name: "Boardman Road",
1158
+ taxes: [
1159
+ {
1160
+ _id: "54b5aba63465640002110100",
1161
+ tax_parcel_no: "RP38N02W224800A",
1162
+ assessed_value_land_only: {
1163
+ cents: 8683100,
1164
+ currency_iso: "USD"
1165
+ },
1166
+ assessed_value_improvements_only: {
1167
+ cents: 3151400,
1168
+ currency_iso: "USD"
1169
+ },
1170
+ assessed_value: {
1171
+ cents: 11834500,
1172
+ currency_iso: "USD"
1173
+ },
1174
+ RET: {
1175
+ cents: 191216,
1176
+ currency_iso: "USD"
1177
+ },
1178
+ numofunits: 160,
1179
+ updated_at: "2015-01-13T23:35:02.442Z",
1180
+ created_at: "2015-01-13T23:35:02.442Z"
1181
+ },
1182
+ {
1183
+ _id: "54b5aba63465640002120100",
1184
+ tax_parcel_no: "RP38N02W277800A",
1185
+ assessed_value_land_only: {
1186
+ cents: 1702200,
1187
+ currency_iso: "USD"
1188
+ },
1189
+ assessed_value_improvements_only: {
1190
+ cents: 0,
1191
+ currency_iso: "USD"
1192
+ },
1193
+ assessed_value: {
1194
+ cents: 1702200,
1195
+ currency_iso: "USD"
1196
+ },
1197
+ RET: {
1198
+ cents: 23416,
1199
+ currency_iso: "USD"
1200
+ },
1201
+ numofunits: 34,
1202
+ updated_at: "2015-01-13T23:35:02.442Z",
1203
+ created_at: "2015-01-13T23:35:02.442Z"
1204
+ },
1205
+ {
1206
+ _id: "54b5aba63465640002130100",
1207
+ tax_parcel_no: "RP38N02W247800A",
1208
+ assessed_value_land_only: {
1209
+ cents: 1592200,
1210
+ currency_iso: "USD"
1211
+ },
1212
+ assessed_value_improvements_only: {
1213
+ cents: 0,
1214
+ currency_iso: "USD"
1215
+ },
1216
+ assessed_value: {
1217
+ cents: 1592200,
1218
+ currency_iso: "USD"
1219
+ },
1220
+ RET: {
1221
+ cents: 21904,
1222
+ currency_iso: "USD"
1223
+ },
1224
+ numofunits: 40,
1225
+ updated_at: "2015-01-13T23:35:02.442Z",
1226
+ created_at: "2015-01-13T23:35:02.442Z"
1227
+ }
1228
+ ],
1229
+ topography: "0-3%",
1230
+ total_RET: "2365.36",
1231
+ total_assessed_value: "151289.00",
1232
+ total_expenses: 2365.36,
1233
+ total_imprv_budget: {
1234
+ cents: 0,
1235
+ currency_iso: "USD"
1236
+ },
1237
+ townshipINT: 4,
1238
+ type_of_lease: "Existing lease",
1239
+ under_purchase_agr: "No",
1240
+ listed_for_sale: "No",
1241
+ unit: "Acre",
1242
+ updated_at: "2014-12-16T18:27:04Z",
1243
+ utilities: [
1244
+ {
1245
+ _id: "54b5aba63465640002100100",
1246
+ description: "Electricity",
1247
+ availability: "Existing Hookup",
1248
+ provider: "PG&E",
1249
+ comments: "Three-phase power to pump station"
1250
+ }
1251
+ ],
1252
+ validentification: "Jenn Nolasco\nRuby Miles Stroschein",
1253
+ valreportdate: "2015-01-13T00:00:00Z",
1254
+ valuationvalues: [
1255
+ "Market Value (FIRREA): Market value means the most probable price which a property should bring in a competitive and open market under all conditions requisite to a fair sale, the buyer and seller each acting prudently and knowledgeably, and assuming the price is not affected by undue stimulus. Implicit in this definition is the consummation of a sale as of a specified date and the passing of title from seller to buyer under conditions whereby: (1) Buyer and seller are typically motivated; (2) Both parties are well informed or well advised, and acting in what they consider their own best interests; (3) A reasonable time is allowed for exposure in the open market; (4) Payment is made in terms of cash in U.S. dollars or in terms of financial arrangements comparable thereto; and (5) The price represents the normal consideration for the property sold unaffected by special or creative financing or sales concessions granted by anyone associated with the sale. (12 C.F.R. Part 34.42(g); 55 Federal Register 34696, August 24, 1990, as amended at 57 Federal Register 12202, April 9, 1992; 59 Federal Register 29499, June 7, 1994)"
1256
+ ],
1257
+ verification_of_water_rights: "Verified from Oregon State Water Resources",
1258
+ water_rights_comment: "Old water right from Columbia River",
1259
+ waterdistributions: [
1260
+ {
1261
+ _id: "54b5aba634656400020f0100",
1262
+ waterdistrEq: "Center Pivot",
1263
+ manufacturer: "Valley",
1264
+ brand: "Valley",
1265
+ yearManuf: 1995,
1266
+ condition: "Good - Well maintained, near new, or recently refurbished",
1267
+ eqType: "5000",
1268
+ serialNo: "5615288NO000",
1269
+ descr: "5 Tower, 550' 300 HP Johnson Pump, US Motor",
1270
+ installDate: "1995-01-01T00:00:00Z",
1271
+ testedBy: "Erickson",
1272
+ remainingEcLife: 20,
1273
+ irrAcres: 160,
1274
+ cornerIrr: "No"
1275
+ }
1276
+ ],
1277
+ waterrights: [
1278
+ {
1279
+ _id: "54b5aba634656400020e0100",
1280
+ waterRight: "Right",
1281
+ waterSrc: "Surface",
1282
+ enfPriorityDate: "1901-01-01T00:00:00Z",
1283
+ purpose: "Irrigation",
1284
+ usagePeriod: "January to December",
1285
+ waterrightNum: "5066655",
1286
+ recordOwner: "Henry Oliver",
1287
+ srcName: "Columbia River",
1288
+ diversionMeans: "Pump",
1289
+ priorityDate: "1901-01-01T00:00:00Z",
1290
+ numIrrAcres: 234,
1291
+ flowRateType: "CFS",
1292
+ maxFlow: 50,
1293
+ annVolume: 936,
1294
+ right: "Primary"
1295
+ }
1296
+ ],
1297
+ websoilrep_uploaded: "No",
1298
+ west_land: "Nature Conservency",
1299
+ wetlands: "No",
1300
+ year_of_assessment: 2014,
1301
+ year_of_real_estate_taxes: 2014,
1302
+ zip_code: 97818
1303
+ }
1304
+ end
1305
+
1306
+
1307
+ def self.get_eval_comps
1308
+ eval_comps = [{},{},{},{}]
1309
+ end
1310
+
1311
+
1312
+ def self.improv_array # used to test the method that flips this array
1313
+ a = [
1314
+ {
1315
+ _id: "5489b51f33363900027b0000",
1316
+ improvtype: "Shop",
1317
+ unitsize: 2000,
1318
+ unitdescr: "Sq. Ft.",
1319
+ effage: 2,
1320
+ depval: {
1321
+ cents: 3500750,
1322
+ currency_iso: "USD"
1323
+ },
1324
+ foundation: "Poured Concrete",
1325
+ constrclass: "Class D",
1326
+ floor: "Concrete",
1327
+ qualityconstr: "Average",
1328
+ condition: "Good",
1329
+ yearbuilt: 2010,
1330
+ totalecoage: 40,
1331
+ rplccost: {
1332
+ cents: 1850,
1333
+ currency_iso: "USD"
1334
+ },
1335
+ rplccostsrc: "Marshall & Swift",
1336
+ deffmaintenance: {
1337
+ cents: 15000,
1338
+ currency_iso: "USD"
1339
+ },
1340
+ fnctldeprication: 0,
1341
+ extdeprication: 0
1342
+ },
1343
+ {
1344
+ _id: "5489b51f33363900027c0000",
1345
+ improvtype: "Granary",
1346
+ unitsize: 10000,
1347
+ unitdescr: "Bushels",
1348
+ effage: 20,
1349
+ depval: {
1350
+ cents: 1500000,
1351
+ currency_iso: "USD"
1352
+ },
1353
+ foundation: "Poured Concrete",
1354
+ constrclass: "Class S",
1355
+ floor: "Concrete",
1356
+ qualityconstr: "Average",
1357
+ condition: "Average",
1358
+ yearbuilt: 1990,
1359
+ totalecoage: 40,
1360
+ rplccost: {
1361
+ cents: 400,
1362
+ currency_iso: "USD"
1363
+ },
1364
+ rplccostsrc: "Market",
1365
+ deffmaintenance: {
1366
+ cents: 0,
1367
+ currency_iso: "USD"
1368
+ },
1369
+ fnctldeprication: 25,
1370
+ extdeprication: 0
1371
+ },
1372
+ {
1373
+ _id: "5489b51f33363900027d0000",
1374
+ improvtype: "Apple Storage Building",
1375
+ unitsize: 25000,
1376
+ unitdescr: "Sq. Ft.",
1377
+ effage: 10,
1378
+ depval: {
1379
+ cents: 45008100,
1380
+ currency_iso: "USD"
1381
+ },
1382
+ foundation: "Poured Concrete",
1383
+ constrclass: "Class S",
1384
+ floor: "Concrete",
1385
+ qualityconstr: "Good",
1386
+ condition: "Average",
1387
+ yearbuilt: 2000,
1388
+ totalecoage: 40,
1389
+ rplccost: {
1390
+ cents: 3250,
1391
+ currency_iso: "USD"
1392
+ },
1393
+ rplccostsrc: "MS",
1394
+ deffmaintenance: {
1395
+ cents: 11470000,
1396
+ currency_iso: "USD"
1397
+ },
1398
+ fnctldeprication: 14,
1399
+ extdeprication: 0
1400
+ }
1401
+ ]
1402
+ end
1403
+
1404
+ end