From 1d9ce64bed2e031bb2b41a5b6782b0e7d8d2d0c7 Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Thu, 1 Jun 2017 11:30:25 -0400 Subject: [PATCH 01/31] Initial set up budget simulator app. Create routes for the same. Set up a basic view and html template to display a div for the graph and a div for the tabs with the tables. --- blocnote/apps/budgetSimulator/__init__.py | 0 blocnote/apps/budgetSimulator/admin.py | 3 + blocnote/apps/budgetSimulator/apps.py | 5 + .../budgetSimulator/migrations/__init__.py | 0 blocnote/apps/budgetSimulator/models.py | 3 + .../templates/budgetSimulator/index.html | 99 +++++++++++++++++++ blocnote/apps/budgetSimulator/tests.py | 3 + blocnote/apps/budgetSimulator/urls.py | 8 ++ blocnote/apps/budgetSimulator/views.py | 14 +++ blocnote/settings.py | 1 + blocnote/urls.py | 1 + 11 files changed, 137 insertions(+) create mode 100644 blocnote/apps/budgetSimulator/__init__.py create mode 100644 blocnote/apps/budgetSimulator/admin.py create mode 100644 blocnote/apps/budgetSimulator/apps.py create mode 100644 blocnote/apps/budgetSimulator/migrations/__init__.py create mode 100644 blocnote/apps/budgetSimulator/models.py create mode 100644 blocnote/apps/budgetSimulator/templates/budgetSimulator/index.html create mode 100644 blocnote/apps/budgetSimulator/tests.py create mode 100644 blocnote/apps/budgetSimulator/urls.py create mode 100644 blocnote/apps/budgetSimulator/views.py diff --git a/blocnote/apps/budgetSimulator/__init__.py b/blocnote/apps/budgetSimulator/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/blocnote/apps/budgetSimulator/admin.py b/blocnote/apps/budgetSimulator/admin.py new file mode 100644 index 0000000..8c38f3f --- /dev/null +++ b/blocnote/apps/budgetSimulator/admin.py @@ -0,0 +1,3 @@ +from django.contrib import admin + +# Register your models here. diff --git a/blocnote/apps/budgetSimulator/apps.py b/blocnote/apps/budgetSimulator/apps.py new file mode 100644 index 0000000..d13b03b --- /dev/null +++ b/blocnote/apps/budgetSimulator/apps.py @@ -0,0 +1,5 @@ +from django.apps import AppConfig + + +class BudgetsimulatorConfig(AppConfig): + name = 'budgetSimulator' diff --git a/blocnote/apps/budgetSimulator/migrations/__init__.py b/blocnote/apps/budgetSimulator/migrations/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/blocnote/apps/budgetSimulator/models.py b/blocnote/apps/budgetSimulator/models.py new file mode 100644 index 0000000..71a8362 --- /dev/null +++ b/blocnote/apps/budgetSimulator/models.py @@ -0,0 +1,3 @@ +from django.db import models + +# Create your models here. diff --git a/blocnote/apps/budgetSimulator/templates/budgetSimulator/index.html b/blocnote/apps/budgetSimulator/templates/budgetSimulator/index.html new file mode 100644 index 0000000..58bca79 --- /dev/null +++ b/blocnote/apps/budgetSimulator/templates/budgetSimulator/index.html @@ -0,0 +1,99 @@ +{% extends 'base.html' %} +{% load staticfiles %} +{% block content %} +
+

Budget Simulator

+ Building id: {{ building_id }} +
+ Graph here. +
+ +
+
+
+
+ Budget without downpayment + + + + + + + + + + + + + +
Savings10%20%30%40%50%
+
+
+
+
+ Budget with downpayment but loan used first + + + + + + + + + + + + + +
Savings10%20%30%40%50%
+
+
+
+
+ Max budget with downpayment used first + + + + + + + + + + + + + +
Savings10%20%30%40%50%
+
+
+
+
+ TBD +
+
+
+
+
+{% endblock %} +{% block scripts %} + +{% endblock %} diff --git a/blocnote/apps/budgetSimulator/tests.py b/blocnote/apps/budgetSimulator/tests.py new file mode 100644 index 0000000..7ce503c --- /dev/null +++ b/blocnote/apps/budgetSimulator/tests.py @@ -0,0 +1,3 @@ +from django.test import TestCase + +# Create your tests here. diff --git a/blocnote/apps/budgetSimulator/urls.py b/blocnote/apps/budgetSimulator/urls.py new file mode 100644 index 0000000..0e4a968 --- /dev/null +++ b/blocnote/apps/budgetSimulator/urls.py @@ -0,0 +1,8 @@ +from django.conf.urls import url + +from . import views + +urlpatterns = [ + url(r'^$', views.Index.as_view(), name='index'), +] + diff --git a/blocnote/apps/budgetSimulator/views.py b/blocnote/apps/budgetSimulator/views.py new file mode 100644 index 0000000..f623259 --- /dev/null +++ b/blocnote/apps/budgetSimulator/views.py @@ -0,0 +1,14 @@ +"""Define the endpoints for budget simulator.""" +from django.shortcuts import render +from django.views import View + + +class Index(View): + """Fetch the inputs, calculate the budget and display the graph and tables.""" + + def get(self, request, building_id): + """HTTP GET request.""" + context = { + 'building_id': building_id, + } + return render(request, 'budgetSimulator/index.html', context=context) diff --git a/blocnote/settings.py b/blocnote/settings.py index ad0f38b..931fb6d 100644 --- a/blocnote/settings.py +++ b/blocnote/settings.py @@ -43,6 +43,7 @@ INSTALLED_APPS = [ 'django.contrib.staticfiles', 'blocnote.apps.financialInputs', 'blocnote.apps.preliminaryFinance', + 'blocnote.apps.budgetSimulator', ] MIDDLEWARE = [ diff --git a/blocnote/urls.py b/blocnote/urls.py index d8c2845..f97d2ea 100644 --- a/blocnote/urls.py +++ b/blocnote/urls.py @@ -20,5 +20,6 @@ urlpatterns = [ url('', admin.site.urls), url(r'^buildings/(?P[0-9]+)/preliminary-finance/', include('blocnote.apps.preliminaryFinance.urls')), url(r'^buildings/(?P[0-9]+)/financial-inputs/', include('blocnote.apps.financialInputs.urls')), + url(r'^buildings/(?P[0-9]+)/budget/', include('blocnote.apps.budgetSimulator.urls')), url(r'^admin/', admin.site.urls), ] -- GitLab From 259157a3f9699bd7c2738fa646b794b85c110d76 Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Mon, 5 Jun 2017 18:15:48 -0400 Subject: [PATCH 02/31] Create budget-date route for budget simulator that fetches all relevant data from the database and calls bpfin function to simulate the budget and then passes the result to the frontend to display graph and tables. Write tests for budget simulator to test out all the functions and views. Modify financial inputs to use new code for bills overview. Modify landing page to include budget simulator in the table. Modify preliminary analysis to use the update bpfin code for scenario calculations and displaying the project economics table and the savings graph. --- .../financialInputs_views_testdata.json | 10387 ++++++++++++++++ .../templates/budgetSimulator/index.html | 61 +- blocnote/apps/budgetSimulator/tests.py | 822 +- blocnote/apps/budgetSimulator/urls.py | 2 + blocnote/apps/budgetSimulator/views.py | 338 + blocnote/apps/financialInputs/views.py | 5 +- .../templates/landingPage/index.html | 18 + blocnote/apps/preliminaryFinance/views.py | 169 +- 8 files changed, 11680 insertions(+), 122 deletions(-) create mode 100644 blocnote/apps/budgetSimulator/fixtures/financialInputs_views_testdata.json diff --git a/blocnote/apps/budgetSimulator/fixtures/financialInputs_views_testdata.json b/blocnote/apps/budgetSimulator/fixtures/financialInputs_views_testdata.json new file mode 100644 index 0000000..b6e8d61 --- /dev/null +++ b/blocnote/apps/budgetSimulator/fixtures/financialInputs_views_testdata.json @@ -0,0 +1,10387 @@ +[ +{ + "model": "financialInputs.fund", + "pk": 1, + "fields": { + "Name": "Small Commercial Fund" + } +}, +{ + "model": "financialInputs.fund", + "pk": 2, + "fields": { + "Name": "Bronx Healthy Buildings Fund" + } +}, +{ + "model": "financialInputs.financingoverview", + "pk": 2, + "fields": { + "building_id": 509, + "fund": 1, + "required_noi_dscr": "1.15", + "requrired_cash_dscr": "1.15", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "25", + "analysis_date": "2017-05-05", + "anticipated_construction_start_date": "2017-07-01", + "anticipated_commissioning_date": "2017-09-01", + "anticipated_construction_period": "8" + } +}, +{ + "model": "financialInputs.financingoverview", + "pk": 32, + "fields": { + "building_id": 187896, + "fund": 2, + "required_noi_dscr": "0.00", + "requrired_cash_dscr": "0.00", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "25", + "analysis_date": "2017-05-09", + "anticipated_construction_start_date": "2017-07-01", + "anticipated_commissioning_date": "2017-08-01", + "anticipated_construction_period": "5" + } +}, +{ + "model": "financialInputs.financingoverview", + "pk": 33, + "fields": { + "building_id": 4567, + "fund": 2, + "required_noi_dscr": "0.00", + "requrired_cash_dscr": "0.00", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "20", + "analysis_date": "2017-05-09", + "anticipated_construction_start_date": "2017-06-01", + "anticipated_commissioning_date": "2017-07-01", + "anticipated_construction_period": "4" + } +}, +{ + "model": "financialInputs.financingoverview", + "pk": 34, + "fields": { + "building_id": 2222, + "fund": 1, + "required_noi_dscr": "0.00", + "requrired_cash_dscr": "0.00", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "20", + "analysis_date": "2017-01-01", + "anticipated_construction_start_date": "2017-01-01", + "anticipated_commissioning_date": "2017-03-01", + "anticipated_construction_period": "8" + } +}, +{ + "model": "financialInputs.financingoverview", + "pk": 35, + "fields": { + "building_id": 2212, + "fund": 1, + "required_noi_dscr": "0.00", + "requrired_cash_dscr": "0.00", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "20", + "analysis_date": "2017-01-01", + "anticipated_construction_start_date": "2017-01-01", + "anticipated_commissioning_date": "2017-02-01", + "anticipated_construction_period": "4" + } +}, +{ + "model": "financialInputs.financingoverview", + "pk": 36, + "fields": { + "building_id": 2102, + "fund": 2, + "required_noi_dscr": "0.00", + "requrired_cash_dscr": "0.00", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "10", + "analysis_date": "2002-01-01", + "anticipated_construction_start_date": "2017-01-01", + "anticipated_commissioning_date": "2017-04-01", + "anticipated_construction_period": "2" + } +}, +{ + "model": "financialInputs.financingoverview", + "pk": 39, + "fields": { + "building_id": 457, + "fund": 1, + "required_noi_dscr": "0.00", + "requrired_cash_dscr": "0.00", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "25", + "analysis_date": "2008-01-01", + "anticipated_construction_start_date": "2017-08-01", + "anticipated_commissioning_date": "2017-09-01", + "anticipated_construction_period": "4" + } +}, +{ + "model": "financialInputs.financingoverview", + "pk": 40, + "fields": { + "building_id": 498, + "fund": 1, + "required_noi_dscr": "0.00", + "requrired_cash_dscr": "0.00", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "20", + "analysis_date": "2017-05-12", + "anticipated_construction_start_date": "2017-07-01", + "anticipated_commissioning_date": "2017-08-01", + "anticipated_construction_period": "4" + } +}, +{ + "model": "financialInputs.financingoverview", + "pk": 42, + "fields": { + "building_id": 488, + "fund": 1, + "required_noi_dscr": "1.15", + "requrired_cash_dscr": "1.20", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "25", + "analysis_date": "2017-05-16", + "anticipated_construction_start_date": "2017-06-01", + "anticipated_commissioning_date": "2017-07-01", + "anticipated_construction_period": "4" + } +}, +{ + "model": "financialInputs.financingoverview", + "pk": 43, + "fields": { + "building_id": 297, + "fund": 1, + "required_noi_dscr": "0.00", + "requrired_cash_dscr": "0.00", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "25", + "analysis_date": "2017-05-16", + "anticipated_construction_start_date": "2017-06-01", + "anticipated_commissioning_date": "2017-07-01", + "anticipated_construction_period": "4" + } +}, +{ + "model": "financialInputs.financingoverview", + "pk": 60, + "fields": { + "building_id": 8753, + "fund": 1, + "required_noi_dscr": "0.00", + "requrired_cash_dscr": "0.00", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "25", + "analysis_date": "2017-05-22", + "anticipated_construction_start_date": "2017-07-01", + "anticipated_commissioning_date": "2017-08-01", + "anticipated_construction_period": "4" + } +}, +{ + "model": "financialInputs.financingoverview", + "pk": 89, + "fields": { + "building_id": 277, + "fund": 1, + "required_noi_dscr": "1.15", + "requrired_cash_dscr": "1.15", + "pro_forma_start_date": "2015-03-11", + "pro_forma_duration": "25", + "analysis_date": "2017-05-30", + "anticipated_construction_start_date": "2017-07-01", + "anticipated_commissioning_date": "2017-08-01", + "anticipated_construction_period": "4" + } +}, +{ + "model": "financialInputs.financingoverview", + "pk": 91, + "fields": { + "building_id": 28, + "fund": 1, + "required_noi_dscr": "0.00", + "requrired_cash_dscr": "0.00", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "25", + "analysis_date": "2017-05-24", + "anticipated_construction_start_date": "2017-06-01", + "anticipated_commissioning_date": "2017-07-01", + "anticipated_construction_period": "4" + } +}, +{ + "model": "financialInputs.financingoverview", + "pk": 92, + "fields": { + "building_id": 207, + "fund": 1, + "required_noi_dscr": "1.15", + "requrired_cash_dscr": "1.15", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "6", + "analysis_date": "2017-05-30", + "anticipated_construction_start_date": "2017-06-01", + "anticipated_commissioning_date": "2017-07-05", + "anticipated_construction_period": "6" + } +}, +{ + "model": "financialInputs.financingoverview", + "pk": 93, + "fields": { + "building_id": 5466, + "fund": 1, + "required_noi_dscr": "0.00", + "requrired_cash_dscr": "0.00", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "25", + "analysis_date": "2017-06-01", + "anticipated_construction_start_date": "2017-07-01", + "anticipated_commissioning_date": "2017-08-01", + "anticipated_construction_period": "4" + } +}, +{ + "model": "financialInputs.financingoverview", + "pk": 94, + "fields": { + "building_id": 289, + "fund": 1, + "required_noi_dscr": "0.00", + "requrired_cash_dscr": "0.00", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "25", + "analysis_date": "2017-05-18", + "anticipated_construction_start_date": "2017-05-03", + "anticipated_commissioning_date": "2017-07-07", + "anticipated_construction_period": "100" + } +}, +{ + "model": "financialInputs.financingoverview", + "pk": 95, + "fields": { + "building_id": 2001, + "fund": 1, + "required_noi_dscr": "0.00", + "requrired_cash_dscr": "0.00", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "25", + "analysis_date": "2017-06-05", + "anticipated_construction_start_date": "2017-07-01", + "anticipated_commissioning_date": "2017-08-01", + "anticipated_construction_period": "4" + } +}, +{ + "model": "financialInputs.financingoverview", + "pk": 96, + "fields": { + "building_id": 2002, + "fund": 1, + "required_noi_dscr": "1.15", + "requrired_cash_dscr": "1.15", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "25", + "analysis_date": "2017-06-05", + "anticipated_construction_start_date": "2017-07-01", + "anticipated_commissioning_date": "2017-08-01", + "anticipated_construction_period": "4" + } +}, +{ + "model": "financialInputs.financingoverview", + "pk": 97, + "fields": { + "building_id": 2003, + "fund": 1, + "required_noi_dscr": "1.15", + "requrired_cash_dscr": "1.15", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "25", + "analysis_date": "2017-06-05", + "anticipated_construction_start_date": "2017-07-01", + "anticipated_commissioning_date": "2017-08-01", + "anticipated_construction_period": "4" + } +}, +{ + "model": "financialInputs.bills", + "pk": 24, + "fields": { + "building_id": 457, + "date_from": "2016-11-28", + "date_to": "2016-12-28", + "utility_type": "electricity", + "usage": "117.88", + "charge": "56.01" + } +}, +{ + "model": "financialInputs.bills", + "pk": 25, + "fields": { + "building_id": 457, + "date_from": "2016-10-26", + "date_to": "2016-11-28", + "utility_type": "electricity", + "usage": "91.93", + "charge": "39.62" + } +}, +{ + "model": "financialInputs.bills", + "pk": 26, + "fields": { + "building_id": 457, + "date_from": "2016-09-26", + "date_to": "2016-10-26", + "utility_type": "electricity", + "usage": "89.07", + "charge": "67.42" + } +}, +{ + "model": "financialInputs.bills", + "pk": 27, + "fields": { + "building_id": 457, + "date_from": "2016-08-25", + "date_to": "2016-09-26", + "utility_type": "electricity", + "usage": "98.17", + "charge": "63.60" + } +}, +{ + "model": "financialInputs.bills", + "pk": 28, + "fields": { + "building_id": 457, + "date_from": "2016-07-27", + "date_to": "2016-08-25", + "utility_type": "electricity", + "usage": "86.88", + "charge": "57.25" + } +}, +{ + "model": "financialInputs.bills", + "pk": 29, + "fields": { + "building_id": 457, + "date_from": "2016-06-27", + "date_to": "2016-07-27", + "utility_type": "electricity", + "usage": "87.05", + "charge": "56.21" + } +}, +{ + "model": "financialInputs.bills", + "pk": 30, + "fields": { + "building_id": 457, + "date_from": "2016-05-26", + "date_to": "2016-06-27", + "utility_type": "electricity", + "usage": "101.05", + "charge": "71.66" + } +}, +{ + "model": "financialInputs.bills", + "pk": 31, + "fields": { + "building_id": 457, + "date_from": "2016-04-27", + "date_to": "2016-05-26", + "utility_type": "electricity", + "usage": "88.19", + "charge": "68.28" + } +}, +{ + "model": "financialInputs.bills", + "pk": 32, + "fields": { + "building_id": 457, + "date_from": "2016-03-29", + "date_to": "2016-04-27", + "utility_type": "electricity", + "usage": "90.05", + "charge": "63.57" + } +}, +{ + "model": "financialInputs.bills", + "pk": 33, + "fields": { + "building_id": 457, + "date_from": "2016-02-29", + "date_to": "2016-03-29", + "utility_type": "electricity", + "usage": "104.19", + "charge": "68.12" + } +}, +{ + "model": "financialInputs.bills", + "pk": 34, + "fields": { + "building_id": 457, + "date_from": "2016-01-28", + "date_to": "2016-02-29", + "utility_type": "electricity", + "usage": "98.13", + "charge": "71.73" + } +}, +{ + "model": "financialInputs.bills", + "pk": 35, + "fields": { + "building_id": 457, + "date_from": "2015-12-29", + "date_to": "2016-01-28", + "utility_type": "electricity", + "usage": "182.55", + "charge": "145.44" + } +}, +{ + "model": "financialInputs.bills", + "pk": 36, + "fields": { + "building_id": 457, + "date_from": "2015-11-25", + "date_to": "2015-12-29", + "utility_type": "electricity", + "usage": "208.85", + "charge": "172.37" + } +}, +{ + "model": "financialInputs.bills", + "pk": 37, + "fields": { + "building_id": 457, + "date_from": "2015-10-27", + "date_to": "2015-11-25", + "utility_type": "electricity", + "usage": "144.06", + "charge": "130.65" + } +}, +{ + "model": "financialInputs.bills", + "pk": 38, + "fields": { + "building_id": 457, + "date_from": "2015-09-25", + "date_to": "2015-10-27", + "utility_type": "electricity", + "usage": "136.16", + "charge": "136.10" + } +}, +{ + "model": "financialInputs.bills", + "pk": 39, + "fields": { + "building_id": 457, + "date_from": "2015-08-26", + "date_to": "2015-09-25", + "utility_type": "electricity", + "usage": "162.13", + "charge": "137.14" + } +}, +{ + "model": "financialInputs.bills", + "pk": 40, + "fields": { + "building_id": 457, + "date_from": "2015-07-28", + "date_to": "2015-08-26", + "utility_type": "electricity", + "usage": "154.95", + "charge": "126.16" + } +}, +{ + "model": "financialInputs.bills", + "pk": 41, + "fields": { + "building_id": 457, + "date_from": "2015-06-26", + "date_to": "2015-07-28", + "utility_type": "electricity", + "usage": "179.64", + "charge": "152.56" + } +}, +{ + "model": "financialInputs.bills", + "pk": 42, + "fields": { + "building_id": 457, + "date_from": "2015-05-28", + "date_to": "2015-06-26", + "utility_type": "electricity", + "usage": "189.02", + "charge": "169.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 43, + "fields": { + "building_id": 457, + "date_from": "2015-04-28", + "date_to": "2015-05-28", + "utility_type": "electricity", + "usage": "168.92", + "charge": "196.46" + } +}, +{ + "model": "financialInputs.bills", + "pk": 44, + "fields": { + "building_id": 457, + "date_from": "2015-03-30", + "date_to": "2015-04-28", + "utility_type": "electricity", + "usage": "190.80", + "charge": "163.49" + } +}, +{ + "model": "financialInputs.bills", + "pk": 45, + "fields": { + "building_id": 457, + "date_from": "2015-02-27", + "date_to": "2015-03-30", + "utility_type": "electricity", + "usage": "189.42", + "charge": "163.88" + } +}, +{ + "model": "financialInputs.bills", + "pk": 46, + "fields": { + "building_id": 457, + "date_from": "2015-01-28", + "date_to": "2015-02-27", + "utility_type": "electricity", + "usage": "214.66", + "charge": "172.33" + } +}, +{ + "model": "financialInputs.bills", + "pk": 47, + "fields": { + "building_id": 457, + "date_from": "2016-11-22", + "date_to": "2016-12-16", + "utility_type": "gas", + "usage": "322.00", + "charge": "304.79" + } +}, +{ + "model": "financialInputs.bills", + "pk": 48, + "fields": { + "building_id": 457, + "date_from": "2016-10-18", + "date_to": "2016-11-22", + "utility_type": "gas", + "usage": "470.00", + "charge": "456.54" + } +}, +{ + "model": "financialInputs.bills", + "pk": 49, + "fields": { + "building_id": 457, + "date_from": "2016-09-30", + "date_to": "2016-10-18", + "utility_type": "gas", + "usage": "241.00", + "charge": "232.75" + } +}, +{ + "model": "financialInputs.bills", + "pk": 50, + "fields": { + "building_id": 457, + "date_from": "2016-09-19", + "date_to": "2016-09-30", + "utility_type": "gas", + "usage": "148.00", + "charge": "372.16" + } +}, +{ + "model": "financialInputs.bills", + "pk": 51, + "fields": { + "building_id": 457, + "date_from": "2016-08-18", + "date_to": "2016-09-19", + "utility_type": "gas", + "usage": "429.00", + "charge": "192.29" + } +}, +{ + "model": "financialInputs.bills", + "pk": 52, + "fields": { + "building_id": 457, + "date_from": "2016-07-20", + "date_to": "2016-08-18", + "utility_type": "gas", + "usage": "389.00", + "charge": "379.36" + } +}, +{ + "model": "financialInputs.bills", + "pk": 53, + "fields": { + "building_id": 457, + "date_from": "2016-06-20", + "date_to": "2016-07-20", + "utility_type": "gas", + "usage": "402.00", + "charge": "385.14" + } +}, +{ + "model": "financialInputs.bills", + "pk": 54, + "fields": { + "building_id": 457, + "date_from": "2016-05-18", + "date_to": "2016-06-20", + "utility_type": "gas", + "usage": "443.00", + "charge": "400.74" + } +}, +{ + "model": "financialInputs.bills", + "pk": 55, + "fields": { + "building_id": 457, + "date_from": "2016-04-19", + "date_to": "2016-05-18", + "utility_type": "gas", + "usage": "389.00", + "charge": "343.49" + } +}, +{ + "model": "financialInputs.bills", + "pk": 56, + "fields": { + "building_id": 457, + "date_from": "2016-03-18", + "date_to": "2016-04-19", + "utility_type": "gas", + "usage": "429.00", + "charge": "377.99" + } +}, +{ + "model": "financialInputs.bills", + "pk": 57, + "fields": { + "building_id": 457, + "date_from": "2016-02-17", + "date_to": "2016-03-18", + "utility_type": "gas", + "usage": "402.00", + "charge": "378.44" + } +}, +{ + "model": "financialInputs.bills", + "pk": 58, + "fields": { + "building_id": 457, + "date_from": "2016-01-19", + "date_to": "2016-02-17", + "utility_type": "gas", + "usage": "389.00", + "charge": "361.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 59, + "fields": { + "building_id": 457, + "date_from": "2015-12-16", + "date_to": "2016-01-19", + "utility_type": "gas", + "usage": "456.00", + "charge": "454.84" + } +}, +{ + "model": "financialInputs.bills", + "pk": 60, + "fields": { + "building_id": 457, + "date_from": "2015-11-16", + "date_to": "2015-12-16", + "utility_type": "gas", + "usage": "402.00", + "charge": "397.33" + } +}, +{ + "model": "financialInputs.bills", + "pk": 61, + "fields": { + "building_id": 457, + "date_from": "2015-10-16", + "date_to": "2015-11-16", + "utility_type": "gas", + "usage": "416.00", + "charge": "401.29" + } +}, +{ + "model": "financialInputs.bills", + "pk": 62, + "fields": { + "building_id": 457, + "date_from": "2015-09-19", + "date_to": "2015-10-16", + "utility_type": "gas", + "usage": "362.00", + "charge": "354.76" + } +}, +{ + "model": "financialInputs.bills", + "pk": 63, + "fields": { + "building_id": 457, + "date_from": "2015-08-18", + "date_to": "2015-09-19", + "utility_type": "gas", + "usage": "429.00", + "charge": "412.32" + } +}, +{ + "model": "financialInputs.bills", + "pk": 64, + "fields": { + "building_id": 457, + "date_from": "2015-07-20", + "date_to": "2015-08-18", + "utility_type": "gas", + "usage": "389.00", + "charge": "378.53" + } +}, +{ + "model": "financialInputs.bills", + "pk": 65, + "fields": { + "building_id": 457, + "date_from": "2015-06-18", + "date_to": "2015-07-20", + "utility_type": "gas", + "usage": "429.00", + "charge": "414.33" + } +}, +{ + "model": "financialInputs.bills", + "pk": 66, + "fields": { + "building_id": 457, + "date_from": "2015-05-19", + "date_to": "2015-06-18", + "utility_type": "gas", + "usage": "402.00", + "charge": "390.65" + } +}, +{ + "model": "financialInputs.bills", + "pk": 67, + "fields": { + "building_id": 457, + "date_from": "2016-11-28", + "date_to": "2016-12-28", + "utility_type": "oil", + "usage": "1200.00", + "charge": "3100.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 68, + "fields": { + "building_id": 457, + "date_from": "2016-10-26", + "date_to": "2016-11-28", + "utility_type": "oil", + "usage": "700.00", + "charge": "2400.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 69, + "fields": { + "building_id": 457, + "date_from": "2016-09-26", + "date_to": "2016-10-26", + "utility_type": "oil", + "usage": "1000.00", + "charge": "3380.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 70, + "fields": { + "building_id": 457, + "date_from": "2016-08-25", + "date_to": "2016-09-26", + "utility_type": "oil", + "usage": "500.00", + "charge": "1850.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 71, + "fields": { + "building_id": 457, + "date_from": "2016-07-27", + "date_to": "2016-08-25", + "utility_type": "oil", + "usage": "800.00", + "charge": "3000.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 72, + "fields": { + "building_id": 457, + "date_from": "2016-06-27", + "date_to": "2016-07-27", + "utility_type": "oil", + "usage": "900.00", + "charge": "3200.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 73, + "fields": { + "building_id": 457, + "date_from": "2016-05-26", + "date_to": "2016-06-27", + "utility_type": "oil", + "usage": "1700.00", + "charge": "6700.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 74, + "fields": { + "building_id": 457, + "date_from": "2016-04-27", + "date_to": "2016-05-26", + "utility_type": "oil", + "usage": "1400.00", + "charge": "5300.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 75, + "fields": { + "building_id": 457, + "date_from": "2016-03-29", + "date_to": "2016-04-27", + "utility_type": "oil", + "usage": "1200.00", + "charge": "4850.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 76, + "fields": { + "building_id": 457, + "date_from": "2016-02-29", + "date_to": "2016-03-29", + "utility_type": "oil", + "usage": "1300.00", + "charge": "5130.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 77, + "fields": { + "building_id": 457, + "date_from": "2016-01-28", + "date_to": "2016-02-29", + "utility_type": "oil", + "usage": "1500.00", + "charge": "5700.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 78, + "fields": { + "building_id": 457, + "date_from": "2015-12-29", + "date_to": "2016-01-28", + "utility_type": "oil", + "usage": "1200.00", + "charge": "3120.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 79, + "fields": { + "building_id": 457, + "date_from": "2015-11-25", + "date_to": "2015-12-29", + "utility_type": "oil", + "usage": "750.00", + "charge": "2420.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 80, + "fields": { + "building_id": 457, + "date_from": "2015-10-27", + "date_to": "2015-11-25", + "utility_type": "oil", + "usage": "1050.00", + "charge": "3400.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 81, + "fields": { + "building_id": 457, + "date_from": "2015-09-25", + "date_to": "2015-10-27", + "utility_type": "oil", + "usage": "550.00", + "charge": "1870.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 82, + "fields": { + "building_id": 457, + "date_from": "2015-08-26", + "date_to": "2015-09-25", + "utility_type": "oil", + "usage": "850.00", + "charge": "3020.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 83, + "fields": { + "building_id": 457, + "date_from": "2015-07-28", + "date_to": "2015-08-26", + "utility_type": "oil", + "usage": "950.00", + "charge": "3220.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 84, + "fields": { + "building_id": 457, + "date_from": "2015-06-26", + "date_to": "2015-07-28", + "utility_type": "oil", + "usage": "1750.00", + "charge": "6720.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 85, + "fields": { + "building_id": 457, + "date_from": "2015-05-28", + "date_to": "2015-06-26", + "utility_type": "oil", + "usage": "1450.00", + "charge": "5320.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 86, + "fields": { + "building_id": 457, + "date_from": "2015-04-28", + "date_to": "2015-05-28", + "utility_type": "oil", + "usage": "1250.00", + "charge": "4870.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 87, + "fields": { + "building_id": 457, + "date_from": "2015-03-30", + "date_to": "2015-04-28", + "utility_type": "oil", + "usage": "1350.00", + "charge": "5150.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 88, + "fields": { + "building_id": 457, + "date_from": "2015-02-27", + "date_to": "2015-03-30", + "utility_type": "oil", + "usage": "1550.00", + "charge": "5720.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 89, + "fields": { + "building_id": 457, + "date_from": "2016-01-03", + "date_to": "2016-12-28", + "utility_type": "water", + "usage": "3500000.00", + "charge": "20000.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 90, + "fields": { + "building_id": 457, + "date_from": "2015-01-01", + "date_to": "2016-01-02", + "utility_type": "water", + "usage": "3600000.00", + "charge": "20500.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 91, + "fields": { + "building_id": 457, + "date_from": "2014-01-02", + "date_to": "2014-12-31", + "utility_type": "water", + "usage": "3300000.00", + "charge": "21000.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 92, + "fields": { + "building_id": 546, + "date_from": "2016-11-28", + "date_to": "2016-12-28", + "utility_type": "electricity", + "usage": "117.88", + "charge": "56.01" + } +}, +{ + "model": "financialInputs.bills", + "pk": 93, + "fields": { + "building_id": 546, + "date_from": "2016-10-26", + "date_to": "2016-11-28", + "utility_type": "electricity", + "usage": "91.93", + "charge": "39.62" + } +}, +{ + "model": "financialInputs.bills", + "pk": 94, + "fields": { + "building_id": 546, + "date_from": "2016-09-26", + "date_to": "2016-10-26", + "utility_type": "electricity", + "usage": "89.07", + "charge": "67.42" + } +}, +{ + "model": "financialInputs.bills", + "pk": 95, + "fields": { + "building_id": 546, + "date_from": "2016-08-25", + "date_to": "2016-09-26", + "utility_type": "electricity", + "usage": "98.17", + "charge": "63.60" + } +}, +{ + "model": "financialInputs.bills", + "pk": 96, + "fields": { + "building_id": 546, + "date_from": "2016-07-27", + "date_to": "2016-08-25", + "utility_type": "electricity", + "usage": "86.88", + "charge": "57.25" + } +}, +{ + "model": "financialInputs.bills", + "pk": 97, + "fields": { + "building_id": 546, + "date_from": "2016-06-27", + "date_to": "2016-07-27", + "utility_type": "electricity", + "usage": "87.05", + "charge": "56.21" + } +}, +{ + "model": "financialInputs.bills", + "pk": 98, + "fields": { + "building_id": 546, + "date_from": "2016-05-26", + "date_to": "2016-06-27", + "utility_type": "electricity", + "usage": "101.05", + "charge": "71.66" + } +}, +{ + "model": "financialInputs.bills", + "pk": 99, + "fields": { + "building_id": 546, + "date_from": "2016-04-27", + "date_to": "2016-05-26", + "utility_type": "electricity", + "usage": "88.19", + "charge": "68.28" + } +}, +{ + "model": "financialInputs.bills", + "pk": 100, + "fields": { + "building_id": 546, + "date_from": "2016-03-29", + "date_to": "2016-04-27", + "utility_type": "electricity", + "usage": "90.05", + "charge": "63.57" + } +}, +{ + "model": "financialInputs.bills", + "pk": 101, + "fields": { + "building_id": 546, + "date_from": "2016-02-29", + "date_to": "2016-03-29", + "utility_type": "electricity", + "usage": "104.19", + "charge": "68.12" + } +}, +{ + "model": "financialInputs.bills", + "pk": 102, + "fields": { + "building_id": 546, + "date_from": "2016-01-28", + "date_to": "2016-02-29", + "utility_type": "electricity", + "usage": "98.13", + "charge": "71.73" + } +}, +{ + "model": "financialInputs.bills", + "pk": 103, + "fields": { + "building_id": 546, + "date_from": "2015-12-29", + "date_to": "2016-01-28", + "utility_type": "electricity", + "usage": "182.55", + "charge": "145.44" + } +}, +{ + "model": "financialInputs.bills", + "pk": 104, + "fields": { + "building_id": 546, + "date_from": "2015-11-25", + "date_to": "2015-12-29", + "utility_type": "electricity", + "usage": "208.85", + "charge": "172.37" + } +}, +{ + "model": "financialInputs.bills", + "pk": 105, + "fields": { + "building_id": 546, + "date_from": "2015-10-27", + "date_to": "2015-11-25", + "utility_type": "electricity", + "usage": "144.06", + "charge": "130.65" + } +}, +{ + "model": "financialInputs.bills", + "pk": 106, + "fields": { + "building_id": 546, + "date_from": "2015-09-25", + "date_to": "2015-10-27", + "utility_type": "electricity", + "usage": "136.16", + "charge": "136.10" + } +}, +{ + "model": "financialInputs.bills", + "pk": 107, + "fields": { + "building_id": 546, + "date_from": "2015-08-26", + "date_to": "2015-09-25", + "utility_type": "electricity", + "usage": "162.13", + "charge": "137.14" + } +}, +{ + "model": "financialInputs.bills", + "pk": 108, + "fields": { + "building_id": 546, + "date_from": "2015-07-28", + "date_to": "2015-08-26", + "utility_type": "electricity", + "usage": "154.95", + "charge": "126.16" + } +}, +{ + "model": "financialInputs.bills", + "pk": 109, + "fields": { + "building_id": 546, + "date_from": "2015-06-26", + "date_to": "2015-07-28", + "utility_type": "electricity", + "usage": "179.64", + "charge": "152.56" + } +}, +{ + "model": "financialInputs.bills", + "pk": 110, + "fields": { + "building_id": 546, + "date_from": "2015-05-28", + "date_to": "2015-06-26", + "utility_type": "electricity", + "usage": "189.02", + "charge": "169.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 111, + "fields": { + "building_id": 546, + "date_from": "2015-04-28", + "date_to": "2015-05-28", + "utility_type": "electricity", + "usage": "168.92", + "charge": "196.46" + } +}, +{ + "model": "financialInputs.bills", + "pk": 112, + "fields": { + "building_id": 546, + "date_from": "2015-03-30", + "date_to": "2015-04-28", + "utility_type": "electricity", + "usage": "190.80", + "charge": "163.49" + } +}, +{ + "model": "financialInputs.bills", + "pk": 113, + "fields": { + "building_id": 546, + "date_from": "2015-02-27", + "date_to": "2015-03-30", + "utility_type": "electricity", + "usage": "189.42", + "charge": "163.88" + } +}, +{ + "model": "financialInputs.bills", + "pk": 114, + "fields": { + "building_id": 546, + "date_from": "2015-01-28", + "date_to": "2015-02-27", + "utility_type": "electricity", + "usage": "214.66", + "charge": "172.33" + } +}, +{ + "model": "financialInputs.bills", + "pk": 115, + "fields": { + "building_id": 546, + "date_from": "2016-11-22", + "date_to": "2016-12-16", + "utility_type": "gas", + "usage": "322.00", + "charge": "304.79" + } +}, +{ + "model": "financialInputs.bills", + "pk": 116, + "fields": { + "building_id": 546, + "date_from": "2016-10-18", + "date_to": "2016-11-22", + "utility_type": "gas", + "usage": "470.00", + "charge": "456.54" + } +}, +{ + "model": "financialInputs.bills", + "pk": 117, + "fields": { + "building_id": 546, + "date_from": "2016-09-30", + "date_to": "2016-10-18", + "utility_type": "gas", + "usage": "241.00", + "charge": "232.75" + } +}, +{ + "model": "financialInputs.bills", + "pk": 118, + "fields": { + "building_id": 546, + "date_from": "2016-09-19", + "date_to": "2016-09-30", + "utility_type": "gas", + "usage": "148.00", + "charge": "372.16" + } +}, +{ + "model": "financialInputs.bills", + "pk": 119, + "fields": { + "building_id": 546, + "date_from": "2016-08-18", + "date_to": "2016-09-19", + "utility_type": "gas", + "usage": "429.00", + "charge": "192.29" + } +}, +{ + "model": "financialInputs.bills", + "pk": 120, + "fields": { + "building_id": 546, + "date_from": "2016-07-20", + "date_to": "2016-08-18", + "utility_type": "gas", + "usage": "389.00", + "charge": "379.36" + } +}, +{ + "model": "financialInputs.bills", + "pk": 121, + "fields": { + "building_id": 546, + "date_from": "2016-06-20", + "date_to": "2016-07-20", + "utility_type": "gas", + "usage": "402.00", + "charge": "385.14" + } +}, +{ + "model": "financialInputs.bills", + "pk": 122, + "fields": { + "building_id": 546, + "date_from": "2016-05-18", + "date_to": "2016-06-20", + "utility_type": "gas", + "usage": "443.00", + "charge": "400.74" + } +}, +{ + "model": "financialInputs.bills", + "pk": 123, + "fields": { + "building_id": 546, + "date_from": "2016-04-19", + "date_to": "2016-05-18", + "utility_type": "gas", + "usage": "389.00", + "charge": "343.49" + } +}, +{ + "model": "financialInputs.bills", + "pk": 124, + "fields": { + "building_id": 546, + "date_from": "2016-03-18", + "date_to": "2016-04-19", + "utility_type": "gas", + "usage": "429.00", + "charge": "377.99" + } +}, +{ + "model": "financialInputs.bills", + "pk": 125, + "fields": { + "building_id": 546, + "date_from": "2016-02-17", + "date_to": "2016-03-18", + "utility_type": "gas", + "usage": "402.00", + "charge": "378.44" + } +}, +{ + "model": "financialInputs.bills", + "pk": 126, + "fields": { + "building_id": 546, + "date_from": "2016-01-19", + "date_to": "2016-02-17", + "utility_type": "gas", + "usage": "389.00", + "charge": "361.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 127, + "fields": { + "building_id": 546, + "date_from": "2015-12-16", + "date_to": "2016-01-19", + "utility_type": "gas", + "usage": "456.00", + "charge": "454.84" + } +}, +{ + "model": "financialInputs.bills", + "pk": 128, + "fields": { + "building_id": 546, + "date_from": "2015-11-16", + "date_to": "2015-12-16", + "utility_type": "gas", + "usage": "402.00", + "charge": "397.33" + } +}, +{ + "model": "financialInputs.bills", + "pk": 129, + "fields": { + "building_id": 546, + "date_from": "2015-10-16", + "date_to": "2015-11-16", + "utility_type": "gas", + "usage": "416.00", + "charge": "401.29" + } +}, +{ + "model": "financialInputs.bills", + "pk": 130, + "fields": { + "building_id": 546, + "date_from": "2015-09-19", + "date_to": "2015-10-16", + "utility_type": "gas", + "usage": "362.00", + "charge": "354.76" + } +}, +{ + "model": "financialInputs.bills", + "pk": 131, + "fields": { + "building_id": 546, + "date_from": "2015-08-18", + "date_to": "2015-09-19", + "utility_type": "gas", + "usage": "429.00", + "charge": "412.32" + } +}, +{ + "model": "financialInputs.bills", + "pk": 132, + "fields": { + "building_id": 546, + "date_from": "2015-07-20", + "date_to": "2015-08-18", + "utility_type": "gas", + "usage": "389.00", + "charge": "378.53" + } +}, +{ + "model": "financialInputs.bills", + "pk": 133, + "fields": { + "building_id": 546, + "date_from": "2015-06-18", + "date_to": "2015-07-20", + "utility_type": "gas", + "usage": "429.00", + "charge": "414.33" + } +}, +{ + "model": "financialInputs.bills", + "pk": 134, + "fields": { + "building_id": 546, + "date_from": "2015-05-19", + "date_to": "2015-06-18", + "utility_type": "gas", + "usage": "402.00", + "charge": "390.65" + } +}, +{ + "model": "financialInputs.bills", + "pk": 135, + "fields": { + "building_id": 547, + "date_from": "2016-11-28", + "date_to": "2016-12-28", + "utility_type": "electricity", + "usage": "117.88", + "charge": "56.01" + } +}, +{ + "model": "financialInputs.bills", + "pk": 136, + "fields": { + "building_id": 547, + "date_from": "2016-10-26", + "date_to": "2016-11-28", + "utility_type": "electricity", + "usage": "91.93", + "charge": "39.62" + } +}, +{ + "model": "financialInputs.bills", + "pk": 137, + "fields": { + "building_id": 547, + "date_from": "2016-09-26", + "date_to": "2016-10-26", + "utility_type": "electricity", + "usage": "89.07", + "charge": "67.42" + } +}, +{ + "model": "financialInputs.bills", + "pk": 138, + "fields": { + "building_id": 547, + "date_from": "2016-08-25", + "date_to": "2016-09-26", + "utility_type": "electricity", + "usage": "98.17", + "charge": "63.60" + } +}, +{ + "model": "financialInputs.bills", + "pk": 139, + "fields": { + "building_id": 547, + "date_from": "2016-07-27", + "date_to": "2016-08-25", + "utility_type": "electricity", + "usage": "86.88", + "charge": "57.25" + } +}, +{ + "model": "financialInputs.bills", + "pk": 140, + "fields": { + "building_id": 547, + "date_from": "2016-06-27", + "date_to": "2016-07-27", + "utility_type": "electricity", + "usage": "87.05", + "charge": "56.21" + } +}, +{ + "model": "financialInputs.bills", + "pk": 141, + "fields": { + "building_id": 547, + "date_from": "2016-05-26", + "date_to": "2016-06-27", + "utility_type": "electricity", + "usage": "101.05", + "charge": "71.66" + } +}, +{ + "model": "financialInputs.bills", + "pk": 142, + "fields": { + "building_id": 547, + "date_from": "2016-04-27", + "date_to": "2016-05-26", + "utility_type": "electricity", + "usage": "88.19", + "charge": "68.28" + } +}, +{ + "model": "financialInputs.bills", + "pk": 143, + "fields": { + "building_id": 547, + "date_from": "2016-03-29", + "date_to": "2016-04-27", + "utility_type": "electricity", + "usage": "90.05", + "charge": "63.57" + } +}, +{ + "model": "financialInputs.bills", + "pk": 144, + "fields": { + "building_id": 547, + "date_from": "2016-02-29", + "date_to": "2016-03-29", + "utility_type": "electricity", + "usage": "104.19", + "charge": "68.12" + } +}, +{ + "model": "financialInputs.bills", + "pk": 145, + "fields": { + "building_id": 547, + "date_from": "2016-01-28", + "date_to": "2016-02-29", + "utility_type": "electricity", + "usage": "98.13", + "charge": "71.73" + } +}, +{ + "model": "financialInputs.bills", + "pk": 146, + "fields": { + "building_id": 547, + "date_from": "2015-12-29", + "date_to": "2016-01-28", + "utility_type": "electricity", + "usage": "182.55", + "charge": "145.44" + } +}, +{ + "model": "financialInputs.bills", + "pk": 147, + "fields": { + "building_id": 547, + "date_from": "2015-11-25", + "date_to": "2015-12-29", + "utility_type": "electricity", + "usage": "208.85", + "charge": "172.37" + } +}, +{ + "model": "financialInputs.bills", + "pk": 148, + "fields": { + "building_id": 547, + "date_from": "2015-10-27", + "date_to": "2015-11-25", + "utility_type": "electricity", + "usage": "144.06", + "charge": "130.65" + } +}, +{ + "model": "financialInputs.bills", + "pk": 149, + "fields": { + "building_id": 547, + "date_from": "2015-09-25", + "date_to": "2015-10-27", + "utility_type": "electricity", + "usage": "136.16", + "charge": "136.10" + } +}, +{ + "model": "financialInputs.bills", + "pk": 150, + "fields": { + "building_id": 547, + "date_from": "2015-08-26", + "date_to": "2015-09-25", + "utility_type": "electricity", + "usage": "162.13", + "charge": "137.14" + } +}, +{ + "model": "financialInputs.bills", + "pk": 151, + "fields": { + "building_id": 547, + "date_from": "2015-07-28", + "date_to": "2015-08-26", + "utility_type": "electricity", + "usage": "154.95", + "charge": "126.16" + } +}, +{ + "model": "financialInputs.bills", + "pk": 152, + "fields": { + "building_id": 547, + "date_from": "2015-06-26", + "date_to": "2015-07-28", + "utility_type": "electricity", + "usage": "179.64", + "charge": "152.56" + } +}, +{ + "model": "financialInputs.bills", + "pk": 153, + "fields": { + "building_id": 547, + "date_from": "2015-05-28", + "date_to": "2015-06-26", + "utility_type": "electricity", + "usage": "189.02", + "charge": "169.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 154, + "fields": { + "building_id": 547, + "date_from": "2015-04-28", + "date_to": "2015-05-28", + "utility_type": "electricity", + "usage": "168.92", + "charge": "196.46" + } +}, +{ + "model": "financialInputs.bills", + "pk": 155, + "fields": { + "building_id": 547, + "date_from": "2015-03-30", + "date_to": "2015-04-28", + "utility_type": "electricity", + "usage": "190.80", + "charge": "163.49" + } +}, +{ + "model": "financialInputs.bills", + "pk": 156, + "fields": { + "building_id": 547, + "date_from": "2015-02-27", + "date_to": "2015-03-30", + "utility_type": "electricity", + "usage": "189.42", + "charge": "163.88" + } +}, +{ + "model": "financialInputs.bills", + "pk": 157, + "fields": { + "building_id": 547, + "date_from": "2016-11-22", + "date_to": "2016-12-16", + "utility_type": "gas", + "usage": "322.00", + "charge": "304.79" + } +}, +{ + "model": "financialInputs.bills", + "pk": 158, + "fields": { + "building_id": 547, + "date_from": "2016-10-18", + "date_to": "2016-11-22", + "utility_type": "gas", + "usage": "470.00", + "charge": "456.54" + } +}, +{ + "model": "financialInputs.bills", + "pk": 159, + "fields": { + "building_id": 547, + "date_from": "2016-09-30", + "date_to": "2016-10-18", + "utility_type": "gas", + "usage": "241.00", + "charge": "232.75" + } +}, +{ + "model": "financialInputs.bills", + "pk": 160, + "fields": { + "building_id": 547, + "date_from": "2016-09-19", + "date_to": "2016-09-30", + "utility_type": "gas", + "usage": "148.00", + "charge": "372.16" + } +}, +{ + "model": "financialInputs.bills", + "pk": 161, + "fields": { + "building_id": 547, + "date_from": "2016-08-18", + "date_to": "2016-09-19", + "utility_type": "gas", + "usage": "429.00", + "charge": "192.29" + } +}, +{ + "model": "financialInputs.bills", + "pk": 162, + "fields": { + "building_id": 547, + "date_from": "2016-07-20", + "date_to": "2016-08-18", + "utility_type": "gas", + "usage": "389.00", + "charge": "379.36" + } +}, +{ + "model": "financialInputs.bills", + "pk": 163, + "fields": { + "building_id": 547, + "date_from": "2016-06-20", + "date_to": "2016-07-20", + "utility_type": "gas", + "usage": "402.00", + "charge": "385.14" + } +}, +{ + "model": "financialInputs.bills", + "pk": 164, + "fields": { + "building_id": 547, + "date_from": "2016-05-18", + "date_to": "2016-06-20", + "utility_type": "gas", + "usage": "443.00", + "charge": "400.74" + } +}, +{ + "model": "financialInputs.bills", + "pk": 165, + "fields": { + "building_id": 547, + "date_from": "2016-04-19", + "date_to": "2016-05-18", + "utility_type": "gas", + "usage": "389.00", + "charge": "343.49" + } +}, +{ + "model": "financialInputs.bills", + "pk": 166, + "fields": { + "building_id": 547, + "date_from": "2016-03-18", + "date_to": "2016-04-19", + "utility_type": "gas", + "usage": "429.00", + "charge": "377.99" + } +}, +{ + "model": "financialInputs.bills", + "pk": 167, + "fields": { + "building_id": 547, + "date_from": "2016-02-17", + "date_to": "2016-03-18", + "utility_type": "gas", + "usage": "402.00", + "charge": "378.44" + } +}, +{ + "model": "financialInputs.bills", + "pk": 168, + "fields": { + "building_id": 547, + "date_from": "2016-01-19", + "date_to": "2016-02-17", + "utility_type": "gas", + "usage": "389.00", + "charge": "361.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 169, + "fields": { + "building_id": 547, + "date_from": "2015-12-16", + "date_to": "2016-01-19", + "utility_type": "gas", + "usage": "456.00", + "charge": "454.84" + } +}, +{ + "model": "financialInputs.bills", + "pk": 170, + "fields": { + "building_id": 547, + "date_from": "2015-11-16", + "date_to": "2015-12-16", + "utility_type": "gas", + "usage": "402.00", + "charge": "397.33" + } +}, +{ + "model": "financialInputs.bills", + "pk": 171, + "fields": { + "building_id": 547, + "date_from": "2015-10-16", + "date_to": "2015-11-16", + "utility_type": "gas", + "usage": "416.00", + "charge": "401.29" + } +}, +{ + "model": "financialInputs.bills", + "pk": 172, + "fields": { + "building_id": 547, + "date_from": "2015-09-19", + "date_to": "2015-10-16", + "utility_type": "gas", + "usage": "362.00", + "charge": "354.76" + } +}, +{ + "model": "financialInputs.bills", + "pk": 173, + "fields": { + "building_id": 547, + "date_from": "2015-08-18", + "date_to": "2015-09-19", + "utility_type": "gas", + "usage": "429.00", + "charge": "412.32" + } +}, +{ + "model": "financialInputs.bills", + "pk": 174, + "fields": { + "building_id": 547, + "date_from": "2015-07-20", + "date_to": "2015-08-18", + "utility_type": "gas", + "usage": "389.00", + "charge": "378.53" + } +}, +{ + "model": "financialInputs.bills", + "pk": 175, + "fields": { + "building_id": 547, + "date_from": "2015-06-18", + "date_to": "2015-07-20", + "utility_type": "gas", + "usage": "429.00", + "charge": "414.33" + } +}, +{ + "model": "financialInputs.bills", + "pk": 176, + "fields": { + "building_id": 547, + "date_from": "2016-11-28", + "date_to": "2016-12-28", + "utility_type": "oil", + "usage": "1200.00", + "charge": "3100.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 177, + "fields": { + "building_id": 547, + "date_from": "2016-10-26", + "date_to": "2016-11-28", + "utility_type": "oil", + "usage": "700.00", + "charge": "2400.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 178, + "fields": { + "building_id": 547, + "date_from": "2016-09-26", + "date_to": "2016-10-26", + "utility_type": "oil", + "usage": "1000.00", + "charge": "3380.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 179, + "fields": { + "building_id": 547, + "date_from": "2016-08-25", + "date_to": "2016-09-26", + "utility_type": "oil", + "usage": "500.00", + "charge": "1850.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 180, + "fields": { + "building_id": 547, + "date_from": "2016-07-27", + "date_to": "2016-08-25", + "utility_type": "oil", + "usage": "800.00", + "charge": "3000.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 181, + "fields": { + "building_id": 547, + "date_from": "2016-06-27", + "date_to": "2016-07-27", + "utility_type": "oil", + "usage": "900.00", + "charge": "3200.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 182, + "fields": { + "building_id": 547, + "date_from": "2016-05-26", + "date_to": "2016-06-27", + "utility_type": "oil", + "usage": "1700.00", + "charge": "6700.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 183, + "fields": { + "building_id": 547, + "date_from": "2016-04-27", + "date_to": "2016-05-26", + "utility_type": "oil", + "usage": "1400.00", + "charge": "5300.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 184, + "fields": { + "building_id": 547, + "date_from": "2016-03-29", + "date_to": "2016-04-27", + "utility_type": "oil", + "usage": "1200.00", + "charge": "4850.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 185, + "fields": { + "building_id": 547, + "date_from": "2016-02-29", + "date_to": "2016-03-29", + "utility_type": "oil", + "usage": "1300.00", + "charge": "5130.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 186, + "fields": { + "building_id": 547, + "date_from": "2016-01-28", + "date_to": "2016-02-29", + "utility_type": "oil", + "usage": "1500.00", + "charge": "5700.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 187, + "fields": { + "building_id": 547, + "date_from": "2015-12-29", + "date_to": "2016-01-28", + "utility_type": "oil", + "usage": "1200.00", + "charge": "3120.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 188, + "fields": { + "building_id": 547, + "date_from": "2015-11-25", + "date_to": "2015-12-29", + "utility_type": "oil", + "usage": "750.00", + "charge": "2420.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 189, + "fields": { + "building_id": 547, + "date_from": "2015-10-27", + "date_to": "2015-11-25", + "utility_type": "oil", + "usage": "1050.00", + "charge": "3400.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 190, + "fields": { + "building_id": 547, + "date_from": "2015-09-25", + "date_to": "2015-10-27", + "utility_type": "oil", + "usage": "550.00", + "charge": "1870.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 191, + "fields": { + "building_id": 547, + "date_from": "2015-08-26", + "date_to": "2015-09-25", + "utility_type": "oil", + "usage": "850.00", + "charge": "3020.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 192, + "fields": { + "building_id": 547, + "date_from": "2015-07-28", + "date_to": "2015-08-26", + "utility_type": "oil", + "usage": "950.00", + "charge": "3220.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 193, + "fields": { + "building_id": 547, + "date_from": "2015-06-26", + "date_to": "2015-07-28", + "utility_type": "oil", + "usage": "1750.00", + "charge": "6720.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 194, + "fields": { + "building_id": 547, + "date_from": "2015-05-28", + "date_to": "2015-06-26", + "utility_type": "oil", + "usage": "1450.00", + "charge": "5320.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 195, + "fields": { + "building_id": 547, + "date_from": "2015-04-28", + "date_to": "2015-05-28", + "utility_type": "oil", + "usage": "1250.00", + "charge": "4870.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 196, + "fields": { + "building_id": 547, + "date_from": "2015-03-30", + "date_to": "2015-04-28", + "utility_type": "oil", + "usage": "1350.00", + "charge": "5150.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 197, + "fields": { + "building_id": 547, + "date_from": "2015-02-27", + "date_to": "2015-03-30", + "utility_type": "oil", + "usage": "1550.00", + "charge": "5720.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 198, + "fields": { + "building_id": 547, + "date_from": "2016-01-03", + "date_to": "2016-12-28", + "utility_type": "water", + "usage": "3500000.00", + "charge": "20000.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 199, + "fields": { + "building_id": 547, + "date_from": "2015-01-01", + "date_to": "2016-01-02", + "utility_type": "water", + "usage": "3600000.00", + "charge": "20500.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 265, + "fields": { + "building_id": 509, + "date_from": "2016-11-28", + "date_to": "2016-12-28", + "utility_type": "electricity", + "usage": "117.88", + "charge": "56.01" + } +}, +{ + "model": "financialInputs.bills", + "pk": 266, + "fields": { + "building_id": 509, + "date_from": "2016-10-26", + "date_to": "2016-11-28", + "utility_type": "electricity", + "usage": "91.93", + "charge": "39.62" + } +}, +{ + "model": "financialInputs.bills", + "pk": 267, + "fields": { + "building_id": 509, + "date_from": "2016-09-26", + "date_to": "2016-10-26", + "utility_type": "electricity", + "usage": "89.07", + "charge": "67.42" + } +}, +{ + "model": "financialInputs.bills", + "pk": 268, + "fields": { + "building_id": 509, + "date_from": "2016-08-25", + "date_to": "2016-09-26", + "utility_type": "electricity", + "usage": "98.17", + "charge": "63.60" + } +}, +{ + "model": "financialInputs.bills", + "pk": 269, + "fields": { + "building_id": 509, + "date_from": "2016-07-27", + "date_to": "2016-08-25", + "utility_type": "electricity", + "usage": "86.88", + "charge": "57.25" + } +}, +{ + "model": "financialInputs.bills", + "pk": 270, + "fields": { + "building_id": 509, + "date_from": "2016-06-27", + "date_to": "2016-07-27", + "utility_type": "electricity", + "usage": "87.05", + "charge": "56.21" + } +}, +{ + "model": "financialInputs.bills", + "pk": 271, + "fields": { + "building_id": 509, + "date_from": "2016-05-26", + "date_to": "2016-06-27", + "utility_type": "electricity", + "usage": "101.05", + "charge": "71.66" + } +}, +{ + "model": "financialInputs.bills", + "pk": 272, + "fields": { + "building_id": 509, + "date_from": "2016-04-27", + "date_to": "2016-05-26", + "utility_type": "electricity", + "usage": "88.19", + "charge": "68.28" + } +}, +{ + "model": "financialInputs.bills", + "pk": 273, + "fields": { + "building_id": 509, + "date_from": "2016-03-29", + "date_to": "2016-04-27", + "utility_type": "electricity", + "usage": "90.05", + "charge": "63.57" + } +}, +{ + "model": "financialInputs.bills", + "pk": 274, + "fields": { + "building_id": 509, + "date_from": "2016-02-29", + "date_to": "2016-03-29", + "utility_type": "electricity", + "usage": "104.19", + "charge": "68.12" + } +}, +{ + "model": "financialInputs.bills", + "pk": 275, + "fields": { + "building_id": 509, + "date_from": "2016-01-28", + "date_to": "2016-02-29", + "utility_type": "electricity", + "usage": "98.13", + "charge": "71.73" + } +}, +{ + "model": "financialInputs.bills", + "pk": 276, + "fields": { + "building_id": 509, + "date_from": "2015-12-29", + "date_to": "2016-01-28", + "utility_type": "electricity", + "usage": "182.55", + "charge": "145.44" + } +}, +{ + "model": "financialInputs.bills", + "pk": 277, + "fields": { + "building_id": 509, + "date_from": "2015-11-25", + "date_to": "2015-12-29", + "utility_type": "electricity", + "usage": "208.85", + "charge": "172.37" + } +}, +{ + "model": "financialInputs.bills", + "pk": 278, + "fields": { + "building_id": 509, + "date_from": "2015-10-27", + "date_to": "2015-11-25", + "utility_type": "electricity", + "usage": "144.06", + "charge": "130.65" + } +}, +{ + "model": "financialInputs.bills", + "pk": 279, + "fields": { + "building_id": 509, + "date_from": "2015-09-25", + "date_to": "2015-10-27", + "utility_type": "electricity", + "usage": "136.16", + "charge": "136.10" + } +}, +{ + "model": "financialInputs.bills", + "pk": 280, + "fields": { + "building_id": 509, + "date_from": "2015-08-26", + "date_to": "2015-09-25", + "utility_type": "electricity", + "usage": "162.13", + "charge": "137.14" + } +}, +{ + "model": "financialInputs.bills", + "pk": 281, + "fields": { + "building_id": 509, + "date_from": "2015-07-28", + "date_to": "2015-08-26", + "utility_type": "electricity", + "usage": "154.95", + "charge": "126.16" + } +}, +{ + "model": "financialInputs.bills", + "pk": 282, + "fields": { + "building_id": 509, + "date_from": "2015-06-26", + "date_to": "2015-07-28", + "utility_type": "electricity", + "usage": "179.64", + "charge": "152.56" + } +}, +{ + "model": "financialInputs.bills", + "pk": 283, + "fields": { + "building_id": 509, + "date_from": "2015-05-28", + "date_to": "2015-06-26", + "utility_type": "electricity", + "usage": "189.02", + "charge": "169.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 284, + "fields": { + "building_id": 509, + "date_from": "2015-04-28", + "date_to": "2015-05-28", + "utility_type": "electricity", + "usage": "168.92", + "charge": "196.46" + } +}, +{ + "model": "financialInputs.bills", + "pk": 285, + "fields": { + "building_id": 509, + "date_from": "2015-03-30", + "date_to": "2015-04-28", + "utility_type": "electricity", + "usage": "190.80", + "charge": "163.49" + } +}, +{ + "model": "financialInputs.bills", + "pk": 286, + "fields": { + "building_id": 509, + "date_from": "2015-02-27", + "date_to": "2015-03-30", + "utility_type": "electricity", + "usage": "189.42", + "charge": "163.88" + } +}, +{ + "model": "financialInputs.bills", + "pk": 287, + "fields": { + "building_id": 509, + "date_from": "2016-11-22", + "date_to": "2016-12-16", + "utility_type": "gas", + "usage": "322.00", + "charge": "304.79" + } +}, +{ + "model": "financialInputs.bills", + "pk": 288, + "fields": { + "building_id": 509, + "date_from": "2016-10-18", + "date_to": "2016-11-22", + "utility_type": "gas", + "usage": "470.00", + "charge": "456.54" + } +}, +{ + "model": "financialInputs.bills", + "pk": 289, + "fields": { + "building_id": 509, + "date_from": "2016-09-30", + "date_to": "2016-10-18", + "utility_type": "gas", + "usage": "241.00", + "charge": "232.75" + } +}, +{ + "model": "financialInputs.bills", + "pk": 290, + "fields": { + "building_id": 509, + "date_from": "2016-09-19", + "date_to": "2016-09-30", + "utility_type": "gas", + "usage": "148.00", + "charge": "372.16" + } +}, +{ + "model": "financialInputs.bills", + "pk": 291, + "fields": { + "building_id": 509, + "date_from": "2016-08-18", + "date_to": "2016-09-19", + "utility_type": "gas", + "usage": "429.00", + "charge": "192.29" + } +}, +{ + "model": "financialInputs.bills", + "pk": 292, + "fields": { + "building_id": 509, + "date_from": "2016-07-20", + "date_to": "2016-08-18", + "utility_type": "gas", + "usage": "389.00", + "charge": "379.36" + } +}, +{ + "model": "financialInputs.bills", + "pk": 293, + "fields": { + "building_id": 509, + "date_from": "2016-06-20", + "date_to": "2016-07-20", + "utility_type": "gas", + "usage": "402.00", + "charge": "385.14" + } +}, +{ + "model": "financialInputs.bills", + "pk": 294, + "fields": { + "building_id": 509, + "date_from": "2016-05-18", + "date_to": "2016-06-20", + "utility_type": "gas", + "usage": "443.00", + "charge": "400.74" + } +}, +{ + "model": "financialInputs.bills", + "pk": 295, + "fields": { + "building_id": 509, + "date_from": "2016-04-19", + "date_to": "2016-05-18", + "utility_type": "gas", + "usage": "389.00", + "charge": "343.49" + } +}, +{ + "model": "financialInputs.bills", + "pk": 296, + "fields": { + "building_id": 509, + "date_from": "2016-03-18", + "date_to": "2016-04-19", + "utility_type": "gas", + "usage": "429.00", + "charge": "377.99" + } +}, +{ + "model": "financialInputs.bills", + "pk": 297, + "fields": { + "building_id": 509, + "date_from": "2016-02-17", + "date_to": "2016-03-18", + "utility_type": "gas", + "usage": "402.00", + "charge": "378.44" + } +}, +{ + "model": "financialInputs.bills", + "pk": 298, + "fields": { + "building_id": 509, + "date_from": "2016-01-19", + "date_to": "2016-02-17", + "utility_type": "gas", + "usage": "389.00", + "charge": "361.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 299, + "fields": { + "building_id": 509, + "date_from": "2015-12-16", + "date_to": "2016-01-19", + "utility_type": "gas", + "usage": "456.00", + "charge": "454.84" + } +}, +{ + "model": "financialInputs.bills", + "pk": 300, + "fields": { + "building_id": 509, + "date_from": "2015-11-16", + "date_to": "2015-12-16", + "utility_type": "gas", + "usage": "402.00", + "charge": "397.33" + } +}, +{ + "model": "financialInputs.bills", + "pk": 301, + "fields": { + "building_id": 509, + "date_from": "2015-10-16", + "date_to": "2015-11-16", + "utility_type": "gas", + "usage": "416.00", + "charge": "401.29" + } +}, +{ + "model": "financialInputs.bills", + "pk": 302, + "fields": { + "building_id": 509, + "date_from": "2015-09-19", + "date_to": "2015-10-16", + "utility_type": "gas", + "usage": "362.00", + "charge": "354.76" + } +}, +{ + "model": "financialInputs.bills", + "pk": 303, + "fields": { + "building_id": 509, + "date_from": "2015-08-18", + "date_to": "2015-09-19", + "utility_type": "gas", + "usage": "429.00", + "charge": "412.32" + } +}, +{ + "model": "financialInputs.bills", + "pk": 304, + "fields": { + "building_id": 509, + "date_from": "2015-07-20", + "date_to": "2015-08-18", + "utility_type": "gas", + "usage": "389.00", + "charge": "378.53" + } +}, +{ + "model": "financialInputs.bills", + "pk": 305, + "fields": { + "building_id": 509, + "date_from": "2015-06-18", + "date_to": "2015-07-20", + "utility_type": "gas", + "usage": "429.00", + "charge": "414.33" + } +}, +{ + "model": "financialInputs.bills", + "pk": 306, + "fields": { + "building_id": 509, + "date_from": "2016-11-28", + "date_to": "2016-12-28", + "utility_type": "oil", + "usage": "1200.00", + "charge": "3100.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 307, + "fields": { + "building_id": 509, + "date_from": "2016-10-26", + "date_to": "2016-11-28", + "utility_type": "oil", + "usage": "700.00", + "charge": "2400.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 308, + "fields": { + "building_id": 509, + "date_from": "2016-09-26", + "date_to": "2016-10-26", + "utility_type": "oil", + "usage": "1000.00", + "charge": "3380.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 309, + "fields": { + "building_id": 509, + "date_from": "2016-08-25", + "date_to": "2016-09-26", + "utility_type": "oil", + "usage": "500.00", + "charge": "1850.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 310, + "fields": { + "building_id": 509, + "date_from": "2016-07-27", + "date_to": "2016-08-25", + "utility_type": "oil", + "usage": "800.00", + "charge": "3000.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 311, + "fields": { + "building_id": 509, + "date_from": "2016-06-27", + "date_to": "2016-07-27", + "utility_type": "oil", + "usage": "900.00", + "charge": "3200.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 312, + "fields": { + "building_id": 509, + "date_from": "2016-05-26", + "date_to": "2016-06-27", + "utility_type": "oil", + "usage": "1700.00", + "charge": "6700.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 313, + "fields": { + "building_id": 509, + "date_from": "2016-04-27", + "date_to": "2016-05-26", + "utility_type": "oil", + "usage": "1400.00", + "charge": "5300.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 314, + "fields": { + "building_id": 509, + "date_from": "2016-03-29", + "date_to": "2016-04-27", + "utility_type": "oil", + "usage": "1200.00", + "charge": "4850.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 315, + "fields": { + "building_id": 509, + "date_from": "2016-02-29", + "date_to": "2016-03-29", + "utility_type": "oil", + "usage": "1300.00", + "charge": "5130.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 316, + "fields": { + "building_id": 509, + "date_from": "2016-01-28", + "date_to": "2016-02-29", + "utility_type": "oil", + "usage": "1500.00", + "charge": "5700.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 317, + "fields": { + "building_id": 509, + "date_from": "2015-12-29", + "date_to": "2016-01-28", + "utility_type": "oil", + "usage": "1200.00", + "charge": "3120.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 318, + "fields": { + "building_id": 509, + "date_from": "2015-11-25", + "date_to": "2015-12-29", + "utility_type": "oil", + "usage": "750.00", + "charge": "2420.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 319, + "fields": { + "building_id": 509, + "date_from": "2015-10-27", + "date_to": "2015-11-25", + "utility_type": "oil", + "usage": "1050.00", + "charge": "3400.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 320, + "fields": { + "building_id": 509, + "date_from": "2015-09-25", + "date_to": "2015-10-27", + "utility_type": "oil", + "usage": "550.00", + "charge": "1870.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 321, + "fields": { + "building_id": 509, + "date_from": "2015-08-26", + "date_to": "2015-09-25", + "utility_type": "oil", + "usage": "850.00", + "charge": "3020.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 322, + "fields": { + "building_id": 509, + "date_from": "2015-07-28", + "date_to": "2015-08-26", + "utility_type": "oil", + "usage": "950.00", + "charge": "3220.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 323, + "fields": { + "building_id": 509, + "date_from": "2015-06-26", + "date_to": "2015-07-28", + "utility_type": "oil", + "usage": "1750.00", + "charge": "6720.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 324, + "fields": { + "building_id": 509, + "date_from": "2015-05-28", + "date_to": "2015-06-26", + "utility_type": "oil", + "usage": "1450.00", + "charge": "5320.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 325, + "fields": { + "building_id": 509, + "date_from": "2015-04-28", + "date_to": "2015-05-28", + "utility_type": "oil", + "usage": "1250.00", + "charge": "4870.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 326, + "fields": { + "building_id": 509, + "date_from": "2015-03-30", + "date_to": "2015-04-28", + "utility_type": "oil", + "usage": "1350.00", + "charge": "5150.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 327, + "fields": { + "building_id": 509, + "date_from": "2015-02-27", + "date_to": "2015-03-30", + "utility_type": "oil", + "usage": "1550.00", + "charge": "5720.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 330, + "fields": { + "building_id": 509, + "date_from": "2016-01-03", + "date_to": "2016-12-28", + "utility_type": "water", + "usage": "3500000.00", + "charge": "20000.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 331, + "fields": { + "building_id": 509, + "date_from": "2015-01-01", + "date_to": "2016-01-02", + "utility_type": "water", + "usage": "3600000.00", + "charge": "20500.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 332, + "fields": { + "building_id": 509, + "date_from": "2014-01-02", + "date_to": "2014-12-31", + "utility_type": "water", + "usage": "3300000.00", + "charge": "21000.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 333, + "fields": { + "building_id": 187896, + "date_from": "2016-11-28", + "date_to": "2016-12-28", + "utility_type": "electricity", + "usage": "117.88", + "charge": "56.01" + } +}, +{ + "model": "financialInputs.bills", + "pk": 334, + "fields": { + "building_id": 187896, + "date_from": "2016-10-26", + "date_to": "2016-11-28", + "utility_type": "electricity", + "usage": "91.93", + "charge": "39.62" + } +}, +{ + "model": "financialInputs.bills", + "pk": 335, + "fields": { + "building_id": 187896, + "date_from": "2016-09-26", + "date_to": "2016-10-26", + "utility_type": "electricity", + "usage": "89.07", + "charge": "67.42" + } +}, +{ + "model": "financialInputs.bills", + "pk": 336, + "fields": { + "building_id": 187896, + "date_from": "2016-08-25", + "date_to": "2016-09-26", + "utility_type": "electricity", + "usage": "98.17", + "charge": "63.60" + } +}, +{ + "model": "financialInputs.bills", + "pk": 337, + "fields": { + "building_id": 187896, + "date_from": "2016-07-27", + "date_to": "2016-08-25", + "utility_type": "electricity", + "usage": "86.88", + "charge": "57.25" + } +}, +{ + "model": "financialInputs.bills", + "pk": 338, + "fields": { + "building_id": 187896, + "date_from": "2016-06-27", + "date_to": "2016-07-27", + "utility_type": "electricity", + "usage": "87.05", + "charge": "56.21" + } +}, +{ + "model": "financialInputs.bills", + "pk": 339, + "fields": { + "building_id": 187896, + "date_from": "2016-05-26", + "date_to": "2016-06-27", + "utility_type": "electricity", + "usage": "101.05", + "charge": "71.66" + } +}, +{ + "model": "financialInputs.bills", + "pk": 340, + "fields": { + "building_id": 187896, + "date_from": "2016-04-27", + "date_to": "2016-05-26", + "utility_type": "electricity", + "usage": "88.19", + "charge": "68.28" + } +}, +{ + "model": "financialInputs.bills", + "pk": 341, + "fields": { + "building_id": 187896, + "date_from": "2016-03-29", + "date_to": "2016-04-27", + "utility_type": "electricity", + "usage": "90.05", + "charge": "63.57" + } +}, +{ + "model": "financialInputs.bills", + "pk": 342, + "fields": { + "building_id": 187896, + "date_from": "2016-02-29", + "date_to": "2016-03-29", + "utility_type": "electricity", + "usage": "104.19", + "charge": "68.12" + } +}, +{ + "model": "financialInputs.bills", + "pk": 343, + "fields": { + "building_id": 187896, + "date_from": "2016-01-28", + "date_to": "2016-02-29", + "utility_type": "electricity", + "usage": "98.13", + "charge": "71.73" + } +}, +{ + "model": "financialInputs.bills", + "pk": 344, + "fields": { + "building_id": 187896, + "date_from": "2015-12-29", + "date_to": "2016-01-28", + "utility_type": "electricity", + "usage": "182.55", + "charge": "145.44" + } +}, +{ + "model": "financialInputs.bills", + "pk": 345, + "fields": { + "building_id": 187896, + "date_from": "2015-11-25", + "date_to": "2015-12-29", + "utility_type": "electricity", + "usage": "208.85", + "charge": "172.37" + } +}, +{ + "model": "financialInputs.bills", + "pk": 346, + "fields": { + "building_id": 187896, + "date_from": "2015-10-27", + "date_to": "2015-11-25", + "utility_type": "electricity", + "usage": "144.06", + "charge": "130.65" + } +}, +{ + "model": "financialInputs.bills", + "pk": 347, + "fields": { + "building_id": 187896, + "date_from": "2015-09-25", + "date_to": "2015-10-27", + "utility_type": "electricity", + "usage": "136.16", + "charge": "136.10" + } +}, +{ + "model": "financialInputs.bills", + "pk": 348, + "fields": { + "building_id": 187896, + "date_from": "2015-08-26", + "date_to": "2015-09-25", + "utility_type": "electricity", + "usage": "162.13", + "charge": "137.14" + } +}, +{ + "model": "financialInputs.bills", + "pk": 349, + "fields": { + "building_id": 187896, + "date_from": "2015-07-28", + "date_to": "2015-08-26", + "utility_type": "electricity", + "usage": "154.95", + "charge": "126.16" + } +}, +{ + "model": "financialInputs.bills", + "pk": 350, + "fields": { + "building_id": 187896, + "date_from": "2015-06-26", + "date_to": "2015-07-28", + "utility_type": "electricity", + "usage": "179.64", + "charge": "152.56" + } +}, +{ + "model": "financialInputs.bills", + "pk": 351, + "fields": { + "building_id": 187896, + "date_from": "2015-05-28", + "date_to": "2015-06-26", + "utility_type": "electricity", + "usage": "189.02", + "charge": "169.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 352, + "fields": { + "building_id": 187896, + "date_from": "2015-04-28", + "date_to": "2015-05-28", + "utility_type": "electricity", + "usage": "168.92", + "charge": "196.46" + } +}, +{ + "model": "financialInputs.bills", + "pk": 353, + "fields": { + "building_id": 187896, + "date_from": "2015-03-30", + "date_to": "2015-04-28", + "utility_type": "electricity", + "usage": "190.80", + "charge": "163.49" + } +}, +{ + "model": "financialInputs.bills", + "pk": 354, + "fields": { + "building_id": 187896, + "date_from": "2015-02-27", + "date_to": "2015-03-30", + "utility_type": "electricity", + "usage": "189.42", + "charge": "163.88" + } +}, +{ + "model": "financialInputs.bills", + "pk": 355, + "fields": { + "building_id": 187896, + "date_from": "2015-01-28", + "date_to": "2015-02-27", + "utility_type": "electricity", + "usage": "214.66", + "charge": "172.33" + } +}, +{ + "model": "financialInputs.bills", + "pk": 356, + "fields": { + "building_id": 187896, + "date_from": "2016-11-22", + "date_to": "2016-12-16", + "utility_type": "gas", + "usage": "322.00", + "charge": "304.79" + } +}, +{ + "model": "financialInputs.bills", + "pk": 357, + "fields": { + "building_id": 187896, + "date_from": "2016-10-18", + "date_to": "2016-11-22", + "utility_type": "gas", + "usage": "470.00", + "charge": "456.54" + } +}, +{ + "model": "financialInputs.bills", + "pk": 358, + "fields": { + "building_id": 187896, + "date_from": "2016-09-30", + "date_to": "2016-10-18", + "utility_type": "gas", + "usage": "241.00", + "charge": "232.75" + } +}, +{ + "model": "financialInputs.bills", + "pk": 359, + "fields": { + "building_id": 187896, + "date_from": "2016-09-19", + "date_to": "2016-09-30", + "utility_type": "gas", + "usage": "148.00", + "charge": "372.16" + } +}, +{ + "model": "financialInputs.bills", + "pk": 360, + "fields": { + "building_id": 187896, + "date_from": "2016-08-18", + "date_to": "2016-09-19", + "utility_type": "gas", + "usage": "429.00", + "charge": "192.29" + } +}, +{ + "model": "financialInputs.bills", + "pk": 361, + "fields": { + "building_id": 187896, + "date_from": "2016-07-20", + "date_to": "2016-08-18", + "utility_type": "gas", + "usage": "389.00", + "charge": "379.36" + } +}, +{ + "model": "financialInputs.bills", + "pk": 362, + "fields": { + "building_id": 187896, + "date_from": "2016-06-20", + "date_to": "2016-07-20", + "utility_type": "gas", + "usage": "402.00", + "charge": "385.14" + } +}, +{ + "model": "financialInputs.bills", + "pk": 363, + "fields": { + "building_id": 187896, + "date_from": "2016-05-18", + "date_to": "2016-06-20", + "utility_type": "gas", + "usage": "443.00", + "charge": "400.74" + } +}, +{ + "model": "financialInputs.bills", + "pk": 364, + "fields": { + "building_id": 187896, + "date_from": "2016-04-19", + "date_to": "2016-05-18", + "utility_type": "gas", + "usage": "389.00", + "charge": "343.49" + } +}, +{ + "model": "financialInputs.bills", + "pk": 365, + "fields": { + "building_id": 187896, + "date_from": "2016-03-18", + "date_to": "2016-04-19", + "utility_type": "gas", + "usage": "429.00", + "charge": "377.99" + } +}, +{ + "model": "financialInputs.bills", + "pk": 366, + "fields": { + "building_id": 187896, + "date_from": "2016-02-17", + "date_to": "2016-03-18", + "utility_type": "gas", + "usage": "402.00", + "charge": "378.44" + } +}, +{ + "model": "financialInputs.bills", + "pk": 367, + "fields": { + "building_id": 187896, + "date_from": "2016-01-19", + "date_to": "2016-02-17", + "utility_type": "gas", + "usage": "389.00", + "charge": "361.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 368, + "fields": { + "building_id": 187896, + "date_from": "2015-12-16", + "date_to": "2016-01-19", + "utility_type": "gas", + "usage": "456.00", + "charge": "454.84" + } +}, +{ + "model": "financialInputs.bills", + "pk": 369, + "fields": { + "building_id": 187896, + "date_from": "2015-11-16", + "date_to": "2015-12-16", + "utility_type": "gas", + "usage": "402.00", + "charge": "397.33" + } +}, +{ + "model": "financialInputs.bills", + "pk": 370, + "fields": { + "building_id": 187896, + "date_from": "2015-10-16", + "date_to": "2015-11-16", + "utility_type": "gas", + "usage": "416.00", + "charge": "401.29" + } +}, +{ + "model": "financialInputs.bills", + "pk": 371, + "fields": { + "building_id": 187896, + "date_from": "2015-09-19", + "date_to": "2015-10-16", + "utility_type": "gas", + "usage": "362.00", + "charge": "354.76" + } +}, +{ + "model": "financialInputs.bills", + "pk": 372, + "fields": { + "building_id": 187896, + "date_from": "2015-08-18", + "date_to": "2015-09-19", + "utility_type": "gas", + "usage": "429.00", + "charge": "412.32" + } +}, +{ + "model": "financialInputs.bills", + "pk": 373, + "fields": { + "building_id": 187896, + "date_from": "2015-07-20", + "date_to": "2015-08-18", + "utility_type": "gas", + "usage": "389.00", + "charge": "378.53" + } +}, +{ + "model": "financialInputs.bills", + "pk": 374, + "fields": { + "building_id": 187896, + "date_from": "2015-06-18", + "date_to": "2015-07-20", + "utility_type": "gas", + "usage": "429.00", + "charge": "414.33" + } +}, +{ + "model": "financialInputs.bills", + "pk": 375, + "fields": { + "building_id": 187896, + "date_from": "2015-05-19", + "date_to": "2015-06-18", + "utility_type": "gas", + "usage": "402.00", + "charge": "390.65" + } +}, +{ + "model": "financialInputs.bills", + "pk": 376, + "fields": { + "building_id": 488, + "date_from": "2017-02-22", + "date_to": "2017-03-23", + "utility_type": "electricity", + "usage": "25800.00", + "charge": "4509.82" + } +}, +{ + "model": "financialInputs.bills", + "pk": 377, + "fields": { + "building_id": 488, + "date_from": "2016-12-21", + "date_to": "2017-02-22", + "utility_type": "electricity", + "usage": "61800.00", + "charge": "10273.47" + } +}, +{ + "model": "financialInputs.bills", + "pk": 378, + "fields": { + "building_id": 488, + "date_from": "2016-11-18", + "date_to": "2016-12-21", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5594.74" + } +}, +{ + "model": "financialInputs.bills", + "pk": 379, + "fields": { + "building_id": 488, + "date_from": "2016-10-20", + "date_to": "2016-11-18", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5780.51" + } +}, +{ + "model": "financialInputs.bills", + "pk": 380, + "fields": { + "building_id": 488, + "date_from": "2016-09-20", + "date_to": "2016-10-20", + "utility_type": "electricity", + "usage": "37800.00", + "charge": "6412.98" + } +}, +{ + "model": "financialInputs.bills", + "pk": 381, + "fields": { + "building_id": 488, + "date_from": "2016-08-19", + "date_to": "2016-09-20", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8708.14" + } +}, +{ + "model": "financialInputs.bills", + "pk": 382, + "fields": { + "building_id": 488, + "date_from": "2016-07-21", + "date_to": "2016-08-19", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8845.57" + } +}, +{ + "model": "financialInputs.bills", + "pk": 383, + "fields": { + "building_id": 488, + "date_from": "2016-06-21", + "date_to": "2016-07-21", + "utility_type": "electricity", + "usage": "49800.00", + "charge": "8599.52" + } +}, +{ + "model": "financialInputs.bills", + "pk": 384, + "fields": { + "building_id": 488, + "date_from": "2016-05-20", + "date_to": "2016-06-21", + "utility_type": "electricity", + "usage": "48600.00", + "charge": "8688.43" + } +}, +{ + "model": "financialInputs.bills", + "pk": 385, + "fields": { + "building_id": 488, + "date_from": "2016-04-21", + "date_to": "2016-05-20", + "utility_type": "electricity", + "usage": "34800.00", + "charge": "5446.82" + } +}, +{ + "model": "financialInputs.bills", + "pk": 386, + "fields": { + "building_id": 488, + "date_from": "2016-03-23", + "date_to": "2016-04-21", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5424.90" + } +}, +{ + "model": "financialInputs.bills", + "pk": 387, + "fields": { + "building_id": 488, + "date_from": "2016-02-23", + "date_to": "2016-03-23", + "utility_type": "electricity", + "usage": "31200.00", + "charge": "5404.15" + } +}, +{ + "model": "financialInputs.bills", + "pk": 388, + "fields": { + "building_id": 488, + "date_from": "2016-01-22", + "date_to": "2016-02-23", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5376.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 389, + "fields": { + "building_id": 488, + "date_from": "2015-12-22", + "date_to": "2016-01-22", + "utility_type": "electricity", + "usage": "36600.00", + "charge": "6431.27" + } +}, +{ + "model": "financialInputs.bills", + "pk": 390, + "fields": { + "building_id": 488, + "date_from": "2015-11-19", + "date_to": "2015-12-22", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "5829.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 391, + "fields": { + "building_id": 488, + "date_from": "2015-10-21", + "date_to": "2015-11-19", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "6245.07" + } +}, +{ + "model": "financialInputs.bills", + "pk": 392, + "fields": { + "building_id": 488, + "date_from": "2015-09-21", + "date_to": "2015-10-21", + "utility_type": "electricity", + "usage": "36600.00", + "charge": "6303.98" + } +}, +{ + "model": "financialInputs.bills", + "pk": 393, + "fields": { + "building_id": 488, + "date_from": "2015-08-20", + "date_to": "2015-09-21", + "utility_type": "electricity", + "usage": "54000.00", + "charge": "9611.84" + } +}, +{ + "model": "financialInputs.bills", + "pk": 394, + "fields": { + "building_id": 488, + "date_from": "2015-07-22", + "date_to": "2015-08-20", + "utility_type": "electricity", + "usage": "51000.00", + "charge": "9320.90" + } +}, +{ + "model": "financialInputs.bills", + "pk": 395, + "fields": { + "building_id": 488, + "date_from": "2015-06-22", + "date_to": "2015-07-22", + "utility_type": "electricity", + "usage": "52800.00", + "charge": "10168.65" + } +}, +{ + "model": "financialInputs.bills", + "pk": 396, + "fields": { + "building_id": 488, + "date_from": "2015-05-21", + "date_to": "2015-06-22", + "utility_type": "electricity", + "usage": "49200.00", + "charge": "9277.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 397, + "fields": { + "building_id": 488, + "date_from": "2015-04-22", + "date_to": "2015-05-21", + "utility_type": "electricity", + "usage": "40200.00", + "charge": "7404.47" + } +}, +{ + "model": "financialInputs.bills", + "pk": 398, + "fields": { + "building_id": 488, + "date_from": "2015-03-24", + "date_to": "2015-04-22", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "5751.96" + } +}, +{ + "model": "financialInputs.bills", + "pk": 399, + "fields": { + "building_id": 297, + "date_from": "2017-02-22", + "date_to": "2017-03-23", + "utility_type": "electricity", + "usage": "25800.00", + "charge": "4509.82" + } +}, +{ + "model": "financialInputs.bills", + "pk": 400, + "fields": { + "building_id": 297, + "date_from": "2016-12-21", + "date_to": "2017-02-22", + "utility_type": "electricity", + "usage": "61800.00", + "charge": "10273.47" + } +}, +{ + "model": "financialInputs.bills", + "pk": 401, + "fields": { + "building_id": 297, + "date_from": "2016-11-18", + "date_to": "2016-12-21", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5594.74" + } +}, +{ + "model": "financialInputs.bills", + "pk": 402, + "fields": { + "building_id": 297, + "date_from": "2016-10-20", + "date_to": "2016-11-18", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5780.51" + } +}, +{ + "model": "financialInputs.bills", + "pk": 403, + "fields": { + "building_id": 297, + "date_from": "2016-09-20", + "date_to": "2016-10-20", + "utility_type": "electricity", + "usage": "37800.00", + "charge": "6412.98" + } +}, +{ + "model": "financialInputs.bills", + "pk": 404, + "fields": { + "building_id": 297, + "date_from": "2016-08-19", + "date_to": "2016-09-20", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8708.14" + } +}, +{ + "model": "financialInputs.bills", + "pk": 405, + "fields": { + "building_id": 297, + "date_from": "2016-07-21", + "date_to": "2016-08-19", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8845.57" + } +}, +{ + "model": "financialInputs.bills", + "pk": 406, + "fields": { + "building_id": 297, + "date_from": "2016-06-21", + "date_to": "2016-07-21", + "utility_type": "electricity", + "usage": "49800.00", + "charge": "8599.52" + } +}, +{ + "model": "financialInputs.bills", + "pk": 407, + "fields": { + "building_id": 297, + "date_from": "2016-05-20", + "date_to": "2016-06-21", + "utility_type": "electricity", + "usage": "48600.00", + "charge": "8688.43" + } +}, +{ + "model": "financialInputs.bills", + "pk": 408, + "fields": { + "building_id": 297, + "date_from": "2016-04-21", + "date_to": "2016-05-20", + "utility_type": "electricity", + "usage": "34800.00", + "charge": "5446.82" + } +}, +{ + "model": "financialInputs.bills", + "pk": 409, + "fields": { + "building_id": 297, + "date_from": "2016-03-23", + "date_to": "2016-04-21", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5424.90" + } +}, +{ + "model": "financialInputs.bills", + "pk": 410, + "fields": { + "building_id": 297, + "date_from": "2016-02-23", + "date_to": "2016-03-23", + "utility_type": "electricity", + "usage": "31200.00", + "charge": "5404.15" + } +}, +{ + "model": "financialInputs.bills", + "pk": 411, + "fields": { + "building_id": 297, + "date_from": "2016-01-22", + "date_to": "2016-02-23", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5376.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 412, + "fields": { + "building_id": 297, + "date_from": "2015-12-22", + "date_to": "2016-01-22", + "utility_type": "electricity", + "usage": "36600.00", + "charge": "6431.27" + } +}, +{ + "model": "financialInputs.bills", + "pk": 413, + "fields": { + "building_id": 297, + "date_from": "2015-11-19", + "date_to": "2015-12-22", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "5829.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 414, + "fields": { + "building_id": 297, + "date_from": "2015-10-21", + "date_to": "2015-11-19", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "6245.07" + } +}, +{ + "model": "financialInputs.bills", + "pk": 415, + "fields": { + "building_id": 297, + "date_from": "2015-09-21", + "date_to": "2015-10-21", + "utility_type": "electricity", + "usage": "36600.00", + "charge": "6303.98" + } +}, +{ + "model": "financialInputs.bills", + "pk": 416, + "fields": { + "building_id": 297, + "date_from": "2015-08-20", + "date_to": "2015-09-21", + "utility_type": "electricity", + "usage": "54000.00", + "charge": "9611.84" + } +}, +{ + "model": "financialInputs.bills", + "pk": 417, + "fields": { + "building_id": 297, + "date_from": "2015-07-22", + "date_to": "2015-08-20", + "utility_type": "electricity", + "usage": "51000.00", + "charge": "9320.90" + } +}, +{ + "model": "financialInputs.bills", + "pk": 418, + "fields": { + "building_id": 297, + "date_from": "2015-06-22", + "date_to": "2015-07-22", + "utility_type": "electricity", + "usage": "52800.00", + "charge": "10168.65" + } +}, +{ + "model": "financialInputs.bills", + "pk": 419, + "fields": { + "building_id": 297, + "date_from": "2015-05-21", + "date_to": "2015-06-22", + "utility_type": "electricity", + "usage": "49200.00", + "charge": "9277.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 420, + "fields": { + "building_id": 297, + "date_from": "2015-04-22", + "date_to": "2015-05-21", + "utility_type": "electricity", + "usage": "40200.00", + "charge": "7404.47" + } +}, +{ + "model": "financialInputs.bills", + "pk": 421, + "fields": { + "building_id": 297, + "date_from": "2015-03-24", + "date_to": "2015-04-22", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "5751.96" + } +}, +{ + "model": "financialInputs.bills", + "pk": 445, + "fields": { + "building_id": 8753, + "date_from": "2017-02-22", + "date_to": "2017-03-23", + "utility_type": "electricity", + "usage": "25800.00", + "charge": "4509.82" + } +}, +{ + "model": "financialInputs.bills", + "pk": 446, + "fields": { + "building_id": 8753, + "date_from": "2016-12-21", + "date_to": "2017-02-22", + "utility_type": "electricity", + "usage": "61800.00", + "charge": "10273.47" + } +}, +{ + "model": "financialInputs.bills", + "pk": 447, + "fields": { + "building_id": 8753, + "date_from": "2016-11-18", + "date_to": "2016-12-21", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5594.74" + } +}, +{ + "model": "financialInputs.bills", + "pk": 448, + "fields": { + "building_id": 8753, + "date_from": "2016-10-20", + "date_to": "2016-11-18", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5780.51" + } +}, +{ + "model": "financialInputs.bills", + "pk": 449, + "fields": { + "building_id": 8753, + "date_from": "2016-09-20", + "date_to": "2016-10-20", + "utility_type": "electricity", + "usage": "37800.00", + "charge": "6412.98" + } +}, +{ + "model": "financialInputs.bills", + "pk": 450, + "fields": { + "building_id": 8753, + "date_from": "2016-08-19", + "date_to": "2016-09-20", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8708.14" + } +}, +{ + "model": "financialInputs.bills", + "pk": 451, + "fields": { + "building_id": 8753, + "date_from": "2016-07-21", + "date_to": "2016-08-19", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8845.57" + } +}, +{ + "model": "financialInputs.bills", + "pk": 452, + "fields": { + "building_id": 8753, + "date_from": "2016-06-21", + "date_to": "2016-07-21", + "utility_type": "electricity", + "usage": "49800.00", + "charge": "8599.52" + } +}, +{ + "model": "financialInputs.bills", + "pk": 453, + "fields": { + "building_id": 8753, + "date_from": "2016-05-20", + "date_to": "2016-06-21", + "utility_type": "electricity", + "usage": "48600.00", + "charge": "8688.43" + } +}, +{ + "model": "financialInputs.bills", + "pk": 454, + "fields": { + "building_id": 8753, + "date_from": "2016-04-21", + "date_to": "2016-05-20", + "utility_type": "electricity", + "usage": "34800.00", + "charge": "5446.82" + } +}, +{ + "model": "financialInputs.bills", + "pk": 455, + "fields": { + "building_id": 8753, + "date_from": "2016-03-23", + "date_to": "2016-04-21", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5424.90" + } +}, +{ + "model": "financialInputs.bills", + "pk": 456, + "fields": { + "building_id": 8753, + "date_from": "2016-02-23", + "date_to": "2016-03-23", + "utility_type": "electricity", + "usage": "31200.00", + "charge": "5404.15" + } +}, +{ + "model": "financialInputs.bills", + "pk": 457, + "fields": { + "building_id": 8753, + "date_from": "2016-01-22", + "date_to": "2016-02-23", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5376.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 458, + "fields": { + "building_id": 8753, + "date_from": "2015-12-22", + "date_to": "2016-01-22", + "utility_type": "electricity", + "usage": "36600.00", + "charge": "6431.27" + } +}, +{ + "model": "financialInputs.bills", + "pk": 459, + "fields": { + "building_id": 8753, + "date_from": "2015-11-19", + "date_to": "2015-12-22", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "5829.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 460, + "fields": { + "building_id": 8753, + "date_from": "2015-10-21", + "date_to": "2015-11-19", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "6245.07" + } +}, +{ + "model": "financialInputs.bills", + "pk": 461, + "fields": { + "building_id": 8753, + "date_from": "2015-09-21", + "date_to": "2015-10-21", + "utility_type": "electricity", + "usage": "36600.00", + "charge": "6303.98" + } +}, +{ + "model": "financialInputs.bills", + "pk": 462, + "fields": { + "building_id": 8753, + "date_from": "2015-08-20", + "date_to": "2015-09-21", + "utility_type": "electricity", + "usage": "54000.00", + "charge": "9611.84" + } +}, +{ + "model": "financialInputs.bills", + "pk": 463, + "fields": { + "building_id": 8753, + "date_from": "2015-07-22", + "date_to": "2015-08-20", + "utility_type": "electricity", + "usage": "51000.00", + "charge": "9320.90" + } +}, +{ + "model": "financialInputs.bills", + "pk": 464, + "fields": { + "building_id": 8753, + "date_from": "2015-06-22", + "date_to": "2015-07-22", + "utility_type": "electricity", + "usage": "52800.00", + "charge": "10168.65" + } +}, +{ + "model": "financialInputs.bills", + "pk": 465, + "fields": { + "building_id": 8753, + "date_from": "2015-05-21", + "date_to": "2015-06-22", + "utility_type": "electricity", + "usage": "49200.00", + "charge": "9277.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 466, + "fields": { + "building_id": 8753, + "date_from": "2015-04-22", + "date_to": "2015-05-21", + "utility_type": "electricity", + "usage": "40200.00", + "charge": "7404.47" + } +}, +{ + "model": "financialInputs.bills", + "pk": 467, + "fields": { + "building_id": 8753, + "date_from": "2015-03-24", + "date_to": "2015-04-22", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "5751.96" + } +}, +{ + "model": "financialInputs.bills", + "pk": 532, + "fields": { + "building_id": 289, + "date_from": "2017-02-22", + "date_to": "2017-03-23", + "utility_type": "electricity", + "usage": "25800.00", + "charge": "4509.82" + } +}, +{ + "model": "financialInputs.bills", + "pk": 533, + "fields": { + "building_id": 289, + "date_from": "2016-12-21", + "date_to": "2017-02-22", + "utility_type": "electricity", + "usage": "61800.00", + "charge": "10273.47" + } +}, +{ + "model": "financialInputs.bills", + "pk": 534, + "fields": { + "building_id": 289, + "date_from": "2016-11-18", + "date_to": "2016-12-21", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5594.74" + } +}, +{ + "model": "financialInputs.bills", + "pk": 535, + "fields": { + "building_id": 289, + "date_from": "2016-10-20", + "date_to": "2016-11-18", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5780.51" + } +}, +{ + "model": "financialInputs.bills", + "pk": 536, + "fields": { + "building_id": 289, + "date_from": "2016-09-20", + "date_to": "2016-10-20", + "utility_type": "electricity", + "usage": "37800.00", + "charge": "6412.98" + } +}, +{ + "model": "financialInputs.bills", + "pk": 537, + "fields": { + "building_id": 289, + "date_from": "2016-08-19", + "date_to": "2016-09-20", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8708.14" + } +}, +{ + "model": "financialInputs.bills", + "pk": 538, + "fields": { + "building_id": 289, + "date_from": "2016-07-21", + "date_to": "2016-08-19", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8845.57" + } +}, +{ + "model": "financialInputs.bills", + "pk": 539, + "fields": { + "building_id": 289, + "date_from": "2016-06-21", + "date_to": "2016-07-21", + "utility_type": "electricity", + "usage": "49800.00", + "charge": "8599.52" + } +}, +{ + "model": "financialInputs.bills", + "pk": 540, + "fields": { + "building_id": 289, + "date_from": "2016-05-20", + "date_to": "2016-06-21", + "utility_type": "electricity", + "usage": "48600.00", + "charge": "8688.43" + } +}, +{ + "model": "financialInputs.bills", + "pk": 541, + "fields": { + "building_id": 289, + "date_from": "2016-04-21", + "date_to": "2016-05-20", + "utility_type": "electricity", + "usage": "34800.00", + "charge": "5446.82" + } +}, +{ + "model": "financialInputs.bills", + "pk": 542, + "fields": { + "building_id": 289, + "date_from": "2016-03-23", + "date_to": "2016-04-21", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5424.90" + } +}, +{ + "model": "financialInputs.bills", + "pk": 543, + "fields": { + "building_id": 289, + "date_from": "2016-02-23", + "date_to": "2016-03-23", + "utility_type": "electricity", + "usage": "31200.00", + "charge": "5404.15" + } +}, +{ + "model": "financialInputs.bills", + "pk": 544, + "fields": { + "building_id": 289, + "date_from": "2016-01-22", + "date_to": "2016-02-23", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5376.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 545, + "fields": { + "building_id": 289, + "date_from": "2015-12-22", + "date_to": "2016-01-22", + "utility_type": "electricity", + "usage": "36600.00", + "charge": "6431.27" + } +}, +{ + "model": "financialInputs.bills", + "pk": 546, + "fields": { + "building_id": 289, + "date_from": "2015-11-19", + "date_to": "2015-12-22", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "5829.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 547, + "fields": { + "building_id": 289, + "date_from": "2015-10-21", + "date_to": "2015-11-19", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "6245.07" + } +}, +{ + "model": "financialInputs.bills", + "pk": 548, + "fields": { + "building_id": 289, + "date_from": "2015-09-21", + "date_to": "2015-10-21", + "utility_type": "electricity", + "usage": "36600.00", + "charge": "6303.98" + } +}, +{ + "model": "financialInputs.bills", + "pk": 549, + "fields": { + "building_id": 289, + "date_from": "2015-08-20", + "date_to": "2015-09-21", + "utility_type": "electricity", + "usage": "54000.00", + "charge": "9611.84" + } +}, +{ + "model": "financialInputs.bills", + "pk": 550, + "fields": { + "building_id": 289, + "date_from": "2015-07-22", + "date_to": "2015-08-20", + "utility_type": "electricity", + "usage": "51000.00", + "charge": "9320.90" + } +}, +{ + "model": "financialInputs.bills", + "pk": 551, + "fields": { + "building_id": 289, + "date_from": "2015-06-22", + "date_to": "2015-07-22", + "utility_type": "electricity", + "usage": "52800.00", + "charge": "10168.65" + } +}, +{ + "model": "financialInputs.bills", + "pk": 552, + "fields": { + "building_id": 289, + "date_from": "2015-05-21", + "date_to": "2015-06-22", + "utility_type": "electricity", + "usage": "49200.00", + "charge": "9277.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 553, + "fields": { + "building_id": 289, + "date_from": "2015-04-22", + "date_to": "2015-05-21", + "utility_type": "electricity", + "usage": "40200.00", + "charge": "7404.47" + } +}, +{ + "model": "financialInputs.bills", + "pk": 554, + "fields": { + "building_id": 289, + "date_from": "2015-03-24", + "date_to": "2015-04-22", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "5751.96" + } +}, +{ + "model": "financialInputs.bills", + "pk": 555, + "fields": { + "building_id": 289, + "date_from": "2017-02-15", + "date_to": "2017-03-16", + "utility_type": "gas", + "usage": "929.00", + "charge": "1059.41" + } +}, +{ + "model": "financialInputs.bills", + "pk": 556, + "fields": { + "building_id": 289, + "date_from": "2017-01-17", + "date_to": "2017-02-15", + "utility_type": "gas", + "usage": "1083.00", + "charge": "1238.53" + } +}, +{ + "model": "financialInputs.bills", + "pk": 557, + "fields": { + "building_id": 289, + "date_from": "2016-12-15", + "date_to": "2017-01-17", + "utility_type": "gas", + "usage": "1076.00", + "charge": "1092.90" + } +}, +{ + "model": "financialInputs.bills", + "pk": 558, + "fields": { + "building_id": 289, + "date_from": "2016-11-15", + "date_to": "2016-12-15", + "utility_type": "gas", + "usage": "678.00", + "charge": "602.64" + } +}, +{ + "model": "financialInputs.bills", + "pk": 559, + "fields": { + "building_id": 289, + "date_from": "2016-10-17", + "date_to": "2016-11-15", + "utility_type": "gas", + "usage": "552.00", + "charge": "441.53" + } +}, +{ + "model": "financialInputs.bills", + "pk": 560, + "fields": { + "building_id": 289, + "date_from": "2016-09-16", + "date_to": "2016-10-17", + "utility_type": "gas", + "usage": "232.00", + "charge": "179.35" + } +}, +{ + "model": "financialInputs.bills", + "pk": 561, + "fields": { + "building_id": 289, + "date_from": "2016-08-17", + "date_to": "2016-09-16", + "utility_type": "gas", + "usage": "103.00", + "charge": "86.60" + } +}, +{ + "model": "financialInputs.bills", + "pk": 562, + "fields": { + "building_id": 289, + "date_from": "2016-07-19", + "date_to": "2016-08-17", + "utility_type": "gas", + "usage": "113.00", + "charge": "101.15" + } +}, +{ + "model": "financialInputs.bills", + "pk": 563, + "fields": { + "building_id": 289, + "date_from": "2016-06-17", + "date_to": "2016-07-19", + "utility_type": "gas", + "usage": "224.00", + "charge": "204.29" + } +}, +{ + "model": "financialInputs.bills", + "pk": 564, + "fields": { + "building_id": 289, + "date_from": "2016-05-20", + "date_to": "2016-06-17", + "utility_type": "gas", + "usage": "244.00", + "charge": "220.37" + } +}, +{ + "model": "financialInputs.bills", + "pk": 565, + "fields": { + "building_id": 289, + "date_from": "2016-04-18", + "date_to": "2016-05-20", + "utility_type": "gas", + "usage": "674.00", + "charge": "552.46" + } +}, +{ + "model": "financialInputs.bills", + "pk": 566, + "fields": { + "building_id": 289, + "date_from": "2016-03-16", + "date_to": "2016-04-18", + "utility_type": "gas", + "usage": "986.00", + "charge": "804.96" + } +}, +{ + "model": "financialInputs.bills", + "pk": 567, + "fields": { + "building_id": 289, + "date_from": "2016-02-16", + "date_to": "2016-03-16", + "utility_type": "gas", + "usage": "1017.00", + "charge": "898.21" + } +}, +{ + "model": "financialInputs.bills", + "pk": 568, + "fields": { + "building_id": 289, + "date_from": "2016-01-15", + "date_to": "2016-02-16", + "utility_type": "gas", + "usage": "1422.00", + "charge": "1243.22" + } +}, +{ + "model": "financialInputs.bills", + "pk": 569, + "fields": { + "building_id": 289, + "date_from": "2015-12-15", + "date_to": "2016-01-15", + "utility_type": "gas", + "usage": "1096.00", + "charge": "1042.92" + } +}, +{ + "model": "financialInputs.bills", + "pk": 570, + "fields": { + "building_id": 289, + "date_from": "2015-11-13", + "date_to": "2015-12-15", + "utility_type": "gas", + "usage": "934.00", + "charge": "865.51" + } +}, +{ + "model": "financialInputs.bills", + "pk": 571, + "fields": { + "building_id": 289, + "date_from": "2015-10-15", + "date_to": "2015-11-13", + "utility_type": "gas", + "usage": "563.00", + "charge": "487.05" + } +}, +{ + "model": "financialInputs.bills", + "pk": 572, + "fields": { + "building_id": 289, + "date_from": "2015-09-16", + "date_to": "2015-10-15", + "utility_type": "gas", + "usage": "329.00", + "charge": "275.92" + } +}, +{ + "model": "financialInputs.bills", + "pk": 573, + "fields": { + "building_id": 8753, + "date_from": "2017-02-15", + "date_to": "2017-03-16", + "utility_type": "gas", + "usage": "929.00", + "charge": "1059.41" + } +}, +{ + "model": "financialInputs.bills", + "pk": 574, + "fields": { + "building_id": 8753, + "date_from": "2017-01-17", + "date_to": "2017-02-15", + "utility_type": "gas", + "usage": "1083.00", + "charge": "1238.53" + } +}, +{ + "model": "financialInputs.bills", + "pk": 575, + "fields": { + "building_id": 8753, + "date_from": "2016-12-15", + "date_to": "2017-01-17", + "utility_type": "gas", + "usage": "1076.00", + "charge": "1092.90" + } +}, +{ + "model": "financialInputs.bills", + "pk": 576, + "fields": { + "building_id": 8753, + "date_from": "2016-11-15", + "date_to": "2016-12-15", + "utility_type": "gas", + "usage": "678.00", + "charge": "602.64" + } +}, +{ + "model": "financialInputs.bills", + "pk": 577, + "fields": { + "building_id": 8753, + "date_from": "2016-10-17", + "date_to": "2016-11-15", + "utility_type": "gas", + "usage": "552.00", + "charge": "441.53" + } +}, +{ + "model": "financialInputs.bills", + "pk": 578, + "fields": { + "building_id": 8753, + "date_from": "2016-09-16", + "date_to": "2016-10-17", + "utility_type": "gas", + "usage": "232.00", + "charge": "179.35" + } +}, +{ + "model": "financialInputs.bills", + "pk": 579, + "fields": { + "building_id": 8753, + "date_from": "2016-08-17", + "date_to": "2016-09-16", + "utility_type": "gas", + "usage": "103.00", + "charge": "86.60" + } +}, +{ + "model": "financialInputs.bills", + "pk": 580, + "fields": { + "building_id": 8753, + "date_from": "2016-07-19", + "date_to": "2016-08-17", + "utility_type": "gas", + "usage": "113.00", + "charge": "101.15" + } +}, +{ + "model": "financialInputs.bills", + "pk": 581, + "fields": { + "building_id": 8753, + "date_from": "2016-06-17", + "date_to": "2016-07-19", + "utility_type": "gas", + "usage": "224.00", + "charge": "204.29" + } +}, +{ + "model": "financialInputs.bills", + "pk": 582, + "fields": { + "building_id": 8753, + "date_from": "2016-05-20", + "date_to": "2016-06-17", + "utility_type": "gas", + "usage": "244.00", + "charge": "220.37" + } +}, +{ + "model": "financialInputs.bills", + "pk": 583, + "fields": { + "building_id": 8753, + "date_from": "2016-04-18", + "date_to": "2016-05-20", + "utility_type": "gas", + "usage": "674.00", + "charge": "552.46" + } +}, +{ + "model": "financialInputs.bills", + "pk": 584, + "fields": { + "building_id": 8753, + "date_from": "2016-03-16", + "date_to": "2016-04-18", + "utility_type": "gas", + "usage": "986.00", + "charge": "804.96" + } +}, +{ + "model": "financialInputs.bills", + "pk": 585, + "fields": { + "building_id": 8753, + "date_from": "2016-02-16", + "date_to": "2016-03-16", + "utility_type": "gas", + "usage": "1017.00", + "charge": "898.21" + } +}, +{ + "model": "financialInputs.bills", + "pk": 586, + "fields": { + "building_id": 8753, + "date_from": "2016-01-15", + "date_to": "2016-02-16", + "utility_type": "gas", + "usage": "1422.00", + "charge": "1243.22" + } +}, +{ + "model": "financialInputs.bills", + "pk": 587, + "fields": { + "building_id": 8753, + "date_from": "2015-12-15", + "date_to": "2016-01-15", + "utility_type": "gas", + "usage": "1096.00", + "charge": "1042.92" + } +}, +{ + "model": "financialInputs.bills", + "pk": 588, + "fields": { + "building_id": 8753, + "date_from": "2015-11-13", + "date_to": "2015-12-15", + "utility_type": "gas", + "usage": "934.00", + "charge": "865.51" + } +}, +{ + "model": "financialInputs.bills", + "pk": 589, + "fields": { + "building_id": 8753, + "date_from": "2015-10-15", + "date_to": "2015-11-13", + "utility_type": "gas", + "usage": "563.00", + "charge": "487.05" + } +}, +{ + "model": "financialInputs.bills", + "pk": 590, + "fields": { + "building_id": 8753, + "date_from": "2015-09-16", + "date_to": "2015-10-15", + "utility_type": "gas", + "usage": "329.00", + "charge": "275.92" + } +}, +{ + "model": "financialInputs.bills", + "pk": 591, + "fields": { + "building_id": 277, + "date_from": "2017-02-22", + "date_to": "2017-03-23", + "utility_type": "electricity", + "usage": "25800.00", + "charge": "4509.82" + } +}, +{ + "model": "financialInputs.bills", + "pk": 592, + "fields": { + "building_id": 277, + "date_from": "2016-12-21", + "date_to": "2017-02-22", + "utility_type": "electricity", + "usage": "61800.00", + "charge": "10273.47" + } +}, +{ + "model": "financialInputs.bills", + "pk": 593, + "fields": { + "building_id": 277, + "date_from": "2016-11-18", + "date_to": "2016-12-21", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5594.74" + } +}, +{ + "model": "financialInputs.bills", + "pk": 594, + "fields": { + "building_id": 277, + "date_from": "2016-10-20", + "date_to": "2016-11-18", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5780.51" + } +}, +{ + "model": "financialInputs.bills", + "pk": 595, + "fields": { + "building_id": 277, + "date_from": "2016-09-20", + "date_to": "2016-10-20", + "utility_type": "electricity", + "usage": "37800.00", + "charge": "6412.98" + } +}, +{ + "model": "financialInputs.bills", + "pk": 596, + "fields": { + "building_id": 277, + "date_from": "2016-08-19", + "date_to": "2016-09-20", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8708.14" + } +}, +{ + "model": "financialInputs.bills", + "pk": 597, + "fields": { + "building_id": 277, + "date_from": "2016-07-21", + "date_to": "2016-08-19", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8845.57" + } +}, +{ + "model": "financialInputs.bills", + "pk": 598, + "fields": { + "building_id": 277, + "date_from": "2016-06-21", + "date_to": "2016-07-21", + "utility_type": "electricity", + "usage": "49800.00", + "charge": "8599.52" + } +}, +{ + "model": "financialInputs.bills", + "pk": 599, + "fields": { + "building_id": 277, + "date_from": "2016-05-20", + "date_to": "2016-06-21", + "utility_type": "electricity", + "usage": "48600.00", + "charge": "8688.43" + } +}, +{ + "model": "financialInputs.bills", + "pk": 600, + "fields": { + "building_id": 277, + "date_from": "2016-04-21", + "date_to": "2016-05-20", + "utility_type": "electricity", + "usage": "34800.00", + "charge": "5446.82" + } +}, +{ + "model": "financialInputs.bills", + "pk": 601, + "fields": { + "building_id": 277, + "date_from": "2016-03-23", + "date_to": "2016-04-21", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5424.90" + } +}, +{ + "model": "financialInputs.bills", + "pk": 602, + "fields": { + "building_id": 277, + "date_from": "2016-02-23", + "date_to": "2016-03-23", + "utility_type": "electricity", + "usage": "31200.00", + "charge": "5404.15" + } +}, +{ + "model": "financialInputs.bills", + "pk": 603, + "fields": { + "building_id": 277, + "date_from": "2016-01-22", + "date_to": "2016-02-23", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5376.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 604, + "fields": { + "building_id": 277, + "date_from": "2015-12-22", + "date_to": "2016-01-22", + "utility_type": "electricity", + "usage": "36600.00", + "charge": "6431.27" + } +}, +{ + "model": "financialInputs.bills", + "pk": 605, + "fields": { + "building_id": 277, + "date_from": "2015-11-19", + "date_to": "2015-12-22", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "5829.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 606, + "fields": { + "building_id": 277, + "date_from": "2015-10-21", + "date_to": "2015-11-19", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "6245.07" + } +}, +{ + "model": "financialInputs.bills", + "pk": 607, + "fields": { + "building_id": 277, + "date_from": "2015-09-21", + "date_to": "2015-10-21", + "utility_type": "electricity", + "usage": "36600.00", + "charge": "6303.98" + } +}, +{ + "model": "financialInputs.bills", + "pk": 608, + "fields": { + "building_id": 277, + "date_from": "2015-08-20", + "date_to": "2015-09-21", + "utility_type": "electricity", + "usage": "54000.00", + "charge": "9611.84" + } +}, +{ + "model": "financialInputs.bills", + "pk": 609, + "fields": { + "building_id": 277, + "date_from": "2015-07-22", + "date_to": "2015-08-20", + "utility_type": "electricity", + "usage": "51000.00", + "charge": "9320.90" + } +}, +{ + "model": "financialInputs.bills", + "pk": 610, + "fields": { + "building_id": 277, + "date_from": "2015-06-22", + "date_to": "2015-07-22", + "utility_type": "electricity", + "usage": "52800.00", + "charge": "10168.65" + } +}, +{ + "model": "financialInputs.bills", + "pk": 611, + "fields": { + "building_id": 277, + "date_from": "2015-05-21", + "date_to": "2015-06-22", + "utility_type": "electricity", + "usage": "49200.00", + "charge": "9277.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 612, + "fields": { + "building_id": 277, + "date_from": "2015-04-22", + "date_to": "2015-05-21", + "utility_type": "electricity", + "usage": "40200.00", + "charge": "7404.47" + } +}, +{ + "model": "financialInputs.bills", + "pk": 613, + "fields": { + "building_id": 277, + "date_from": "2015-03-24", + "date_to": "2015-04-22", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "5751.96" + } +}, +{ + "model": "financialInputs.bills", + "pk": 614, + "fields": { + "building_id": 28, + "date_from": "2017-02-22", + "date_to": "2017-03-23", + "utility_type": "electricity", + "usage": "25800.00", + "charge": "4509.82" + } +}, +{ + "model": "financialInputs.bills", + "pk": 615, + "fields": { + "building_id": 28, + "date_from": "2016-12-21", + "date_to": "2017-02-22", + "utility_type": "electricity", + "usage": "61800.00", + "charge": "10273.47" + } +}, +{ + "model": "financialInputs.bills", + "pk": 616, + "fields": { + "building_id": 28, + "date_from": "2016-11-18", + "date_to": "2016-12-21", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5594.74" + } +}, +{ + "model": "financialInputs.bills", + "pk": 617, + "fields": { + "building_id": 28, + "date_from": "2016-10-20", + "date_to": "2016-11-18", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5780.51" + } +}, +{ + "model": "financialInputs.bills", + "pk": 618, + "fields": { + "building_id": 28, + "date_from": "2016-09-20", + "date_to": "2016-10-20", + "utility_type": "electricity", + "usage": "37800.00", + "charge": "6412.98" + } +}, +{ + "model": "financialInputs.bills", + "pk": 619, + "fields": { + "building_id": 28, + "date_from": "2016-08-19", + "date_to": "2016-09-20", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8708.14" + } +}, +{ + "model": "financialInputs.bills", + "pk": 620, + "fields": { + "building_id": 28, + "date_from": "2016-07-21", + "date_to": "2016-08-19", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8845.57" + } +}, +{ + "model": "financialInputs.bills", + "pk": 621, + "fields": { + "building_id": 28, + "date_from": "2016-06-21", + "date_to": "2016-07-21", + "utility_type": "electricity", + "usage": "49800.00", + "charge": "8599.52" + } +}, +{ + "model": "financialInputs.bills", + "pk": 622, + "fields": { + "building_id": 28, + "date_from": "2016-05-20", + "date_to": "2016-06-21", + "utility_type": "electricity", + "usage": "48600.00", + "charge": "8688.43" + } +}, +{ + "model": "financialInputs.bills", + "pk": 623, + "fields": { + "building_id": 28, + "date_from": "2016-04-21", + "date_to": "2016-05-20", + "utility_type": "electricity", + "usage": "34800.00", + "charge": "5446.82" + } +}, +{ + "model": "financialInputs.bills", + "pk": 624, + "fields": { + "building_id": 28, + "date_from": "2016-03-23", + "date_to": "2016-04-21", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5424.90" + } +}, +{ + "model": "financialInputs.bills", + "pk": 625, + "fields": { + "building_id": 28, + "date_from": "2016-02-23", + "date_to": "2016-03-23", + "utility_type": "electricity", + "usage": "31200.00", + "charge": "5404.15" + } +}, +{ + "model": "financialInputs.bills", + "pk": 626, + "fields": { + "building_id": 28, + "date_from": "2016-01-22", + "date_to": "2016-02-23", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5376.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 627, + "fields": { + "building_id": 28, + "date_from": "2015-12-22", + "date_to": "2016-01-22", + "utility_type": "electricity", + "usage": "36600.00", + "charge": "6431.27" + } +}, +{ + "model": "financialInputs.bills", + "pk": 628, + "fields": { + "building_id": 28, + "date_from": "2015-11-19", + "date_to": "2015-12-22", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "5829.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 629, + "fields": { + "building_id": 28, + "date_from": "2015-10-21", + "date_to": "2015-11-19", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "6245.07" + } +}, +{ + "model": "financialInputs.bills", + "pk": 630, + "fields": { + "building_id": 28, + "date_from": "2015-09-21", + "date_to": "2015-10-21", + "utility_type": "electricity", + "usage": "36600.00", + "charge": "6303.98" + } +}, +{ + "model": "financialInputs.bills", + "pk": 631, + "fields": { + "building_id": 28, + "date_from": "2015-08-20", + "date_to": "2015-09-21", + "utility_type": "electricity", + "usage": "54000.00", + "charge": "9611.84" + } +}, +{ + "model": "financialInputs.bills", + "pk": 632, + "fields": { + "building_id": 28, + "date_from": "2015-07-22", + "date_to": "2015-08-20", + "utility_type": "electricity", + "usage": "51000.00", + "charge": "9320.90" + } +}, +{ + "model": "financialInputs.bills", + "pk": 633, + "fields": { + "building_id": 28, + "date_from": "2015-06-22", + "date_to": "2015-07-22", + "utility_type": "electricity", + "usage": "52800.00", + "charge": "10168.65" + } +}, +{ + "model": "financialInputs.bills", + "pk": 634, + "fields": { + "building_id": 28, + "date_from": "2015-05-21", + "date_to": "2015-06-22", + "utility_type": "electricity", + "usage": "49200.00", + "charge": "9277.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 635, + "fields": { + "building_id": 28, + "date_from": "2015-04-22", + "date_to": "2015-05-21", + "utility_type": "electricity", + "usage": "40200.00", + "charge": "7404.47" + } +}, +{ + "model": "financialInputs.bills", + "pk": 636, + "fields": { + "building_id": 28, + "date_from": "2015-03-24", + "date_to": "2015-04-22", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "5751.96" + } +}, +{ + "model": "financialInputs.bills", + "pk": 637, + "fields": { + "building_id": 207, + "date_from": "2017-02-15", + "date_to": "2017-03-16", + "utility_type": "gas", + "usage": "929.00", + "charge": "1059.41" + } +}, +{ + "model": "financialInputs.bills", + "pk": 638, + "fields": { + "building_id": 207, + "date_from": "2017-01-17", + "date_to": "2017-02-15", + "utility_type": "gas", + "usage": "1083.00", + "charge": "1238.53" + } +}, +{ + "model": "financialInputs.bills", + "pk": 639, + "fields": { + "building_id": 207, + "date_from": "2016-12-15", + "date_to": "2017-01-17", + "utility_type": "gas", + "usage": "1076.00", + "charge": "1092.90" + } +}, +{ + "model": "financialInputs.bills", + "pk": 640, + "fields": { + "building_id": 207, + "date_from": "2016-11-15", + "date_to": "2016-12-15", + "utility_type": "gas", + "usage": "678.00", + "charge": "602.64" + } +}, +{ + "model": "financialInputs.bills", + "pk": 641, + "fields": { + "building_id": 207, + "date_from": "2016-10-17", + "date_to": "2016-11-15", + "utility_type": "gas", + "usage": "552.00", + "charge": "441.53" + } +}, +{ + "model": "financialInputs.bills", + "pk": 642, + "fields": { + "building_id": 207, + "date_from": "2016-09-16", + "date_to": "2016-10-17", + "utility_type": "gas", + "usage": "232.00", + "charge": "179.35" + } +}, +{ + "model": "financialInputs.bills", + "pk": 643, + "fields": { + "building_id": 207, + "date_from": "2016-08-17", + "date_to": "2016-09-16", + "utility_type": "gas", + "usage": "103.00", + "charge": "86.60" + } +}, +{ + "model": "financialInputs.bills", + "pk": 644, + "fields": { + "building_id": 207, + "date_from": "2016-07-19", + "date_to": "2016-08-17", + "utility_type": "gas", + "usage": "113.00", + "charge": "101.15" + } +}, +{ + "model": "financialInputs.bills", + "pk": 645, + "fields": { + "building_id": 207, + "date_from": "2016-06-17", + "date_to": "2016-07-19", + "utility_type": "gas", + "usage": "224.00", + "charge": "204.29" + } +}, +{ + "model": "financialInputs.bills", + "pk": 646, + "fields": { + "building_id": 207, + "date_from": "2016-05-20", + "date_to": "2016-06-17", + "utility_type": "gas", + "usage": "244.00", + "charge": "220.37" + } +}, +{ + "model": "financialInputs.bills", + "pk": 647, + "fields": { + "building_id": 207, + "date_from": "2016-04-18", + "date_to": "2016-05-20", + "utility_type": "gas", + "usage": "674.00", + "charge": "552.46" + } +}, +{ + "model": "financialInputs.bills", + "pk": 648, + "fields": { + "building_id": 207, + "date_from": "2016-03-16", + "date_to": "2016-04-18", + "utility_type": "gas", + "usage": "986.00", + "charge": "804.96" + } +}, +{ + "model": "financialInputs.bills", + "pk": 649, + "fields": { + "building_id": 207, + "date_from": "2016-02-16", + "date_to": "2016-03-16", + "utility_type": "gas", + "usage": "1017.00", + "charge": "898.21" + } +}, +{ + "model": "financialInputs.bills", + "pk": 650, + "fields": { + "building_id": 207, + "date_from": "2016-01-15", + "date_to": "2016-02-16", + "utility_type": "gas", + "usage": "1422.00", + "charge": "1243.22" + } +}, +{ + "model": "financialInputs.bills", + "pk": 651, + "fields": { + "building_id": 207, + "date_from": "2015-12-15", + "date_to": "2016-01-15", + "utility_type": "gas", + "usage": "1096.00", + "charge": "1042.92" + } +}, +{ + "model": "financialInputs.bills", + "pk": 652, + "fields": { + "building_id": 207, + "date_from": "2015-11-13", + "date_to": "2015-12-15", + "utility_type": "gas", + "usage": "934.00", + "charge": "865.51" + } +}, +{ + "model": "financialInputs.bills", + "pk": 653, + "fields": { + "building_id": 207, + "date_from": "2015-10-15", + "date_to": "2015-11-13", + "utility_type": "gas", + "usage": "563.00", + "charge": "487.05" + } +}, +{ + "model": "financialInputs.bills", + "pk": 654, + "fields": { + "building_id": 207, + "date_from": "2015-09-16", + "date_to": "2015-10-15", + "utility_type": "gas", + "usage": "329.00", + "charge": "275.92" + } +}, +{ + "model": "financialInputs.bills", + "pk": 655, + "fields": { + "building_id": 812, + "date_from": "2017-02-22", + "date_to": "2017-03-23", + "utility_type": "electricity", + "usage": "25800.00", + "charge": "4509.82" + } +}, +{ + "model": "financialInputs.bills", + "pk": 656, + "fields": { + "building_id": 812, + "date_from": "2016-12-21", + "date_to": "2017-02-22", + "utility_type": "electricity", + "usage": "61800.00", + "charge": "10273.47" + } +}, +{ + "model": "financialInputs.bills", + "pk": 657, + "fields": { + "building_id": 812, + "date_from": "2016-11-18", + "date_to": "2016-12-21", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5594.74" + } +}, +{ + "model": "financialInputs.bills", + "pk": 658, + "fields": { + "building_id": 812, + "date_from": "2016-10-20", + "date_to": "2016-11-18", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5780.51" + } +}, +{ + "model": "financialInputs.bills", + "pk": 659, + "fields": { + "building_id": 812, + "date_from": "2016-09-20", + "date_to": "2016-10-20", + "utility_type": "electricity", + "usage": "37800.00", + "charge": "6412.98" + } +}, +{ + "model": "financialInputs.bills", + "pk": 660, + "fields": { + "building_id": 812, + "date_from": "2016-08-19", + "date_to": "2016-09-20", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8708.14" + } +}, +{ + "model": "financialInputs.bills", + "pk": 661, + "fields": { + "building_id": 812, + "date_from": "2016-07-21", + "date_to": "2016-08-19", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8845.57" + } +}, +{ + "model": "financialInputs.bills", + "pk": 662, + "fields": { + "building_id": 812, + "date_from": "2016-06-21", + "date_to": "2016-07-21", + "utility_type": "electricity", + "usage": "49800.00", + "charge": "8599.52" + } +}, +{ + "model": "financialInputs.bills", + "pk": 663, + "fields": { + "building_id": 812, + "date_from": "2016-05-20", + "date_to": "2016-06-21", + "utility_type": "electricity", + "usage": "48600.00", + "charge": "8688.43" + } +}, +{ + "model": "financialInputs.bills", + "pk": 664, + "fields": { + "building_id": 812, + "date_from": "2016-04-21", + "date_to": "2016-05-20", + "utility_type": "electricity", + "usage": "34800.00", + "charge": "5446.82" + } +}, +{ + "model": "financialInputs.bills", + "pk": 665, + "fields": { + "building_id": 812, + "date_from": "2016-03-23", + "date_to": "2016-04-21", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5424.90" + } +}, +{ + "model": "financialInputs.bills", + "pk": 666, + "fields": { + "building_id": 812, + "date_from": "2016-02-23", + "date_to": "2016-03-23", + "utility_type": "electricity", + "usage": "31200.00", + "charge": "5404.15" + } +}, +{ + "model": "financialInputs.bills", + "pk": 667, + "fields": { + "building_id": 812, + "date_from": "2016-01-22", + "date_to": "2016-02-23", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5376.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 668, + "fields": { + "building_id": 812, + "date_from": "2015-12-22", + "date_to": "2016-01-22", + "utility_type": "electricity", + "usage": "36600.00", + "charge": "6431.27" + } +}, +{ + "model": "financialInputs.bills", + "pk": 669, + "fields": { + "building_id": 812, + "date_from": "2015-11-19", + "date_to": "2015-12-22", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "5829.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 670, + "fields": { + "building_id": 812, + "date_from": "2015-10-21", + "date_to": "2015-11-19", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "6245.07" + } +}, +{ + "model": "financialInputs.bills", + "pk": 671, + "fields": { + "building_id": 812, + "date_from": "2015-09-21", + "date_to": "2015-10-21", + "utility_type": "electricity", + "usage": "36600.00", + "charge": "6303.98" + } +}, +{ + "model": "financialInputs.bills", + "pk": 672, + "fields": { + "building_id": 812, + "date_from": "2015-08-20", + "date_to": "2015-09-21", + "utility_type": "electricity", + "usage": "54000.00", + "charge": "9611.84" + } +}, +{ + "model": "financialInputs.bills", + "pk": 673, + "fields": { + "building_id": 812, + "date_from": "2015-07-22", + "date_to": "2015-08-20", + "utility_type": "electricity", + "usage": "51000.00", + "charge": "9320.90" + } +}, +{ + "model": "financialInputs.bills", + "pk": 674, + "fields": { + "building_id": 812, + "date_from": "2015-06-22", + "date_to": "2015-07-22", + "utility_type": "electricity", + "usage": "52800.00", + "charge": "10168.65" + } +}, +{ + "model": "financialInputs.bills", + "pk": 675, + "fields": { + "building_id": 812, + "date_from": "2015-05-21", + "date_to": "2015-06-22", + "utility_type": "electricity", + "usage": "49200.00", + "charge": "9277.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 676, + "fields": { + "building_id": 812, + "date_from": "2015-04-22", + "date_to": "2015-05-21", + "utility_type": "electricity", + "usage": "40200.00", + "charge": "7404.47" + } +}, +{ + "model": "financialInputs.bills", + "pk": 677, + "fields": { + "building_id": 812, + "date_from": "2015-03-24", + "date_to": "2015-04-22", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "5751.96" + } +}, +{ + "model": "financialInputs.bills", + "pk": 678, + "fields": { + "building_id": 5466, + "date_from": "2017-02-22", + "date_to": "2017-03-23", + "utility_type": "electricity", + "usage": "25800.00", + "charge": "4509.82" + } +}, +{ + "model": "financialInputs.bills", + "pk": 679, + "fields": { + "building_id": 5466, + "date_from": "2016-12-21", + "date_to": "2017-02-22", + "utility_type": "electricity", + "usage": "61800.00", + "charge": "10273.47" + } +}, +{ + "model": "financialInputs.bills", + "pk": 680, + "fields": { + "building_id": 5466, + "date_from": "2016-11-18", + "date_to": "2016-12-21", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5594.74" + } +}, +{ + "model": "financialInputs.bills", + "pk": 681, + "fields": { + "building_id": 5466, + "date_from": "2016-10-20", + "date_to": "2016-11-18", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5780.51" + } +}, +{ + "model": "financialInputs.bills", + "pk": 682, + "fields": { + "building_id": 5466, + "date_from": "2016-09-20", + "date_to": "2016-10-20", + "utility_type": "electricity", + "usage": "37800.00", + "charge": "6412.98" + } +}, +{ + "model": "financialInputs.bills", + "pk": 683, + "fields": { + "building_id": 5466, + "date_from": "2016-08-19", + "date_to": "2016-09-20", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8708.14" + } +}, +{ + "model": "financialInputs.bills", + "pk": 684, + "fields": { + "building_id": 5466, + "date_from": "2016-07-21", + "date_to": "2016-08-19", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8845.57" + } +}, +{ + "model": "financialInputs.bills", + "pk": 685, + "fields": { + "building_id": 5466, + "date_from": "2016-06-21", + "date_to": "2016-07-21", + "utility_type": "electricity", + "usage": "49800.00", + "charge": "8599.52" + } +}, +{ + "model": "financialInputs.bills", + "pk": 686, + "fields": { + "building_id": 5466, + "date_from": "2016-05-20", + "date_to": "2016-06-21", + "utility_type": "electricity", + "usage": "48600.00", + "charge": "8688.43" + } +}, +{ + "model": "financialInputs.bills", + "pk": 687, + "fields": { + "building_id": 5466, + "date_from": "2016-04-21", + "date_to": "2016-05-20", + "utility_type": "electricity", + "usage": "34800.00", + "charge": "5446.82" + } +}, +{ + "model": "financialInputs.bills", + "pk": 688, + "fields": { + "building_id": 5466, + "date_from": "2016-03-23", + "date_to": "2016-04-21", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5424.90" + } +}, +{ + "model": "financialInputs.bills", + "pk": 689, + "fields": { + "building_id": 5466, + "date_from": "2016-02-23", + "date_to": "2016-03-23", + "utility_type": "electricity", + "usage": "31200.00", + "charge": "5404.15" + } +}, +{ + "model": "financialInputs.bills", + "pk": 690, + "fields": { + "building_id": 5466, + "date_from": "2016-01-22", + "date_to": "2016-02-23", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5376.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 691, + "fields": { + "building_id": 5466, + "date_from": "2015-12-22", + "date_to": "2016-01-22", + "utility_type": "electricity", + "usage": "36600.00", + "charge": "6431.27" + } +}, +{ + "model": "financialInputs.bills", + "pk": 692, + "fields": { + "building_id": 5466, + "date_from": "2015-11-19", + "date_to": "2015-12-22", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "5829.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 693, + "fields": { + "building_id": 5466, + "date_from": "2015-10-21", + "date_to": "2015-11-19", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "6245.07" + } +}, +{ + "model": "financialInputs.bills", + "pk": 694, + "fields": { + "building_id": 5466, + "date_from": "2015-09-21", + "date_to": "2015-10-21", + "utility_type": "electricity", + "usage": "36600.00", + "charge": "6303.98" + } +}, +{ + "model": "financialInputs.bills", + "pk": 695, + "fields": { + "building_id": 5466, + "date_from": "2015-08-20", + "date_to": "2015-09-21", + "utility_type": "electricity", + "usage": "54000.00", + "charge": "9611.84" + } +}, +{ + "model": "financialInputs.bills", + "pk": 696, + "fields": { + "building_id": 5466, + "date_from": "2015-07-22", + "date_to": "2015-08-20", + "utility_type": "electricity", + "usage": "51000.00", + "charge": "9320.90" + } +}, +{ + "model": "financialInputs.bills", + "pk": 697, + "fields": { + "building_id": 5466, + "date_from": "2015-06-22", + "date_to": "2015-07-22", + "utility_type": "electricity", + "usage": "52800.00", + "charge": "10168.65" + } +}, +{ + "model": "financialInputs.bills", + "pk": 698, + "fields": { + "building_id": 5466, + "date_from": "2015-05-21", + "date_to": "2015-06-22", + "utility_type": "electricity", + "usage": "49200.00", + "charge": "9277.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 699, + "fields": { + "building_id": 5466, + "date_from": "2015-04-22", + "date_to": "2015-05-21", + "utility_type": "electricity", + "usage": "40200.00", + "charge": "7404.47" + } +}, +{ + "model": "financialInputs.bills", + "pk": 700, + "fields": { + "building_id": 5466, + "date_from": "2015-03-24", + "date_to": "2015-04-22", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "5751.96" + } +}, +{ + "model": "financialInputs.bills", + "pk": 701, + "fields": { + "building_id": 2003, + "date_from": "2017-02-22", + "date_to": "2017-03-23", + "utility_type": "electricity", + "usage": "25800.00", + "charge": "4509.82" + } +}, +{ + "model": "financialInputs.bills", + "pk": 702, + "fields": { + "building_id": 2003, + "date_from": "2016-12-21", + "date_to": "2017-02-22", + "utility_type": "electricity", + "usage": "61800.00", + "charge": "10273.47" + } +}, +{ + "model": "financialInputs.bills", + "pk": 703, + "fields": { + "building_id": 2003, + "date_from": "2016-11-18", + "date_to": "2016-12-21", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5594.74" + } +}, +{ + "model": "financialInputs.bills", + "pk": 704, + "fields": { + "building_id": 2003, + "date_from": "2016-10-20", + "date_to": "2016-11-18", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5780.51" + } +}, +{ + "model": "financialInputs.bills", + "pk": 705, + "fields": { + "building_id": 2003, + "date_from": "2016-09-20", + "date_to": "2016-10-20", + "utility_type": "electricity", + "usage": "37800.00", + "charge": "6412.98" + } +}, +{ + "model": "financialInputs.bills", + "pk": 706, + "fields": { + "building_id": 2003, + "date_from": "2016-08-19", + "date_to": "2016-09-20", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8708.14" + } +}, +{ + "model": "financialInputs.bills", + "pk": 707, + "fields": { + "building_id": 2003, + "date_from": "2016-07-21", + "date_to": "2016-08-19", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8845.57" + } +}, +{ + "model": "financialInputs.bills", + "pk": 708, + "fields": { + "building_id": 2003, + "date_from": "2016-06-21", + "date_to": "2016-07-21", + "utility_type": "electricity", + "usage": "49800.00", + "charge": "8599.52" + } +}, +{ + "model": "financialInputs.bills", + "pk": 709, + "fields": { + "building_id": 2003, + "date_from": "2016-05-20", + "date_to": "2016-06-21", + "utility_type": "electricity", + "usage": "48600.00", + "charge": "8688.43" + } +}, +{ + "model": "financialInputs.bills", + "pk": 710, + "fields": { + "building_id": 2003, + "date_from": "2016-04-21", + "date_to": "2016-05-20", + "utility_type": "electricity", + "usage": "34800.00", + "charge": "5446.82" + } +}, +{ + "model": "financialInputs.bills", + "pk": 711, + "fields": { + "building_id": 2003, + "date_from": "2016-03-23", + "date_to": "2016-04-21", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5424.90" + } +}, +{ + "model": "financialInputs.bills", + "pk": 712, + "fields": { + "building_id": 2003, + "date_from": "2016-02-23", + "date_to": "2016-03-23", + "utility_type": "electricity", + "usage": "31200.00", + "charge": "5404.15" + } +}, +{ + "model": "financialInputs.bills", + "pk": 713, + "fields": { + "building_id": 2003, + "date_from": "2016-01-22", + "date_to": "2016-02-23", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5376.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 714, + "fields": { + "building_id": 2003, + "date_from": "2015-12-22", + "date_to": "2016-01-22", + "utility_type": "electricity", + "usage": "36600.00", + "charge": "6431.27" + } +}, +{ + "model": "financialInputs.bills", + "pk": 715, + "fields": { + "building_id": 2003, + "date_from": "2015-11-19", + "date_to": "2015-12-22", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "5829.68" + } +}, +{ + "model": "financialInputs.bills", + "pk": 716, + "fields": { + "building_id": 2003, + "date_from": "2015-10-21", + "date_to": "2015-11-19", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "6245.07" + } +}, +{ + "model": "financialInputs.bills", + "pk": 717, + "fields": { + "building_id": 2003, + "date_from": "2015-09-21", + "date_to": "2015-10-21", + "utility_type": "electricity", + "usage": "36600.00", + "charge": "6303.98" + } +}, +{ + "model": "financialInputs.bills", + "pk": 718, + "fields": { + "building_id": 2003, + "date_from": "2015-08-20", + "date_to": "2015-09-21", + "utility_type": "electricity", + "usage": "54000.00", + "charge": "9611.84" + } +}, +{ + "model": "financialInputs.bills", + "pk": 719, + "fields": { + "building_id": 2003, + "date_from": "2015-07-22", + "date_to": "2015-08-20", + "utility_type": "electricity", + "usage": "51000.00", + "charge": "9320.90" + } +}, +{ + "model": "financialInputs.bills", + "pk": 720, + "fields": { + "building_id": 2003, + "date_from": "2015-06-22", + "date_to": "2015-07-22", + "utility_type": "electricity", + "usage": "52800.00", + "charge": "10168.65" + } +}, +{ + "model": "financialInputs.bills", + "pk": 721, + "fields": { + "building_id": 2003, + "date_from": "2015-05-21", + "date_to": "2015-06-22", + "utility_type": "electricity", + "usage": "49200.00", + "charge": "9277.00" + } +}, +{ + "model": "financialInputs.bills", + "pk": 722, + "fields": { + "building_id": 2003, + "date_from": "2015-04-22", + "date_to": "2015-05-21", + "utility_type": "electricity", + "usage": "40200.00", + "charge": "7404.47" + } +}, +{ + "model": "financialInputs.bills", + "pk": 723, + "fields": { + "building_id": 2003, + "date_from": "2015-03-24", + "date_to": "2015-04-22", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "5751.96" + } +}, +{ + "model": "financialInputs.estimationalgorithm", + "pk": 1, + "fields": { + "algorithm": "Rough Estimation", + "building_id": 457 + } +}, +{ + "model": "financialInputs.estimationalgorithm", + "pk": 2, + "fields": { + "algorithm": "Rough Estimation", + "building_id": 509 + } +}, +{ + "model": "financialInputs.estimationalgorithm", + "pk": 3, + "fields": { + "algorithm": "Rough Estimation", + "building_id": 187896 + } +}, +{ + "model": "financialInputs.estimationalgorithm", + "pk": 4, + "fields": { + "algorithm": "Rough Estimation", + "building_id": 488 + } +}, +{ + "model": "financialInputs.estimationalgorithm", + "pk": 5, + "fields": { + "algorithm": "Rough Estimation", + "building_id": 297 + } +}, +{ + "model": "financialInputs.estimationalgorithm", + "pk": 6, + "fields": { + "algorithm": "Rough Estimation", + "building_id": 289 + } +}, +{ + "model": "financialInputs.estimationalgorithm", + "pk": 7, + "fields": { + "algorithm": "Rough Estimation", + "building_id": 8753 + } +}, +{ + "model": "financialInputs.estimationalgorithm", + "pk": 8, + "fields": { + "algorithm": "Rough Estimation", + "building_id": 8743 + } +}, +{ + "model": "financialInputs.estimationalgorithm", + "pk": 9, + "fields": { + "algorithm": "Rough Estimation", + "building_id": 11 + } +}, +{ + "model": "financialInputs.estimationalgorithm", + "pk": 10, + "fields": { + "algorithm": "Rough Estimation", + "building_id": 277 + } +}, +{ + "model": "financialInputs.estimationalgorithm", + "pk": 11, + "fields": { + "algorithm": "Rough Estimation", + "building_id": 28 + } +}, +{ + "model": "financialInputs.estimationalgorithm", + "pk": 12, + "fields": { + "algorithm": "Rough Estimation", + "building_id": 207 + } +}, +{ + "model": "financialInputs.estimationalgorithm", + "pk": 13, + "fields": { + "algorithm": "Rough Estimation", + "building_id": 812 + } +}, +{ + "model": "financialInputs.estimationalgorithm", + "pk": 14, + "fields": { + "algorithm": "Rough Estimation", + "building_id": 5466 + } +}, +{ + "model": "financialInputs.estimationalgorithm", + "pk": 15, + "fields": { + "algorithm": "Rough Estimation", + "building_id": 2002 + } +}, +{ + "model": "financialInputs.estimationalgorithm", + "pk": 16, + "fields": { + "algorithm": "Rough Estimation", + "building_id": 2003 + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2254, + "fields": { + "building_id": 8753, + "year": "2014", + "electricity": "82473.13", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "6686.16", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2255, + "fields": { + "building_id": 8753, + "year": "2015", + "electricity": "83108.87", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "6748.39", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2256, + "fields": { + "building_id": 8753, + "year": "2016", + "electricity": "83839.67", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "6797.83", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2257, + "fields": { + "building_id": 8753, + "year": "2017", + "electricity": "85516.56", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "6927.36", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2258, + "fields": { + "building_id": 8753, + "year": "2018", + "electricity": "87650.14", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "7098.94", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2259, + "fields": { + "building_id": 8753, + "year": "2019", + "electricity": "89797.71", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "7274.48", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2260, + "fields": { + "building_id": 8753, + "year": "2020", + "electricity": "91900.16", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "7444.99", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2261, + "fields": { + "building_id": 8753, + "year": "2021", + "electricity": "93851.39", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "7605.94", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2262, + "fields": { + "building_id": 8753, + "year": "2022", + "electricity": "95627.40", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "7750.85", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2263, + "fields": { + "building_id": 8753, + "year": "2023", + "electricity": "97371.86", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "7892.45", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2264, + "fields": { + "building_id": 8753, + "year": "2024", + "electricity": "99155.59", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "8036.75", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2265, + "fields": { + "building_id": 8753, + "year": "2025", + "electricity": "100999.33", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "8186.00", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2266, + "fields": { + "building_id": 8753, + "year": "2026", + "electricity": "102987.98", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "8345.65", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2267, + "fields": { + "building_id": 8753, + "year": "2027", + "electricity": "105128.49", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "8518.62", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2268, + "fields": { + "building_id": 8753, + "year": "2028", + "electricity": "107321.71", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "8696.60", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2269, + "fields": { + "building_id": 8753, + "year": "2029", + "electricity": "109516.91", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "8874.94", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2270, + "fields": { + "building_id": 8753, + "year": "2030", + "electricity": "111712.78", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "9053.20", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2271, + "fields": { + "building_id": 8753, + "year": "2031", + "electricity": "113915.17", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "9232.00", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2272, + "fields": { + "building_id": 8753, + "year": "2032", + "electricity": "116143.70", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "9412.61", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2273, + "fields": { + "building_id": 8753, + "year": "2033", + "electricity": "118423.26", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "9597.24", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2274, + "fields": { + "building_id": 8753, + "year": "2034", + "electricity": "120763.97", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "9786.78", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2275, + "fields": { + "building_id": 8753, + "year": "2035", + "electricity": "123168.44", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "9981.49", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2276, + "fields": { + "building_id": 8753, + "year": "2036", + "electricity": "125636.99", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "10181.41", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2277, + "fields": { + "building_id": 8753, + "year": "2037", + "electricity": "128159.45", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "10385.87", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2278, + "fields": { + "building_id": 8753, + "year": "2038", + "electricity": "130723.50", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "10593.76", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2304, + "fields": { + "building_id": 277, + "year": "2015", + "electricity": "72833.18", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2305, + "fields": { + "building_id": 277, + "year": "2016", + "electricity": "83839.67", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2306, + "fields": { + "building_id": 277, + "year": "2017", + "electricity": "85516.56", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2307, + "fields": { + "building_id": 277, + "year": "2018", + "electricity": "87650.14", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2308, + "fields": { + "building_id": 277, + "year": "2019", + "electricity": "89797.71", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2309, + "fields": { + "building_id": 277, + "year": "2020", + "electricity": "91900.16", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2310, + "fields": { + "building_id": 277, + "year": "2021", + "electricity": "93851.39", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2311, + "fields": { + "building_id": 277, + "year": "2022", + "electricity": "95627.40", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2312, + "fields": { + "building_id": 277, + "year": "2023", + "electricity": "97371.86", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2313, + "fields": { + "building_id": 277, + "year": "2024", + "electricity": "99155.59", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2314, + "fields": { + "building_id": 277, + "year": "2025", + "electricity": "100999.33", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2315, + "fields": { + "building_id": 277, + "year": "2026", + "electricity": "102987.98", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2316, + "fields": { + "building_id": 277, + "year": "2027", + "electricity": "105128.49", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2317, + "fields": { + "building_id": 277, + "year": "2028", + "electricity": "107321.71", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2318, + "fields": { + "building_id": 277, + "year": "2029", + "electricity": "109516.91", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2319, + "fields": { + "building_id": 277, + "year": "2030", + "electricity": "111712.78", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2320, + "fields": { + "building_id": 277, + "year": "2031", + "electricity": "113915.17", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2321, + "fields": { + "building_id": 277, + "year": "2032", + "electricity": "116143.70", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2322, + "fields": { + "building_id": 277, + "year": "2033", + "electricity": "118423.26", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2323, + "fields": { + "building_id": 277, + "year": "2034", + "electricity": "120763.97", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2324, + "fields": { + "building_id": 277, + "year": "2035", + "electricity": "123168.44", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2325, + "fields": { + "building_id": 277, + "year": "2036", + "electricity": "125636.99", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2326, + "fields": { + "building_id": 277, + "year": "2037", + "electricity": "128159.45", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2327, + "fields": { + "building_id": 277, + "year": "2038", + "electricity": "130723.50", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2328, + "fields": { + "building_id": 277, + "year": "2039", + "electricity": "133327.66", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2354, + "fields": { + "building_id": 28, + "year": "2014", + "electricity": "82473.13", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2355, + "fields": { + "building_id": 28, + "year": "2015", + "electricity": "83108.87", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "1.00", + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2356, + "fields": { + "building_id": 28, + "year": "2016", + "electricity": "83839.67", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2357, + "fields": { + "building_id": 28, + "year": "2017", + "electricity": "85516.56", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2358, + "fields": { + "building_id": 28, + "year": "2018", + "electricity": "87650.14", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2359, + "fields": { + "building_id": 28, + "year": "2019", + "electricity": "89797.71", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2360, + "fields": { + "building_id": 28, + "year": "2020", + "electricity": "91900.16", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2361, + "fields": { + "building_id": 28, + "year": "2021", + "electricity": "93851.39", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2362, + "fields": { + "building_id": 28, + "year": "2022", + "electricity": "95627.40", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2363, + "fields": { + "building_id": 28, + "year": "2023", + "electricity": "97371.86", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2364, + "fields": { + "building_id": 28, + "year": "2024", + "electricity": "99155.59", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2365, + "fields": { + "building_id": 28, + "year": "2025", + "electricity": "100999.33", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2366, + "fields": { + "building_id": 28, + "year": "2026", + "electricity": "102987.98", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2367, + "fields": { + "building_id": 28, + "year": "2027", + "electricity": "105128.49", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2368, + "fields": { + "building_id": 28, + "year": "2028", + "electricity": "107321.71", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2369, + "fields": { + "building_id": 28, + "year": "2029", + "electricity": "109516.91", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2370, + "fields": { + "building_id": 28, + "year": "2030", + "electricity": "111712.78", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2371, + "fields": { + "building_id": 28, + "year": "2031", + "electricity": "113915.17", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2372, + "fields": { + "building_id": 28, + "year": "2032", + "electricity": "116143.70", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2373, + "fields": { + "building_id": 28, + "year": "2033", + "electricity": "118423.26", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2374, + "fields": { + "building_id": 28, + "year": "2034", + "electricity": "120763.97", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2375, + "fields": { + "building_id": 28, + "year": "2035", + "electricity": "123168.44", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2376, + "fields": { + "building_id": 28, + "year": "2036", + "electricity": "125636.99", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2377, + "fields": { + "building_id": 28, + "year": "2037", + "electricity": "128159.45", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2378, + "fields": { + "building_id": 28, + "year": "2038", + "electricity": "130723.50", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2379, + "fields": { + "building_id": 207, + "year": "2017", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "3045.62", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2380, + "fields": { + "building_id": 207, + "year": "2018", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "7098.94", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2381, + "fields": { + "building_id": 207, + "year": "2019", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "7274.48", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2382, + "fields": { + "building_id": 207, + "year": "2020", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "7444.99", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2383, + "fields": { + "building_id": 207, + "year": "2021", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "7605.94", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2384, + "fields": { + "building_id": 207, + "year": "2022", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "7750.85", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2410, + "fields": { + "building_id": 289, + "year": "2014", + "electricity": "82473.13", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "6686.16", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2411, + "fields": { + "building_id": 289, + "year": "2015", + "electricity": "83108.87", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": "18000.00", + "oil_is_user_input": true, + "gas": "6748.39", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2412, + "fields": { + "building_id": 289, + "year": "2016", + "electricity": "83839.67", + "electricity_is_user_input": false, + "water": "2000.00", + "water_is_user_input": true, + "oil": "20000.00", + "oil_is_user_input": true, + "gas": "6797.83", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2413, + "fields": { + "building_id": 289, + "year": "2017", + "electricity": "85516.56", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "6927.36", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2414, + "fields": { + "building_id": 289, + "year": "2018", + "electricity": "87650.14", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "7098.94", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2415, + "fields": { + "building_id": 289, + "year": "2019", + "electricity": "89797.71", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "7274.48", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2416, + "fields": { + "building_id": 289, + "year": "2020", + "electricity": "91900.16", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "7444.99", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2417, + "fields": { + "building_id": 289, + "year": "2021", + "electricity": "93851.39", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "7605.94", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2418, + "fields": { + "building_id": 289, + "year": "2022", + "electricity": "95627.40", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "7750.85", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2419, + "fields": { + "building_id": 289, + "year": "2023", + "electricity": "97371.86", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "7892.45", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2420, + "fields": { + "building_id": 289, + "year": "2024", + "electricity": "99155.59", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "8036.75", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2421, + "fields": { + "building_id": 289, + "year": "2025", + "electricity": "100999.33", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "8186.00", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2422, + "fields": { + "building_id": 289, + "year": "2026", + "electricity": "102987.98", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "8345.65", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2423, + "fields": { + "building_id": 289, + "year": "2027", + "electricity": "105128.49", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "8518.62", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2424, + "fields": { + "building_id": 289, + "year": "2028", + "electricity": "107321.71", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "8696.60", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2425, + "fields": { + "building_id": 289, + "year": "2029", + "electricity": "109516.91", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "8874.94", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2426, + "fields": { + "building_id": 289, + "year": "2030", + "electricity": "111712.78", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "9053.20", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2427, + "fields": { + "building_id": 289, + "year": "2031", + "electricity": "113915.17", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "9232.00", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2428, + "fields": { + "building_id": 289, + "year": "2032", + "electricity": "116143.70", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "9412.61", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2429, + "fields": { + "building_id": 289, + "year": "2033", + "electricity": "118423.26", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "9597.24", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2430, + "fields": { + "building_id": 289, + "year": "2034", + "electricity": "120763.97", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "9786.78", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2431, + "fields": { + "building_id": 289, + "year": "2035", + "electricity": "123168.44", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "9981.49", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2432, + "fields": { + "building_id": 289, + "year": "2036", + "electricity": "125636.99", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "10181.41", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2433, + "fields": { + "building_id": 289, + "year": "2037", + "electricity": "128159.45", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "10385.87", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2434, + "fields": { + "building_id": 289, + "year": "2038", + "electricity": "130723.50", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "10593.76", + "gas_is_user_input": false + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2485, + "fields": { + "building_id": 2002, + "year": "2014", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2486, + "fields": { + "building_id": 2002, + "year": "2015", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2487, + "fields": { + "building_id": 2002, + "year": "2016", + "electricity": "1000.00", + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": "1100.00", + "oil_is_user_input": true, + "gas": "2000.00", + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2488, + "fields": { + "building_id": 2002, + "year": "2017", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2489, + "fields": { + "building_id": 2002, + "year": "2018", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2490, + "fields": { + "building_id": 2002, + "year": "2019", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2491, + "fields": { + "building_id": 2002, + "year": "2020", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2492, + "fields": { + "building_id": 2002, + "year": "2021", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2493, + "fields": { + "building_id": 2002, + "year": "2022", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2494, + "fields": { + "building_id": 2002, + "year": "2023", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2495, + "fields": { + "building_id": 2002, + "year": "2024", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2496, + "fields": { + "building_id": 2002, + "year": "2025", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2497, + "fields": { + "building_id": 2002, + "year": "2026", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2498, + "fields": { + "building_id": 2002, + "year": "2027", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2499, + "fields": { + "building_id": 2002, + "year": "2028", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2500, + "fields": { + "building_id": 2002, + "year": "2029", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2501, + "fields": { + "building_id": 2002, + "year": "2030", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2502, + "fields": { + "building_id": 2002, + "year": "2031", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2503, + "fields": { + "building_id": 2002, + "year": "2032", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2504, + "fields": { + "building_id": 2002, + "year": "2033", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2505, + "fields": { + "building_id": 2002, + "year": "2034", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2506, + "fields": { + "building_id": 2002, + "year": "2035", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2507, + "fields": { + "building_id": 2002, + "year": "2036", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2508, + "fields": { + "building_id": 2002, + "year": "2037", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2509, + "fields": { + "building_id": 2002, + "year": "2038", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2510, + "fields": { + "building_id": 2003, + "year": "2014", + "electricity": "82473.13", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2511, + "fields": { + "building_id": 2003, + "year": "2015", + "electricity": "83108.87", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2512, + "fields": { + "building_id": 2003, + "year": "2016", + "electricity": "83839.67", + "electricity_is_user_input": false, + "water": "20000.00", + "water_is_user_input": true, + "oil": "40000.00", + "oil_is_user_input": true, + "gas": "75000.00", + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2513, + "fields": { + "building_id": 2003, + "year": "2017", + "electricity": "85516.56", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2514, + "fields": { + "building_id": 2003, + "year": "2018", + "electricity": "87650.14", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2515, + "fields": { + "building_id": 2003, + "year": "2019", + "electricity": "89797.71", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2516, + "fields": { + "building_id": 2003, + "year": "2020", + "electricity": "91900.16", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2517, + "fields": { + "building_id": 2003, + "year": "2021", + "electricity": "93851.39", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2518, + "fields": { + "building_id": 2003, + "year": "2022", + "electricity": "95627.40", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2519, + "fields": { + "building_id": 2003, + "year": "2023", + "electricity": "97371.86", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2520, + "fields": { + "building_id": 2003, + "year": "2024", + "electricity": "99155.59", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2521, + "fields": { + "building_id": 2003, + "year": "2025", + "electricity": "100999.33", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2522, + "fields": { + "building_id": 2003, + "year": "2026", + "electricity": "102987.98", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2523, + "fields": { + "building_id": 2003, + "year": "2027", + "electricity": "105128.49", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2524, + "fields": { + "building_id": 2003, + "year": "2028", + "electricity": "107321.71", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2525, + "fields": { + "building_id": 2003, + "year": "2029", + "electricity": "109516.91", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2526, + "fields": { + "building_id": 2003, + "year": "2030", + "electricity": "111712.78", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2527, + "fields": { + "building_id": 2003, + "year": "2031", + "electricity": "113915.17", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2528, + "fields": { + "building_id": 2003, + "year": "2032", + "electricity": "116143.70", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2529, + "fields": { + "building_id": 2003, + "year": "2033", + "electricity": "118423.26", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2530, + "fields": { + "building_id": 2003, + "year": "2034", + "electricity": "120763.97", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2531, + "fields": { + "building_id": 2003, + "year": "2035", + "electricity": "123168.44", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2532, + "fields": { + "building_id": 2003, + "year": "2036", + "electricity": "125636.99", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2533, + "fields": { + "building_id": 2003, + "year": "2037", + "electricity": "128159.45", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.billsoverview", + "pk": 2534, + "fields": { + "building_id": 2003, + "year": "2038", + "electricity": "130723.50", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } +}, +{ + "model": "financialInputs.customerpreference", + "pk": 1, + "fields": { + "building_id": 457, + "downpayment": "0.00", + "expected_payback": "144", + "expected_net_noi_dscr": "1.05" + } +}, +{ + "model": "financialInputs.customerpreference", + "pk": 2, + "fields": { + "building_id": 509, + "downpayment": "0.00", + "expected_payback": "120", + "expected_net_noi_dscr": "1.15" + } +}, +{ + "model": "financialInputs.customerpreference", + "pk": 3, + "fields": { + "building_id": 187896, + "downpayment": "0.00", + "expected_payback": "120", + "expected_net_noi_dscr": "1.15" + } +}, +{ + "model": "financialInputs.customerpreference", + "pk": 4, + "fields": { + "building_id": 488, + "downpayment": "12000.00", + "expected_payback": "12", + "expected_net_noi_dscr": "1.15" + } +}, +{ + "model": "financialInputs.customerpreference", + "pk": 5, + "fields": { + "building_id": 289, + "downpayment": "50000.00", + "expected_payback": "12", + "expected_net_noi_dscr": "1.15" + } +}, +{ + "model": "financialInputs.customerpreference", + "pk": 6, + "fields": { + "building_id": 277, + "downpayment": "0.00", + "expected_payback": "120", + "expected_net_noi_dscr": "1.15" + } +}, +{ + "model": "financialInputs.customerpreference", + "pk": 7, + "fields": { + "building_id": 207, + "downpayment": "0.00", + "expected_payback": "999", + "expected_net_noi_dscr": "1.15" + } +}, +{ + "model": "financialInputs.customerpreference", + "pk": 8, + "fields": { + "building_id": 28, + "downpayment": "0.00", + "expected_payback": "999", + "expected_net_noi_dscr": "1.15" + } +}, +{ + "model": "financialInputs.customerpreference", + "pk": 9, + "fields": { + "building_id": 812, + "downpayment": "0.00", + "expected_payback": "999", + "expected_net_noi_dscr": "1.15" + } +}, +{ + "model": "financialInputs.customerpreference", + "pk": 10, + "fields": { + "building_id": 8753, + "downpayment": "0.00", + "expected_payback": "999", + "expected_net_noi_dscr": "1.15" + } +}, +{ + "model": "financialInputs.customerpreference", + "pk": 11, + "fields": { + "building_id": 5466, + "downpayment": "0.00", + "expected_payback": "120", + "expected_net_noi_dscr": "1.15" + } +}, +{ + "model": "financialInputs.customerpreference", + "pk": 12, + "fields": { + "building_id": 2002, + "downpayment": "0.00", + "expected_payback": "120", + "expected_net_noi_dscr": "1.15" + } +}, +{ + "model": "financialInputs.customerpreference", + "pk": 13, + "fields": { + "building_id": 2003, + "downpayment": "0.00", + "expected_payback": "120", + "expected_net_noi_dscr": "1.15" + } +}, +{ + "model": "financialInputs.liabilities", + "pk": 33, + "fields": { + "building_id": 509, + "input_date": "2014-01-01", + "lender": "Joe Levine Fund", + "monthly_service": "100.00", + "remaining_term": "120" + } +}, +{ + "model": "financialInputs.liabilities", + "pk": 34, + "fields": { + "building_id": 509, + "input_date": "2013-01-01", + "lender": "A lender", + "monthly_service": "300.00", + "remaining_term": "80" + } +}, +{ + "model": "financialInputs.liabilities", + "pk": 40, + "fields": { + "building_id": 187896, + "input_date": "2015-01-01", + "lender": "Lender 1", + "monthly_service": "100.00", + "remaining_term": "100" + } +}, +{ + "model": "financialInputs.liabilities", + "pk": 43, + "fields": { + "building_id": 2102, + "input_date": "2017-05-11", + "lender": "dss", + "monthly_service": "22.00", + "remaining_term": "22" + } +}, +{ + "model": "financialInputs.liabilities", + "pk": 44, + "fields": { + "building_id": 457, + "input_date": "2017-01-04", + "lender": "Joe Levine Fund", + "monthly_service": "500.00", + "remaining_term": "48" + } +}, +{ + "model": "financialInputs.liabilities", + "pk": 45, + "fields": { + "building_id": 457, + "input_date": "2017-01-01", + "lender": "Morris Loan Shark", + "monthly_service": "300.00", + "remaining_term": "24" + } +}, +{ + "model": "financialInputs.liabilities", + "pk": 50, + "fields": { + "building_id": 488, + "input_date": "2017-02-01", + "lender": "Adarsh Murthy", + "monthly_service": "200.00", + "remaining_term": "120" + } +}, +{ + "model": "financialInputs.liabilities", + "pk": 51, + "fields": { + "building_id": 488, + "input_date": "2017-03-02", + "lender": "Jose", + "monthly_service": "220.00", + "remaining_term": "100" + } +}, +{ + "model": "financialInputs.liabilities", + "pk": 54, + "fields": { + "building_id": 289, + "input_date": "2017-05-11", + "lender": "Adarsh Murthy", + "monthly_service": "120.00", + "remaining_term": "100" + } +}, +{ + "model": "financialInputs.cashbalance", + "pk": 50, + "fields": { + "building_id": 509, + "statement_date": "2010-12-09", + "is_from_balance_sheet": true, + "balance_amount": "20000.00" + } +}, +{ + "model": "financialInputs.cashbalance", + "pk": 51, + "fields": { + "building_id": 509, + "statement_date": "2015-12-01", + "is_from_balance_sheet": true, + "balance_amount": "25000.00" + } +}, +{ + "model": "financialInputs.cashbalance", + "pk": 52, + "fields": { + "building_id": 187896, + "statement_date": "2016-12-01", + "is_from_balance_sheet": true, + "balance_amount": "20000.00" + } +}, +{ + "model": "financialInputs.cashbalance", + "pk": 53, + "fields": { + "building_id": 187896, + "statement_date": "2015-12-01", + "is_from_balance_sheet": true, + "balance_amount": "25000.00" + } +}, +{ + "model": "financialInputs.cashbalance", + "pk": 65, + "fields": { + "building_id": 457, + "statement_date": "2016-11-24", + "is_from_balance_sheet": true, + "balance_amount": "25000.00" + } +}, +{ + "model": "financialInputs.cashbalance", + "pk": 66, + "fields": { + "building_id": 457, + "statement_date": "2015-11-12", + "is_from_balance_sheet": true, + "balance_amount": "27000.00" + } +}, +{ + "model": "financialInputs.cashbalance", + "pk": 67, + "fields": { + "building_id": 457, + "statement_date": "2014-12-18", + "is_from_balance_sheet": false, + "balance_amount": "38000.00" + } +}, +{ + "model": "financialInputs.cashbalance", + "pk": 68, + "fields": { + "building_id": 457, + "statement_date": "2017-04-10", + "is_from_balance_sheet": true, + "balance_amount": "40000.00" + } +}, +{ + "model": "financialInputs.cashbalance", + "pk": 69, + "fields": { + "building_id": 488, + "statement_date": "2017-04-01", + "is_from_balance_sheet": true, + "balance_amount": "1000.00" + } +}, +{ + "model": "financialInputs.cashbalance", + "pk": 71, + "fields": { + "building_id": 277, + "statement_date": "2016-12-23", + "is_from_balance_sheet": true, + "balance_amount": "23000.00" + } +}, +{ + "model": "financialInputs.cashbalance", + "pk": 72, + "fields": { + "building_id": 207, + "statement_date": "2017-03-15", + "is_from_balance_sheet": true, + "balance_amount": "24000.00" + } +}, +{ + "model": "financialInputs.cashbalance", + "pk": 73, + "fields": { + "building_id": 289, + "statement_date": "2016-12-21", + "is_from_balance_sheet": true, + "balance_amount": "50000.00" + } +}, +{ + "model": "financialInputs.cashbalance", + "pk": 74, + "fields": { + "building_id": 812, + "statement_date": "2017-03-02", + "is_from_balance_sheet": true, + "balance_amount": "30000.00" + } +}, +{ + "model": "financialInputs.cashbalance", + "pk": 75, + "fields": { + "building_id": 2002, + "statement_date": "2016-12-01", + "is_from_balance_sheet": true, + "balance_amount": "25000.00" + } +}, +{ + "model": "financialInputs.cashbalance", + "pk": 76, + "fields": { + "building_id": 2003, + "statement_date": "2015-12-10", + "is_from_balance_sheet": true, + "balance_amount": "25000.00" + } +}, +{ + "model": "financialInputs.incomestatement", + "pk": 566, + "fields": { + "building_id": 8753, + "year": "2014", + "revenue": "10.00", + "utility_expense": "10.00", + "other_utility_expense": "-89149.29", + "non_utility_operating_expense": "1.00" + } +}, +{ + "model": "financialInputs.incomestatement", + "pk": 567, + "fields": { + "building_id": 8753, + "year": "2015", + "revenue": "20.00", + "utility_expense": "20.00", + "other_utility_expense": "-89837.26", + "non_utility_operating_expense": "2.00" + } +}, +{ + "model": "financialInputs.incomestatement", + "pk": 568, + "fields": { + "building_id": 8753, + "year": "2016", + "revenue": "30.00", + "utility_expense": "30.00", + "other_utility_expense": "-90607.50", + "non_utility_operating_expense": "3.00" + } +}, +{ + "model": "financialInputs.incomestatement", + "pk": 575, + "fields": { + "building_id": 28, + "year": "2014", + "revenue": "1000.00", + "utility_expense": "10.00", + "other_utility_expense": "-82464.13", + "non_utility_operating_expense": "1.00" + } +}, +{ + "model": "financialInputs.incomestatement", + "pk": 576, + "fields": { + "building_id": 28, + "year": "2015", + "revenue": "2000.00", + "utility_expense": "230.00", + "other_utility_expense": "-82879.87", + "non_utility_operating_expense": "2.00" + } +}, +{ + "model": "financialInputs.incomestatement", + "pk": 577, + "fields": { + "building_id": 28, + "year": "2016", + "revenue": "3000.00", + "utility_expense": "30.00", + "other_utility_expense": "-83810.67", + "non_utility_operating_expense": "3.00" + } +}, +{ + "model": "financialInputs.incomestatement", + "pk": 578, + "fields": { + "building_id": 207, + "year": "2014", + "revenue": "200000.00", + "utility_expense": "120000.00", + "other_utility_expense": "113313.84", + "non_utility_operating_expense": "2000.00" + } +}, +{ + "model": "financialInputs.incomestatement", + "pk": 579, + "fields": { + "building_id": 207, + "year": "2015", + "revenue": "203000.00", + "utility_expense": "123000.00", + "other_utility_expense": "116251.61", + "non_utility_operating_expense": "3000.00" + } +}, +{ + "model": "financialInputs.incomestatement", + "pk": 580, + "fields": { + "building_id": 207, + "year": "2016", + "revenue": "204000.00", + "utility_expense": "129000.00", + "other_utility_expense": "122202.17", + "non_utility_operating_expense": "4000.00" + } +}, +{ + "model": "financialInputs.incomestatement", + "pk": 587, + "fields": { + "building_id": 289, + "year": "2014", + "revenue": "200000.00", + "utility_expense": "94000.00", + "other_utility_expense": "-14159.29", + "non_utility_operating_expense": "50000.00" + } +}, +{ + "model": "financialInputs.incomestatement", + "pk": 588, + "fields": { + "building_id": 289, + "year": "2015", + "revenue": "210000.00", + "utility_expense": "95000.00", + "other_utility_expense": "-12857.26", + "non_utility_operating_expense": "55000.00" + } +}, +{ + "model": "financialInputs.incomestatement", + "pk": 589, + "fields": { + "building_id": 289, + "year": "2016", + "revenue": "213000.00", + "utility_expense": "96000.00", + "other_utility_expense": "-14637.50", + "non_utility_operating_expense": "60000.00" + } +}, +{ + "model": "financialInputs.incomestatement", + "pk": 590, + "fields": { + "building_id": 2002, + "year": "2014", + "revenue": "200000.00", + "utility_expense": "100000.00", + "other_utility_expense": "93700.00", + "non_utility_operating_expense": "50000.00" + } +}, +{ + "model": "financialInputs.incomestatement", + "pk": 591, + "fields": { + "building_id": 2002, + "year": "2015", + "revenue": "201000.00", + "utility_expense": "105000.00", + "other_utility_expense": "98700.00", + "non_utility_operating_expense": "58000.00" + } +}, +{ + "model": "financialInputs.incomestatement", + "pk": 592, + "fields": { + "building_id": 2002, + "year": "2016", + "revenue": "202000.00", + "utility_expense": "110000.00", + "other_utility_expense": "103700.00", + "non_utility_operating_expense": "62000.00" + } +}, +{ + "model": "financialInputs.incomestatement", + "pk": 593, + "fields": { + "building_id": 2003, + "year": "2014", + "revenue": "210000.00", + "utility_expense": "90000.00", + "other_utility_expense": "-127473.13", + "non_utility_operating_expense": "40000.00" + } +}, +{ + "model": "financialInputs.incomestatement", + "pk": 594, + "fields": { + "building_id": 2003, + "year": "2015", + "revenue": "214000.00", + "utility_expense": "99000.00", + "other_utility_expense": "-119108.87", + "non_utility_operating_expense": "44000.00" + } +}, +{ + "model": "financialInputs.incomestatement", + "pk": 595, + "fields": { + "building_id": 2003, + "year": "2016", + "revenue": "219000.00", + "utility_expense": "108000.00", + "other_utility_expense": "-110839.67", + "non_utility_operating_expense": "50000.00" + } +}, +{ + "model": "financialInputs.lender", + "pk": 1, + "fields": { + "name": "NYCEEC" + } +}, +{ + "model": "financialInputs.lender", + "pk": 2, + "fields": { + "name": "Green Bank" + } +}, +{ + "model": "financialInputs.lender", + "pk": 3, + "fields": { + "name": "Deutsche Bank" + } +}, +{ + "model": "financialInputs.lender", + "pk": 4, + "fields": { + "name": "Goldman Sachs" + } +}, +{ + "model": "financialInputs.lender", + "pk": 5, + "fields": { + "name": "HPN" + } +}, +{ + "model": "financialInputs.defaultloan", + "pk": 1, + "fields": { + "lender": 1, + "fund": 1, + "interest_rate": "7.000", + "duration": "84", + "max_loan_amount": "5000000.00" + } +}, +{ + "model": "financialInputs.defaultloan", + "pk": 2, + "fields": { + "lender": 2, + "fund": 1, + "interest_rate": "8.000", + "duration": "96", + "max_loan_amount": "7000000.00" + } +}, +{ + "model": "financialInputs.defaultloan", + "pk": 3, + "fields": { + "lender": 3, + "fund": 1, + "interest_rate": "10.000", + "duration": "72", + "max_loan_amount": "10000000.00" + } +}, +{ + "model": "financialInputs.defaultloan", + "pk": 4, + "fields": { + "lender": 4, + "fund": 2, + "interest_rate": "4.500", + "duration": "120", + "max_loan_amount": "8000000.00" + } +}, +{ + "model": "financialInputs.defaultloan", + "pk": 5, + "fields": { + "lender": 5, + "fund": 2, + "interest_rate": "4.500", + "duration": "120", + "max_loan_amount": "2000000.00" + } +}, +{ + "model": "financialInputs.defaultloan", + "pk": 6, + "fields": { + "lender": 2, + "fund": 2, + "interest_rate": "7.000", + "duration": "84", + "max_loan_amount": "2000000.00" + } +}, +{ + "model": "financialInputs.loanoptions", + "pk": 21, + "fields": { + "building_id": 509, + "lender": 1, + "interest_rate": "7.000", + "duration": "120", + "max_loan_amount": "5000000.00" + } +}, +{ + "model": "financialInputs.loanoptions", + "pk": 22, + "fields": { + "building_id": 509, + "lender": 2, + "interest_rate": "4.000", + "duration": "96", + "max_loan_amount": "7000000.00" + } +}, +{ + "model": "financialInputs.loanoptions", + "pk": 41, + "fields": { + "building_id": 488, + "lender": 2, + "interest_rate": "8.000", + "duration": "96", + "max_loan_amount": "7000000.00" + } +}, +{ + "model": "financialInputs.loanoptions", + "pk": 42, + "fields": { + "building_id": 488, + "lender": 3, + "interest_rate": "10.000", + "duration": "72", + "max_loan_amount": "10000000.00" + } +}, +{ + "model": "financialInputs.loanoptions", + "pk": 46, + "fields": { + "building_id": 277, + "lender": 1, + "interest_rate": "7.000", + "duration": "84", + "max_loan_amount": "5000000.00" + } +}, +{ + "model": "financialInputs.loanoptions", + "pk": 47, + "fields": { + "building_id": 207, + "lender": 1, + "interest_rate": "7.000", + "duration": "84", + "max_loan_amount": "5000000.00" + } +}, +{ + "model": "financialInputs.loanoptions", + "pk": 49, + "fields": { + "building_id": 289, + "lender": 2, + "interest_rate": "8.000", + "duration": "120", + "max_loan_amount": "7000000.00" + } +}, +{ + "model": "financialInputs.loanoptions", + "pk": 50, + "fields": { + "building_id": 2002, + "lender": 1, + "interest_rate": "7.000", + "duration": "84", + "max_loan_amount": "5000000.00" + } +}, +{ + "model": "financialInputs.loanoptions", + "pk": 51, + "fields": { + "building_id": 2003, + "lender": 1, + "interest_rate": "7.000", + "duration": "84", + "max_loan_amount": "5000000.00" + } +}, +{ + "model": "financialInputs.growthrate", + "pk": 14, + "fields": { + "building_id": 509, + "growth_rate": "-1.00" + } +}, +{ + "model": "financialInputs.growthrate", + "pk": 15, + "fields": { + "building_id": 187896, + "growth_rate": "-2.00" + } +}, +{ + "model": "financialInputs.growthrate", + "pk": 72, + "fields": { + "building_id": 457, + "growth_rate": "0.60" + } +}, +{ + "model": "financialInputs.growthrate", + "pk": 73, + "fields": { + "building_id": 498, + "growth_rate": "-2.00" + } +}, +{ + "model": "financialInputs.growthrate", + "pk": 74, + "fields": { + "building_id": 488, + "growth_rate": "-2.00" + } +}, +{ + "model": "financialInputs.growthrate", + "pk": 75, + "fields": { + "building_id": 297, + "growth_rate": "-2.00" + } +}, +{ + "model": "financialInputs.growthrate", + "pk": 158, + "fields": { + "building_id": 8753, + "growth_rate": "-2.00" + } +}, +{ + "model": "financialInputs.growthrate", + "pk": 161, + "fields": { + "building_id": 28, + "growth_rate": "-2.00" + } +}, +{ + "model": "financialInputs.growthrate", + "pk": 162, + "fields": { + "building_id": 207, + "growth_rate": "-2.00" + } +}, +{ + "model": "financialInputs.growthrate", + "pk": 170, + "fields": { + "building_id": 289, + "growth_rate": "0.10" + } +}, +{ + "model": "financialInputs.growthrate", + "pk": 175, + "fields": { + "building_id": 2002, + "growth_rate": "-2.00" + } +}, +{ + "model": "financialInputs.growthrate", + "pk": 176, + "fields": { + "building_id": 2003, + "growth_rate": "-2.00" + } +} +] diff --git a/blocnote/apps/budgetSimulator/templates/budgetSimulator/index.html b/blocnote/apps/budgetSimulator/templates/budgetSimulator/index.html index 58bca79..c20b9c8 100644 --- a/blocnote/apps/budgetSimulator/templates/budgetSimulator/index.html +++ b/blocnote/apps/budgetSimulator/templates/budgetSimulator/index.html @@ -3,25 +3,26 @@ {% block content %}

Budget Simulator

- Building id: {{ building_id }} +
+
- Graph here. +
@@ -30,17 +31,9 @@
- Budget without downpayment - + Budget with Loan only +
- - - - - - - - @@ -49,17 +42,9 @@
- Budget with downpayment but loan used first -
Savings10%20%30%40%50%
+ Budget with Loan first +
- - - - - - - - @@ -68,17 +53,9 @@
- Max budget with downpayment used first -
Savings10%20%30%40%50%
+ Budget with SF first +
- - - - - - - - @@ -87,13 +64,23 @@
- TBD + Budget with SF maximum +
Savings10%20%30%40%50%
+ + + + +
+Go Back {% endblock %} {% block scripts %} + + + {% endblock %} diff --git a/blocnote/apps/budgetSimulator/tests.py b/blocnote/apps/budgetSimulator/tests.py index 7ce503c..10482ef 100644 --- a/blocnote/apps/budgetSimulator/tests.py +++ b/blocnote/apps/budgetSimulator/tests.py @@ -1,3 +1,823 @@ +"""Test all the function and views in budget endpoint.""" +from datetime import date from django.test import TestCase -# Create your tests here. +import json + +from blocnote.apps.financialInputs.models import Fund, FinancingOverview, CustomerPreference, GrowthRate, Liabilities +from blocnote.apps.financialInputs.models import CashBalance, LoanOptions, Lender, IncomeStatement, BillsOverview, Bills + +from .views import get_analysis_date +from .views import get_commissioning_date +from .views import get_customer_preference +from .views import get_growth_rate +from .views import get_liability +from .views import get_cash_balance +from .views import get_loan_input +from .views import get_raw_income_statement +from .views import get_annual_bills +from .views import get_raw_bill +from .views import Index +from bpfin.back_end_call.back_end_budget import budget_simulation + + +class GetAnalysisDateTest(TestCase): + """Test get_analysis_date function.""" + + def setUp(self): + """Store a fund for use.""" + Fund.objects.create(Name='Fund1') + + def test_analysis_date_1(self): + """Fetch analysis date for a building with id 233. + + Building with id 233 does not have financing overview records stored. This should raise an attribute error. + """ + self.assertRaises(AttributeError, get_analysis_date, 233) + + def test_analysis_date_2(self): + """Create and Fetch analysis date for building with id 233. + + Building with id 233 has nothing initially. Create financiang overview model with building id 233 and test + get_analysis_date function for 233 and check if the values match. + """ + fund = Fund.objects.get(Name='Fund1') + FinancingOverview.objects.create( + building_id=233, + fund=fund, + pro_forma_start_date=date(2014, 1, 1), + pro_forma_duration=25, + analysis_date=date(2017, 6, 5), + anticipated_construction_start_date=date(2017, 7, 1), + anticipated_commissioning_date=date(2017, 8, 1), + anticipated_construction_period=4 + ) + analysis_date = get_analysis_date(233) + expected_analysis_date = { + 'proforma_start': date(2014, 1, 1), + 'proforma_duration': 25, + } + self.assertEqual(analysis_date, expected_analysis_date) + + +class GetCommissioningDateTest(TestCase): + """Test get_commissioning_date function.""" + + def setUp(self): + """Store a fund for use.""" + Fund.objects.create(Name='Fund1') + + def test_commissioning_date_1(self): + """Fetch commissioning date for building with id 233. + + No financing over records exist for this building hence it should raise an attribute error. + """ + self.assertRaises(AttributeError, get_commissioning_date, 233) + + def test_commissioning_date_2(self): + """Create a financing overview record and test get_commissioning_date function.""" + fund = Fund.objects.get(Name='Fund1') + FinancingOverview.objects.create( + building_id=233, + fund=fund, + pro_forma_start_date=date(2014, 1, 1), + pro_forma_duration=25, + analysis_date=date(2017, 6, 5), + anticipated_construction_start_date=date(2017, 7, 1), + anticipated_commissioning_date=date(2017, 8, 1), + anticipated_construction_period=4 + ) + commissioning_date = get_commissioning_date(233) + expected_commissioning_date = date(2017, 8, 1) + self.assertEqual(commissioning_date, expected_commissioning_date) + + +class GetCustomerPreferenceTest(TestCase): + """Test get_customer_preference function.""" + + def test_customer_preference_1(self): + """Fetch customer preference for building with id 233. + + No customer preference record exists for building id 233. AttributeError should be raised. + """ + self.assertRaises(AttributeError, get_customer_preference, 233) + + def test_customer_preference_2(self): + """Create customer preference record and test get_customer_preference function.""" + CustomerPreference.objects.create( + building_id=233, + downpayment=100, + expected_payback=10, + expected_net_noi_dscr=1.15 + ) + customer_preference = get_customer_preference(233) + expected_customer_preference = { + 'downpayment_max': 100.0, + 'expected_payback': 10, + 'cust_saving_dscr': 1.15, + } + self.assertEqual(customer_preference, expected_customer_preference) + + +class GetGrowthRateTest(TestCase): + """Test get_growth_rate function.""" + + def test_growth_rate_1(self): + """Fetch growth rate for building with id 233. + + No growth is stored for building with id 233. This should raise an AttributeError. + """ + self.assertRaises(AttributeError, get_growth_rate, 233) + + def test_growth_rate_2(self): + """Create growth rate and test get_growth_rate function.""" + GrowthRate.objects.create( + building_id=233, + growth_rate=1 + ) + growth_rate = get_growth_rate(233) + expected_growth_rate = 1 + self.assertEqual(growth_rate, expected_growth_rate) + + +class GetLiabilitiesTest(TestCase): + """Test get_liability function.""" + + def test_liabilities_1(self): + """Test get_liability for building with id 233. + + No liabilities records exists for this building hence empty dictionary should be returned. + """ + liabilities = get_liability(233) + self.assertEqual(liabilities, {}) + + def test_liabilities_2(self): + """Test get_liability for different values. + + Create a liability record for this building id test the reult. + """ + Liabilities.objects.create( + building_id=233, + input_date=date(2016, 1, 1), + lender="Adarsh", + remaining_term=120, + monthly_service=300 + ) + liability = get_liability(233) + expected_liability = { + 'debt1': (300, "Adarsh", 120, date(2016, 1, 1)) + } + self.assertEqual(liability, expected_liability) + + def test_liability_3(self): + """Test get_liability for different values. + + Create 2 liability records for building 233 and validate the output. + """ + Liabilities.objects.create( + building_id=233, + input_date=date(2016, 1, 1), + lender="Adarsh", + remaining_term=120, + monthly_service=300 + ) + Liabilities.objects.create( + building_id=233, + input_date=date(2015, 1, 1), + lender="Tom", + remaining_term=100, + monthly_service=250 + ) + liability = get_liability(233) + expected_liability = { + 'debt1': (300, "Adarsh", 120, date(2016, 1, 1)), + 'debt2': (250, "Tom", 100, date(2015, 1, 1)) + } + self.assertEqual(liability, expected_liability) + + +class GetCashBalanceTest(TestCase): + """Test get_cash_balance function.""" + + def test_cash_balance_1(self): + """Test get_cash_balance for building with id 233. + + No cash balance record exist for this building so it should raise an AttributeError. + """ + self.assertRaises(AttributeError, get_cash_balance, 233) + + def test_cash_balance_2(self): + """Test get_cash_balance for different values. + + Create a cash balance record for building 233 and validate the result. + """ + CashBalance.objects.create( + building_id=233, + statement_date=date(2016, 12, 1), + is_from_balance_sheet=True, + balance_amount=20000 + ) + cash_balance = get_cash_balance(233) + expected_cash_balance = { + date(2016, 12, 1): (20000, True), + } + self.assertEqual(cash_balance, expected_cash_balance) + + def test_cash_balance_3(self): + """Test get_cash_balance for different values. + + Create 2 cash balance records for building 233 and validate the result. + """ + CashBalance.objects.create( + building_id=233, + statement_date=date(2016, 12, 1), + is_from_balance_sheet=True, + balance_amount=20000 + ) + CashBalance.objects.create( + building_id=233, + statement_date=date(2015, 12, 1), + is_from_balance_sheet=False, + balance_amount=30000 + ) + cash_balance = get_cash_balance(233) + expected_cash_balance = { + date(2016, 12, 1): (20000, True), + date(2015, 12, 1): (30000, False), + } + self.assertEqual(cash_balance, expected_cash_balance) + + +class GetLoanInputTest(TestCase): + """Test get_loan_input function.""" + + def test_loan_input_1(self): + """Test get_cash_balance for building with id 233. + + No loan options record exist for this building hence it should raise AttributeError. + """ + self.assertRaises(AttributeError, get_loan_input, 233) + + def test_loan_input_2(self): + """Test get_cash_balance for different inputs. + + Create a lender record. Create a loan options record and validate get_loan_input. + """ + Lender.objects.create( + name="Lender1" + ) + lender = Lender.objects.get(name="Lender1") + LoanOptions.objects.create( + building_id=233, + lender=lender, + interest_rate=8, + duration=100, + max_loan_amount=1000000 + ) + loan_options = get_loan_input(233) + expected_loan_options = [ + { + 'institute': "Lender1", + 'max_amount': 1000000, + 'interest': 0.08, + 'duration': 100, + } + ] + self.assertEqual(loan_options, expected_loan_options) + + +class GetRawIncomeStatementTest(TestCase): + """Test get_raw_income_statement function.""" + + def test_income_statement_1(self): + """Test get_raw_income_statement for building 233. + + No income statement exists for building 233. This should raise AttributeError. + """ + self.assertRaises(AttributeError, get_raw_income_statement, 233) + + def test_income_statement_2(self): + """Test get_raw_income_statement for different values. + + Create income statement objects for the 3 years and test the function. + """ + IncomeStatement.objects.create( + building_id=233, + year=2014, + revenue=200000, + utility_expense=90000, + other_utility_expense=80000, + non_utility_operating_expense=50000 + ) + IncomeStatement.objects.create( + building_id=233, + year=2015, + revenue=205000, + utility_expense=92000, + other_utility_expense=83000, + non_utility_operating_expense=55000 + ) + IncomeStatement.objects.create( + building_id=233, + year=2016, + revenue=210000, + utility_expense=94000, + other_utility_expense=86000, + non_utility_operating_expense=57000 + ) + raw_income_statement_input = get_raw_income_statement(233) + expected_raw_income_statement = { + 2014: { + 'revenue': 200000, + 'utility_expense': 90000, + 'non_utility_expense': 50000, + }, + 2015: { + 'revenue': 205000, + 'utility_expense': 92000, + 'non_utility_expense': 55000, + }, + 2016: { + 'revenue': 210000, + 'utility_expense': 94000, + 'non_utility_expense': 57000, + }, + } + self.assertEqual(raw_income_statement_input, expected_raw_income_statement) + + +class GetAnnualBillsTest(TestCase): + """Test get_annual_bills function.""" + + def test_annual_bills_1(self): + """Test get_annual_bills for building 233. + + No records exist for this building hence this should return an empty dictionary. + """ + annual_bills = get_annual_bills(233) + self.assertEqual(annual_bills, {}) + + def test_annual_bills_2(self): + """Test get_annual_bills for different values. + + Create a bills overview record with only electricity data and test the function. + """ + BillsOverview.objects.create( + building_id=233, + year=2014, + electricity=10000, + electricity_is_user_input=True + ) + annual_bills = get_annual_bills(233) + expected_annual_bills = { + 'electricity': { + 2014: 10000, + }, + } + self.assertEqual(annual_bills, expected_annual_bills) + + def test_annual_bills_3(self): + """Test get_annual_bills for different values. + + Create a bills overview records with only electricity data for 3 different years and test the function. + """ + BillsOverview.objects.create( + building_id=233, + year=2014, + electricity=10000, + electricity_is_user_input=True + ) + BillsOverview.objects.create( + building_id=233, + year=2015, + electricity=12000, + electricity_is_user_input=True + ) + BillsOverview.objects.create( + building_id=233, + year=2016, + electricity=15000, + electricity_is_user_input=True + ) + annual_bills = get_annual_bills(233) + expected_annual_bills = { + 'electricity': { + 2014: 10000, + 2015: 12000, + 2016: 15000, + }, + } + self.assertEqual(annual_bills, expected_annual_bills) + + def test_annual_bills_4(self): + """Test get_annual_bills for different values. + + Create a bills overview record with only electricity and gas data and test the function. + """ + BillsOverview.objects.create( + building_id=233, + year=2014, + electricity=10000, + electricity_is_user_input=True, + gas=5000, + gas_is_user_input=True + ) + annual_bills = get_annual_bills(233) + expected_annual_bills = { + 'electricity': { + 2014: 10000, + }, + 'gas': { + 2014: 5000, + }, + } + self.assertEqual(annual_bills, expected_annual_bills) + + def test_annual_bills_5(self): + """Test get_annual_bills for different values. + + Create a bills overview record with only electricity, gas and oil data and test the function. + """ + BillsOverview.objects.create( + building_id=233, + year=2014, + electricity=10000, + electricity_is_user_input=True, + gas=5000, + gas_is_user_input=True, + water=17000, + water_is_user_input=True + ) + annual_bills = get_annual_bills(233) + expected_annual_bills = { + 'electricity': { + 2014: 10000, + }, + 'gas': { + 2014: 5000, + }, + 'water': { + 2014: 17000, + }, + } + self.assertEqual(annual_bills, expected_annual_bills) + + def test_annual_bills_6(self): + """Test get_annual_bills for different values. + + Create a bills overview record and test the function. + """ + BillsOverview.objects.create( + building_id=233, + year=2014, + electricity=10000, + electricity_is_user_input=True + ) + BillsOverview.objects.create( + building_id=233, + year=2015, + electricity=12000, + electricity_is_user_input=True, + gas=5000, + gas_is_user_input=True + ) + BillsOverview.objects.create( + building_id=233, + year=2016, + electricity=14000, + electricity_is_user_input=True, + gas=7000, + gas_is_user_input=True, + water=17000, + water_is_user_input=True + ) + annual_bills = get_annual_bills(233) + expected_annual_bills = { + 'electricity': { + 2014: 10000, + 2015: 12000, + 2016: 14000, + }, + 'gas': { + 2015: 5000, + 2016: 7000, + }, + 'water': { + 2016: 17000, + }, + } + self.assertEqual(annual_bills, expected_annual_bills) + + +class GetRawBillsTest(TestCase): + """Test get_raw_bill function.""" + + def test_raw_bills_1(self): + """Test the function for building id 233. + + No bills exist for this building so it should return empty dictionary. + """ + raw_bills = get_raw_bill(233) + self.assertEqual(raw_bills, {}) + + def test_raw_bills_2(self): + """Test function for different values. + + Create Bills record with electricity bill and validate the function. + """ + Bills.objects.create( + building_id=233, + date_from=date(2015, 1, 1), + date_to=date(2015, 12, 31), + utility_type='electricity', + usage=100, + charge=5000, + ) + raw_bills = get_raw_bill(233) + expected_raw_bills = { + 'electricity': { + 'utility_type': 'electricity', + 'date_from': [date(2015, 1, 1)], + 'date_to': [date(2015, 12, 31)], + 'charge': [5000], + 'usage': [100], + }, + } + self.assertEqual(raw_bills, expected_raw_bills) + + def test_raw_bills_3(self): + """Test function for different values. + + Create Bills record with electricity and gas bills and validate the function. + """ + Bills.objects.create( + building_id=233, + date_from=date(2015, 1, 1), + date_to=date(2015, 12, 31), + utility_type='electricity', + usage=100, + charge=5000, + ) + Bills.objects.create( + building_id=233, + date_from=date(2014, 1, 1), + date_to=date(2014, 12, 31), + utility_type='gas', + usage=200, + charge=7000, + ) + raw_bills = get_raw_bill(233) + expected_raw_bills = { + 'electricity': { + 'utility_type': 'electricity', + 'date_from': [date(2015, 1, 1)], + 'date_to': [date(2015, 12, 31)], + 'charge': [5000], + 'usage': [100], + }, + 'gas': { + 'utility_type': 'gas', + 'date_from': [date(2014, 1, 1)], + 'date_to': [date(2014, 12, 31)], + 'charge': [7000], + 'usage': [200], + } + } + self.assertEqual(raw_bills, expected_raw_bills) + + def test_raw_bills_4(self): + """Test function for different values. + + Create Bills record with all bills and validate the function. + """ + Bills.objects.create( + building_id=233, + date_from=date(2014, 1, 1), + date_to=date(2014, 12, 31), + utility_type='electricity', + usage=100, + charge=5000, + ) + Bills.objects.create( + building_id=233, + date_from=date(2015, 1, 1), + date_to=date(2015, 12, 31), + utility_type='electricity', + usage=200, + charge=10000, + ) + Bills.objects.create( + building_id=233, + date_from=date(2016, 1, 1), + date_to=date(2016, 12, 31), + utility_type='electricity', + usage=300, + charge=13000, + ) + + Bills.objects.create( + building_id=233, + date_from=date(2015, 1, 1), + date_to=date(2015, 12, 31), + utility_type='gas', + usage=200, + charge=7000, + ) + Bills.objects.create( + building_id=233, + date_from=date(2016, 1, 1), + date_to=date(2016, 12, 31), + utility_type='gas', + usage=400, + charge=9500, + ) + + Bills.objects.create( + building_id=233, + date_from=date(2015, 1, 1), + date_to=date(2015, 12, 31), + utility_type='oil', + usage=100, + charge=5000, + ) + Bills.objects.create( + building_id=233, + date_from=date(2016, 1, 1), + date_to=date(2016, 12, 31), + utility_type='oil', + usage=250, + charge=6000, + ) + + Bills.objects.create( + building_id=233, + date_from=date(2016, 1, 1), + date_to=date(2016, 12, 31), + utility_type='water', + usage=200, + charge=2000, + ) + raw_bills = get_raw_bill(233) + expected_raw_bills = { + 'electricity': { + 'utility_type': 'electricity', + 'date_from': [date(2014, 1, 1), date(2015, 1, 1), date(2016, 1, 1)], + 'date_to': [date(2014, 12, 31), date(2015, 12, 31), date(2016, 12, 31)], + 'charge': [5000, 10000, 13000], + 'usage': [100, 200, 300], + }, + 'gas': { + 'utility_type': 'gas', + 'date_from': [date(2015, 1, 1), date(2016, 1, 1)], + 'date_to': [date(2015, 12, 31), date(2016, 12, 31)], + 'charge': [7000, 9500], + 'usage': [200, 400], + }, + 'oil': { + 'utility_type': 'oil', + 'date_from': [date(2015, 1, 1), date(2016, 1, 1)], + 'date_to': [date(2015, 12, 31), date(2016, 12, 31)], + 'charge': [5000, 6000], + 'usage': [100, 250], + }, + 'water': { + 'utility_type': 'water', + 'date_from': [date(2016, 1, 1)], + 'date_to': [date(2016, 12, 31)], + 'charge': [2000], + 'usage': [200], + }, + } + self.assertEqual(raw_bills, expected_raw_bills) + + +class BudgetSimulatorIndexTest(TestCase): + """Test the index view of budget endpoint.""" + + def test_index_test_1(self): + """Test the get route. + + Make sure the status is 200, and building_id is in the context of the response. + """ + response = self.client.get('/buildings/233/budget/') + self.assertEqual(response.status_code, 200) + self.assertTrue('building_id' in response.context) + self.assertEqual(response.context['building_id'], '233') + + +class BudgetSimulatorBudgetView(TestCase): + """Test the budget view of the budget endpoint.""" + + fixtures = ['financialInputs_views_testdata.json'] + + def test_budget_view_1(self): + """Test budget view for building with id 2000. + + building with id 2000 has no inputs stored. This should return a status code of 400. + """ + response = self.client.get('/buildings/2000/budget/budget-data/') + self.assertEqual(response.status_code, 400) + + def test_budget_view_2(self): + """Test budget view for building with id 289. + + Building with id 289 has all inputs store. This should return a status 200 with all the right outputs + for budget simulation. + """ + response = self.client.get('/buildings/289/budget/budget-data/') + response_content = json.loads(response.content) + req_dscr = { + 'req_noi_dscr': 1.15, + 'req_cash_dscr': 1.15, + 'req_saving_dscr': 1.10, + } + result = budget_simulation( + get_analysis_date(289), + get_commissioning_date(289), + get_customer_preference(289), + req_dscr, + get_raw_bill(289), + get_annual_bills(289), + get_raw_income_statement(289), + get_growth_rate(289), + get_liability(289), + get_cash_balance(289), + get_loan_input(289) + ) + self.assertEqual(response.status_code, 200) + self.assertTrue('instance' in response_content) + self.assertTrue('tables' in response_content['instance']) + self.assertTrue('saving_potential_list' in response_content['instance']) + self.assertEqual(len(result), 4) + + def test_budget_view_3(self): + """Test budget view for building with id 2001. + + Building with id 2001 has only the proforma inputs stored. This should return a status code of 200. + """ + response = self.client.get('/buildings/2001/budget/budget-data/') + self.assertEqual(response.status_code, 400) + + def test_budget_view_4(self): + """Test budget view for building with id 2002. + + Building with id 2002 has everything stored. The bills overview has water as empty. This should return + a status code of 200. + """ + response = self.client.get('/buildings/2002/budget/budget-data/') + response_content = json.loads(response.content) + req_dscr = { + 'req_noi_dscr': 1.15, + 'req_cash_dscr': 1.15, + 'req_saving_dscr': 1.10, + } + result = budget_simulation( + get_analysis_date(2002), + get_commissioning_date(2002), + get_customer_preference(2002), + req_dscr, + get_raw_bill(2002), + get_annual_bills(2002), + get_raw_income_statement(2002), + get_growth_rate(2002), + get_liability(2002), + get_cash_balance(2002), + get_loan_input(2002) + ) + self.assertEqual(response.status_code, 200) + self.assertTrue('instance' in response_content) + self.assertTrue('tables' in response_content['instance']) + self.assertTrue('saving_potential_list' in response_content['instance']) + self.assertEqual(len(result), 4) + + def test_budget_view_5(self): + """Test budget for building with id 2003. + + Building with id 2003 has all inputs stored except Liabilities. This should still return a success status with + status code 200. + """ + response = self.client.get('/buildings/2003/budget/budget-data/') + response_content = json.loads(response.content) + req_dscr = { + 'req_noi_dscr': 1.15, + 'req_cash_dscr': 1.15, + 'req_saving_dscr': 1.10, + } + result = budget_simulation( + get_analysis_date(2003), + get_commissioning_date(2003), + get_customer_preference(2003), + req_dscr, + get_raw_bill(2003), + get_annual_bills(2003), + get_raw_income_statement(2003), + get_growth_rate(2003), + get_liability(2003), + get_cash_balance(2003), + get_loan_input(2003) + ) + self.assertEqual(response.status_code, 200) + self.assertTrue('instance' in response_content) + self.assertTrue('tables' in response_content['instance']) + self.assertTrue('saving_potential_list' in response_content['instance']) + self.assertEqual(len(result), 4) diff --git a/blocnote/apps/budgetSimulator/urls.py b/blocnote/apps/budgetSimulator/urls.py index 0e4a968..069f62a 100644 --- a/blocnote/apps/budgetSimulator/urls.py +++ b/blocnote/apps/budgetSimulator/urls.py @@ -2,7 +2,9 @@ from django.conf.urls import url from . import views +app_name = 'budget_simulator' urlpatterns = [ url(r'^$', views.Index.as_view(), name='index'), + url(r'^budget-data/$', views.Budget.as_view(), name='budget'), ] diff --git a/blocnote/apps/budgetSimulator/views.py b/blocnote/apps/budgetSimulator/views.py index f623259..f6d24e1 100644 --- a/blocnote/apps/budgetSimulator/views.py +++ b/blocnote/apps/budgetSimulator/views.py @@ -1,6 +1,254 @@ """Define the endpoints for budget simulator.""" from django.shortcuts import render from django.views import View +from django.http import JsonResponse + +from bpfin.back_end_call.back_end_budget import budget_simulation + +from blocnote.apps.financialInputs.models import FinancingOverview, Bills, BillsOverview, IncomeStatement, GrowthRate +from blocnote.apps.financialInputs.models import Liabilities, CashBalance, CustomerPreference, LoanOptions + + +def get_analysis_date(building_id): + """Fetch analysis date from the database for the given building id.""" + financing_overview_objects = FinancingOverview.objects.filter(building_id=building_id) + if financing_overview_objects: + return { + 'proforma_start': financing_overview_objects[0].pro_forma_start_date, + 'proforma_duration': int(financing_overview_objects[0].pro_forma_duration), + } + else: + raise AttributeError("Could not find analysis date for given building id.") + + +def get_commissioning_date(building_id): + """Fetch commissioning date from the database for the given building id.""" + financing_overview_objects = FinancingOverview.objects.filter(building_id=building_id) + if financing_overview_objects: + return financing_overview_objects[0].anticipated_commissioning_date + else: + raise AttributeError("Could not find commissioning date for given building id.") + + +def get_customer_preference(building_id): + """Fetch the customer preference from the database for this building id.""" + customer_preference_objs = CustomerPreference.objects.filter(building_id=building_id) + if customer_preference_objs: + customer_preference_obj = customer_preference_objs[0] + customer_preference = { + 'downpayment_max': float(customer_preference_obj.downpayment), + 'expected_payback': int(customer_preference_obj.expected_payback), + 'cust_saving_dscr': float(customer_preference_obj.expected_net_noi_dscr) + } + return customer_preference + else: + raise AttributeError("Could not find customer preference data for this building id.") + + +def get_raw_bill(building_id): + """Fetch the utility bills for a given building id.""" + utilities = [ + 'electricity', + 'gas', + 'oil', + 'water', + ] + raw_bill_table = {} + for utility_type in utilities: + bills_object = Bills.objects.filter( + building_id=building_id, + utility_type=utility_type, + ) + + if bills_object: + raw_bill = {} + raw_bill['utility_type'] = utility_type + raw_bill['date_from'] = [] + raw_bill['date_to'] = [] + raw_bill['charge'] = [] + raw_bill['usage'] = [] + + for bill in bills_object: + raw_bill['date_from'].append(bill.date_from) + raw_bill['date_to'].append(bill.date_to) + raw_bill['usage'].append(float(bill.usage)) + raw_bill['charge'].append(float(bill.charge)) + raw_bill_table[utility_type] = raw_bill + return raw_bill_table + + +def get_annual_bills(building_id): + """Fetch manually input annual values from the database.""" + annual_bills = {} + + electricity_objs = BillsOverview.objects.filter( + building_id=building_id, + electricity_is_user_input=True, + ) + + gas_objs = BillsOverview.objects.filter( + building_id=building_id, + gas_is_user_input=True, + ) + + oil_objs = BillsOverview.objects.filter( + building_id=building_id, + oil_is_user_input=True, + ) + + water_objs = BillsOverview.objects.filter( + building_id=building_id, + water_is_user_input=True, + ) + + if electricity_objs: + annual_bills['electricity'] = {} + for obj in electricity_objs: + annual_bills['electricity'][obj.year] = float(obj.electricity) if obj.electricity else None + + if gas_objs: + annual_bills['gas'] = {} + for obj in gas_objs: + annual_bills['gas'][obj.year] = float(obj.gas) if obj.gas else None + + if oil_objs: + annual_bills['oil'] = {} + for obj in oil_objs: + annual_bills['oil'][obj.year] = float(obj.oil) if obj.oil else None + + if water_objs: + annual_bills['water'] = {} + for obj in water_objs: + annual_bills['water'][obj.year] = float(obj.water) if obj.water else None + return annual_bills + + +def get_raw_income_statement(building_id): + """Fetch income statement data from database. + + Args: + building_id: id of the building. + + Returns: + raw_income_statement: Dictionary with key as year and value a dictionary with revenue, utility expense and + non-utility expense data. + """ + income_statement_objs = IncomeStatement.objects.filter(building_id=building_id) + raw_income_statment = {} + if income_statement_objs: + for obj in income_statement_objs: + record = {} + record['revenue'] = float(obj.revenue) + record['utility_expense'] = float(obj.utility_expense) + record['non_utility_expense'] = float(obj.non_utility_operating_expense) + raw_income_statment[int(obj.year)] = record + return raw_income_statment + else: + raise AttributeError("Could not find income statement values for this building id.") + + +def get_growth_rate(building_id): + """Fetch growth rate from the database. + + Args: + building_id: id of the building. + + Returns: + growth_rate: Growth rate stored for this building. + """ + growth_rate_obj = GrowthRate.objects.filter(building_id=building_id) + if growth_rate_obj: + return float(growth_rate_obj[0].growth_rate) + else: + raise AttributeError("Could not find growth rate for this building id.") + + +def get_liability(building_id): + """Obtain liability information. + + Fetch the records containing the liability information from the database. + + Args: + building_id: id of the building. + analysis_date: Dictionary containing: + proforma_start with value Start of projection. + proforma_duration with value Total duration of projection. + + Returns: + liability_dictionary: Dictionary containing: + keys: + debt_id- id of the debt. + value- dictionary containing: + keys: + 1. lender with value as lender for the liability/mortgage. + 2. date with value when the mortgage/liabiity statment was + requested. + 3. remaining_term with value the number of months remaining + in the mortgage/liability. + 4. liability with value as monthly service for the mortgage. + """ + liability_objs = Liabilities.objects.filter(building_id=building_id) + liabilities_input = {} + if liability_objs: + index = 1 + for obj in liability_objs: + key = 'debt'+str(index) + index += 1 + liability = float(obj.monthly_service) + lender = obj.lender + remaining_term = int(obj.remaining_term) + input_date = obj.input_date + liabilities_input[key] = (liability, lender, remaining_term, input_date) + return liabilities_input + + +def get_cash_balance(building_id): + """Fetch Cash Balance data from Database. + + Args: + building_id: id of the building. + + Returns: + cash_balance: Dictionary that contains: + keys: + statement_date- date of the statement(Cash balance or bank statement). + value- Tuple containing balance amount and a boolean saying if it is + from balance sheet or not. + """ + cash_balance_objs = CashBalance.objects.filter(building_id=building_id) + if cash_balance_objs: + cash_balance_input = {} + for obj in cash_balance_objs: + cash_balance_input[obj.statement_date] = (float(obj.balance_amount), obj.is_from_balance_sheet) + return cash_balance_input + else: + raise AttributeError("Could not find cash balance for this building id.") + + +def get_loan_input(building_id): + """Fetch loan options from database. + + Args: + building_id: id of the building. + + Returns: + loan_options: List of records. Each record is a dicitonary containing instititue, max loan amount, rate of + interest and duration for loan. + """ + loan_options_objs = LoanOptions.objects.filter(building_id=building_id) + if loan_options_objs: + loan_options = [] + for obj in loan_options_objs: + record = { + 'institute': obj.lender.name, + 'max_amount': float(obj.max_loan_amount), + 'interest': float(obj.interest_rate)/100, + 'duration': int(obj.duration), + } + loan_options.append(record) + return loan_options + else: + raise AttributeError("Could not find Loan Options for this building id.") class Index(View): @@ -12,3 +260,93 @@ class Index(View): 'building_id': building_id, } return render(request, 'budgetSimulator/index.html', context=context) + + +class Budget(View): + """Fetch the data required for budget simulation and perform simulation. Send results to the frontend.""" + + def get(self, request, building_id): + """HTTP GET request. + + Fetch data from database and make calls to bp functions to simulate budget and send result to frontend. + """ + # This is hard coded for the time being as finance team have not implemented logic for other values. + req_dscr = { + 'req_noi_dscr': 1.15, + 'req_cash_dscr': 1.15, + 'req_saving_dscr': 1.10 + } + + # Fetch values from the database needed to perform the budget simulation. + try: + analysis_date = get_analysis_date(building_id) + commissioning_date = get_commissioning_date(building_id) + customer_preference = get_customer_preference(building_id) + raw_bills = get_raw_bill(building_id) + annual_bills = get_annual_bills(building_id) + bills = {} + for utility in raw_bills: + bills[utility] = raw_bills[utility] + for utility in annual_bills: + bills[utility] = annual_bills[utility] + if not bills: + raise ValueError("No bills or entered values were found for this building id.") + raw_income_statement = get_raw_income_statement(building_id) + growth_rate = get_growth_rate(building_id) + liabilities = get_liability(building_id) + cash_balance = get_cash_balance(building_id) + loan_options = get_loan_input(building_id) + except Exception as err: + error = err.args[0] + return JsonResponse({'error': error}, status=400) + try: + result = budget_simulation( + analysis_date, + commissioning_date, + customer_preference, + req_dscr, + raw_bills, + annual_bills, + raw_income_statement, + growth_rate, + liabilities, + cash_balance, + loan_options + ) + + # Go over all the tables in result. + for table in result: + # Go over each row in the table. + for row in table: + # Assign length of the row to a variable to prevent recalculating. + length = len(row) + # Go over the length of the row. + for index in range(length): + data = row[index] + # If the data in the row is float, format it to have 2 decimal places. + if isinstance(data, float): + row[index] = float("{0:.2f}".format(data)) + # Split the result into each individual tables without the savings potential list. + loan_only = result[0][1:] + loan_first = result[1][1:] + sf_first = result[2][1:] + sf_max = result[3][1:] + # Obtain the savings potential list. + saving_potential_list = [] + for savings in result[0][0]: + if isinstance(savings, float): + saving_potential_list.append(float("{0:.2f}".format(savings))) + tables = { + 'budget_loan_first': loan_first, + 'budget_loan_only': loan_only, + 'budget_sf_first': sf_first, + 'budget_sf_max': sf_max, + } + instance = { + 'tables': tables, + 'saving_potential_list': saving_potential_list, + } + return JsonResponse({'instance': instance}) + except Exception as err: + error = err.args[0] + return JsonResponse({'error': error}, status=400) diff --git a/blocnote/apps/financialInputs/views.py b/blocnote/apps/financialInputs/views.py index 35d0b4f..48b17c7 100644 --- a/blocnote/apps/financialInputs/views.py +++ b/blocnote/apps/financialInputs/views.py @@ -7,7 +7,8 @@ from django.http import JsonResponse from django.db import connections from django.views import View -from bpfin.lib.back_end_call import monthly_bill, prior_income_statement_table +from bpfin.back_end_call.back_end_inputs import monthly_bill +from bpfin.back_end_call.back_end_inputs import form_prior_income_table as prior_income_statement_table from .models import Fund, FinancingOverview, Bills, BillsOverview, CustomerPreference, EstimationAlgorithm @@ -488,7 +489,7 @@ class BillsOverviewView(View): # Fetch all bills from the database. raw_bill = get_raw_bill(building_id) # Project the charge for utilities whose atleast 12 months bills are available. - projected_bills = monthly_bill(raw_bill, analysis_date) + projected_bills, manual_input_dict, prior_month_dict = monthly_bill(raw_bill, analysis_date) for util in self.utility: # Check if the utility bill is present. if projected_bills[util]: diff --git a/blocnote/apps/landingPage/templates/landingPage/index.html b/blocnote/apps/landingPage/templates/landingPage/index.html index c1d74da..a089268 100644 --- a/blocnote/apps/landingPage/templates/landingPage/index.html +++ b/blocnote/apps/landingPage/templates/landingPage/index.html @@ -27,6 +27,12 @@ OK + + + Budget Simulator + + OK + {% else %} @@ -52,6 +58,18 @@ + + + Budget Simulator + + +
    + {% for item in not_saved_list %} +
  • Please fill {{ item }}
  • + {% endfor %} +
+ + {% endif %} diff --git a/blocnote/apps/preliminaryFinance/views.py b/blocnote/apps/preliminaryFinance/views.py index 1531d43..2c57397 100644 --- a/blocnote/apps/preliminaryFinance/views.py +++ b/blocnote/apps/preliminaryFinance/views.py @@ -1,22 +1,14 @@ +"""Define the views for the preliminary analysis endpoint.""" import json from django.shortcuts import render from django.views import View from django.http import JsonResponse from django.db import connections -import datetime -from bpfin.financials.financial_lib import organize_bill_overview -from bpfin.financials.borrower_schedule import packaging_data -from bpfin.financials.financial_lib import Income_Statement_Table -from bpfin.financials.cash_balance import cash_balance -from bpfin.financials.liability import final_liability_dict -from bpfin.financials.financial_lib import Balance_Sheet_Table -from bpfin.financials.scenario import Scenario as ScenarioClass - -from .models import Scenario, CostEstimation, SavingsEstimation -from blocnote.apps.financialInputs.models import GrowthRate, IncomeStatement, BillsOverview, FinancingOverview, CashBalance, Liabilities, LoanOptions, CustomerPreference, Bills -from bpfin.utilbills.bill_backend_call import prior_proj_rough_month +from blocnote.apps.financialInputs.models import GrowthRate, IncomeStatement, BillsOverview, FinancingOverview +from blocnote.apps.financialInputs.models import CashBalance, Liabilities, LoanOptions, CustomerPreference, Bills +from bpfin.back_end_call.back_end_prelim import prelim_scenario class Index(View): @@ -65,7 +57,7 @@ class Scenarios(View): to bpfin to calculate all the outputs to be displayed and pass the information to the frontend. """ - def get_liability(self, building_id, analysis_date): + def get_liability(self, building_id): """Obtain liability information. Fetch the records containing the liability information from the database. @@ -100,12 +92,7 @@ class Scenarios(View): remaining_term = int(obj.remaining_term) input_date = obj.input_date liabilities_input[key] = (liability, lender, remaining_term, input_date) - liability_dictionary = final_liability_dict( - analysis_date['proforma_start'], - liabilities_input, - analysis_date['proforma_duration'] - ) - return liability_dictionary + return liabilities_input def get_cash_balance(self, building_id): """Fetch Cash Balance data from Database. @@ -155,18 +142,19 @@ class Scenarios(View): bill_overview: Dictionary containing utility as key and value as a dictionary with key as year and value as annual charge for that utility. """ - objs = BillsOverview.objects.filter(building_id=building_id) + bills_overview_objs = BillsOverview.objects.filter(building_id=building_id) bill_overview = {} electricity = {} gas = {} oil = {} water = {} - if objs: - for obj in objs: - electricity[obj.year] = float(obj.electricity) - gas[obj.year] = float(obj.gas) - oil[obj.year] = float(obj.oil) - water[obj.year] = float(obj.water) + if bills_overview_objs: + for obj in bills_overview_objs: + electricity[obj.year] = float(obj.electricity) if obj.electricity else None + gas[obj.year] = float(obj.gas) if obj.gas else None + oil[obj.year] = float(obj.oil) if obj.oil else None + water[obj.year] = float(obj.water) if obj.water else None + obj = bills_overview_objs[0] bill_overview = { 'electricity': [electricity, not obj.electricity_is_user_input], 'gas': [gas, not obj.gas_is_user_input], @@ -273,7 +261,7 @@ class Scenarios(View): } return customer_preference - def get_prior_month_bill(self, building_id, analysis_date): + def get_prior_month_bill(self, building_id): """Get the prior bills on a monthly basis than annual. Args: @@ -289,7 +277,7 @@ class Scenarios(View): 'oil', 'water', ] - prior_month_bill = {} + raw_bill_table = {} for utility_type in utilities: bills_object = Bills.objects.filter( building_id=building_id, @@ -309,9 +297,53 @@ class Scenarios(View): raw_bill['date_to'].append(bill.date_to) raw_bill['usage'].append(float(bill.usage)) raw_bill['charge'].append(float(bill.charge)) - month_rough = prior_proj_rough_month(raw_bill, analysis_date) - prior_month_bill[utility_type] = month_rough - return prior_month_bill + raw_bill_table[utility_type] = raw_bill + return raw_bill_table + + def get_annual_bills(self, building_id): + """Fetch manually input annual values from the database.""" + annual_bills = {} + + electricity_objs = BillsOverview.objects.filter( + building_id=building_id, + electricity_is_user_input=True, + ) + + gas_objs = BillsOverview.objects.filter( + building_id=building_id, + gas_is_user_input=True, + ) + + oil_objs = BillsOverview.objects.filter( + building_id=building_id, + oil_is_user_input=True, + ) + + water_objs = BillsOverview.objects.filter( + building_id=building_id, + water_is_user_input=True, + ) + + if electricity_objs: + annual_bills['electricity'] = {} + for obj in electricity_objs: + annual_bills['electricity'][obj.year] = float(obj.electricity) if obj.electricity else None + + if gas_objs: + annual_bills['gas'] = {} + for obj in gas_objs: + annual_bills['gas'][obj.year] = float(obj.gas) if obj.gas else None + + if oil_objs: + annual_bills['oil'] = {} + for obj in oil_objs: + annual_bills['oil'][obj.year] = float(obj.oil) if obj.oil else None + + if water_objs: + annual_bills['water'] = {} + for obj in water_objs: + annual_bills['water'][obj.year] = float(obj.water) if obj.water else None + return annual_bills def put(self, request, building_id): """Handle HTTP PUT request. @@ -328,45 +360,24 @@ class Scenarios(View): growth_rate = self.get_growth_rate(building_id) raw_income_statement = self.get_raw_income_statement(building_id) analysis_date = self.get_analysis_date(building_id) - bill_overview = self.get_bill_overview(building_id) - bill_overview_organized = organize_bill_overview(bill_overview, analysis_date) cash_balance_input_dict = self.get_cash_balance(building_id) - cash_balance_input = cash_balance(analysis_date, cash_balance_input_dict) - - prior_income_statement_table = Income_Statement_Table( - raw_income_statement, - bill_overview_organized - ) - prior_income_statement_table.project( - growth_rate, - analysis_date, - bill_overview_organized - ) - - liability_dictionary = self.get_liability(building_id, analysis_date) - noi_dictionary = prior_income_statement_table.get_noi_dict() + liability_dictionary = self.get_liability(building_id) + loan_options = self.get_loan_input(building_id) + commission_date = self.get_commission_date(building_id) + customer_preference = self.get_customer_preference(building_id) + prior_month_bill = self.get_prior_month_bill(building_id) + annual_bills = self.get_annual_bills(building_id) - raw_balance_sheet = { - 'cash': cash_balance_input, - 'other_debt_service': liability_dictionary, - 'net_income': noi_dictionary, - } - prior_balance_sheet_table = Balance_Sheet_Table(raw_balance_sheet) - prior_balance_sheet_table.project_balance_sheet( - analysis_date, - liability_dictionary, - noi_dictionary, - ) + # Extract data from the PUT request body. + # Calculate the total cost of items. costs = [] cost_list = put['cost'] for record in cost_list: costs.append(float(record['cost'])) total_cost = sum(costs) - loan_options = self.get_loan_input(building_id) - commission_date = self.get_commission_date(building_id) savings_percent = self.get_savings_percent(put['savings']) - customer_preference = self.get_customer_preference(building_id) - prior_month_bill = self.get_prior_month_bill(building_id, analysis_date) + + # The following 2 variables are hard coded for now. They will be updated at a later point. full_saving_dict = { 'electricity': None, 'gas': None, @@ -378,31 +389,28 @@ class Scenarios(View): 'req_cash_dscr': 1.15, 'req_saving_dscr': 1.10 } - # The scenario class would store relevant data and perform preliminary analysis. - scenario = ScenarioClass( + + # prelim_scenario returns the project economics which are a set of values determining the financial health + # of the building and graph dictionary which contains total expense, loan repayment and total net savings. + # The graph_dict will be plotted as a stacked bar graph in the frontend to visually see if savings can cover + # loan repayment and if there will be any savings left are loan repayment. + graph_dict, project_economics_overview = prelim_scenario( + prior_month_bill, + annual_bills, + raw_income_statement, + growth_rate, + liability_dictionary, + cash_balance_input_dict, + loan_options, analysis_date, commission_date, total_cost, - bill_overview, - bill_overview_organized, - liability_dictionary, - prior_income_statement_table, - prior_balance_sheet_table, - loan_options, - ) - - # Perform preliminary analysis - scenario.prelim_anlaysis( - prior_month_bill, savings_percent, full_saving_dict, - growth_rate, req_dscr, - customer_preference + customer_preference, ) - # graph_dict contains the data for the stacked bar graph. - graph_dict = scenario.get_graph_dict() energy_expense = graph_dict['energy_expenses'] total_loan = graph_dict['total_loan'] net_savings = graph_dict['net_savings'] @@ -415,9 +423,6 @@ class Scenarios(View): energy_expense_list.append(energy_expense[year]) total_loan_list.append(total_loan[year]) net_savings_list.append(net_savings[year]) - - # economics_overview contains the information for the summary table on frontend. - project_economics_overview = scenario.get_economics() economics_overview = { 'Estimated Cost': float("{0:.2f}".format(project_economics_overview['estimated_cost'])), 'Overall Saving': float("{0:.2f}".format(project_economics_overview['overall_saving'])), -- GitLab From 483c5088108440f80b1b40931efa3bbdd3c5d399 Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Tue, 6 Jun 2017 09:36:04 -0400 Subject: [PATCH 03/31] Reorder import statements in test file for budget. --- blocnote/apps/budgetSimulator/tests.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/blocnote/apps/budgetSimulator/tests.py b/blocnote/apps/budgetSimulator/tests.py index 10482ef..87d23dc 100644 --- a/blocnote/apps/budgetSimulator/tests.py +++ b/blocnote/apps/budgetSimulator/tests.py @@ -1,12 +1,14 @@ """Test all the function and views in budget endpoint.""" +import json + from datetime import date from django.test import TestCase -import json - from blocnote.apps.financialInputs.models import Fund, FinancingOverview, CustomerPreference, GrowthRate, Liabilities from blocnote.apps.financialInputs.models import CashBalance, LoanOptions, Lender, IncomeStatement, BillsOverview, Bills +from bpfin.back_end_call.back_end_budget import budget_simulation + from .views import get_analysis_date from .views import get_commissioning_date from .views import get_customer_preference @@ -17,8 +19,6 @@ from .views import get_loan_input from .views import get_raw_income_statement from .views import get_annual_bills from .views import get_raw_bill -from .views import Index -from bpfin.back_end_call.back_end_budget import budget_simulation class GetAnalysisDateTest(TestCase): -- GitLab From 26e64a3377346b099d6972e6ece3a5d38eb03247 Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Tue, 6 Jun 2017 13:09:23 -0400 Subject: [PATCH 04/31] Edit fixture to contain only that data that is being used. --- .../financialInputs_views_testdata.json | 8940 +---------------- 1 file changed, 481 insertions(+), 8459 deletions(-) diff --git a/blocnote/apps/budgetSimulator/fixtures/financialInputs_views_testdata.json b/blocnote/apps/budgetSimulator/fixtures/financialInputs_views_testdata.json index b6e8d61..a457b07 100644 --- a/blocnote/apps/budgetSimulator/fixtures/financialInputs_views_testdata.json +++ b/blocnote/apps/budgetSimulator/fixtures/financialInputs_views_testdata.json @@ -13,246 +13,6 @@ "Name": "Bronx Healthy Buildings Fund" } }, -{ - "model": "financialInputs.financingoverview", - "pk": 2, - "fields": { - "building_id": 509, - "fund": 1, - "required_noi_dscr": "1.15", - "requrired_cash_dscr": "1.15", - "pro_forma_start_date": "2014-01-01", - "pro_forma_duration": "25", - "analysis_date": "2017-05-05", - "anticipated_construction_start_date": "2017-07-01", - "anticipated_commissioning_date": "2017-09-01", - "anticipated_construction_period": "8" - } -}, -{ - "model": "financialInputs.financingoverview", - "pk": 32, - "fields": { - "building_id": 187896, - "fund": 2, - "required_noi_dscr": "0.00", - "requrired_cash_dscr": "0.00", - "pro_forma_start_date": "2014-01-01", - "pro_forma_duration": "25", - "analysis_date": "2017-05-09", - "anticipated_construction_start_date": "2017-07-01", - "anticipated_commissioning_date": "2017-08-01", - "anticipated_construction_period": "5" - } -}, -{ - "model": "financialInputs.financingoverview", - "pk": 33, - "fields": { - "building_id": 4567, - "fund": 2, - "required_noi_dscr": "0.00", - "requrired_cash_dscr": "0.00", - "pro_forma_start_date": "2014-01-01", - "pro_forma_duration": "20", - "analysis_date": "2017-05-09", - "anticipated_construction_start_date": "2017-06-01", - "anticipated_commissioning_date": "2017-07-01", - "anticipated_construction_period": "4" - } -}, -{ - "model": "financialInputs.financingoverview", - "pk": 34, - "fields": { - "building_id": 2222, - "fund": 1, - "required_noi_dscr": "0.00", - "requrired_cash_dscr": "0.00", - "pro_forma_start_date": "2014-01-01", - "pro_forma_duration": "20", - "analysis_date": "2017-01-01", - "anticipated_construction_start_date": "2017-01-01", - "anticipated_commissioning_date": "2017-03-01", - "anticipated_construction_period": "8" - } -}, -{ - "model": "financialInputs.financingoverview", - "pk": 35, - "fields": { - "building_id": 2212, - "fund": 1, - "required_noi_dscr": "0.00", - "requrired_cash_dscr": "0.00", - "pro_forma_start_date": "2014-01-01", - "pro_forma_duration": "20", - "analysis_date": "2017-01-01", - "anticipated_construction_start_date": "2017-01-01", - "anticipated_commissioning_date": "2017-02-01", - "anticipated_construction_period": "4" - } -}, -{ - "model": "financialInputs.financingoverview", - "pk": 36, - "fields": { - "building_id": 2102, - "fund": 2, - "required_noi_dscr": "0.00", - "requrired_cash_dscr": "0.00", - "pro_forma_start_date": "2014-01-01", - "pro_forma_duration": "10", - "analysis_date": "2002-01-01", - "anticipated_construction_start_date": "2017-01-01", - "anticipated_commissioning_date": "2017-04-01", - "anticipated_construction_period": "2" - } -}, -{ - "model": "financialInputs.financingoverview", - "pk": 39, - "fields": { - "building_id": 457, - "fund": 1, - "required_noi_dscr": "0.00", - "requrired_cash_dscr": "0.00", - "pro_forma_start_date": "2014-01-01", - "pro_forma_duration": "25", - "analysis_date": "2008-01-01", - "anticipated_construction_start_date": "2017-08-01", - "anticipated_commissioning_date": "2017-09-01", - "anticipated_construction_period": "4" - } -}, -{ - "model": "financialInputs.financingoverview", - "pk": 40, - "fields": { - "building_id": 498, - "fund": 1, - "required_noi_dscr": "0.00", - "requrired_cash_dscr": "0.00", - "pro_forma_start_date": "2014-01-01", - "pro_forma_duration": "20", - "analysis_date": "2017-05-12", - "anticipated_construction_start_date": "2017-07-01", - "anticipated_commissioning_date": "2017-08-01", - "anticipated_construction_period": "4" - } -}, -{ - "model": "financialInputs.financingoverview", - "pk": 42, - "fields": { - "building_id": 488, - "fund": 1, - "required_noi_dscr": "1.15", - "requrired_cash_dscr": "1.20", - "pro_forma_start_date": "2014-01-01", - "pro_forma_duration": "25", - "analysis_date": "2017-05-16", - "anticipated_construction_start_date": "2017-06-01", - "anticipated_commissioning_date": "2017-07-01", - "anticipated_construction_period": "4" - } -}, -{ - "model": "financialInputs.financingoverview", - "pk": 43, - "fields": { - "building_id": 297, - "fund": 1, - "required_noi_dscr": "0.00", - "requrired_cash_dscr": "0.00", - "pro_forma_start_date": "2014-01-01", - "pro_forma_duration": "25", - "analysis_date": "2017-05-16", - "anticipated_construction_start_date": "2017-06-01", - "anticipated_commissioning_date": "2017-07-01", - "anticipated_construction_period": "4" - } -}, -{ - "model": "financialInputs.financingoverview", - "pk": 60, - "fields": { - "building_id": 8753, - "fund": 1, - "required_noi_dscr": "0.00", - "requrired_cash_dscr": "0.00", - "pro_forma_start_date": "2014-01-01", - "pro_forma_duration": "25", - "analysis_date": "2017-05-22", - "anticipated_construction_start_date": "2017-07-01", - "anticipated_commissioning_date": "2017-08-01", - "anticipated_construction_period": "4" - } -}, -{ - "model": "financialInputs.financingoverview", - "pk": 89, - "fields": { - "building_id": 277, - "fund": 1, - "required_noi_dscr": "1.15", - "requrired_cash_dscr": "1.15", - "pro_forma_start_date": "2015-03-11", - "pro_forma_duration": "25", - "analysis_date": "2017-05-30", - "anticipated_construction_start_date": "2017-07-01", - "anticipated_commissioning_date": "2017-08-01", - "anticipated_construction_period": "4" - } -}, -{ - "model": "financialInputs.financingoverview", - "pk": 91, - "fields": { - "building_id": 28, - "fund": 1, - "required_noi_dscr": "0.00", - "requrired_cash_dscr": "0.00", - "pro_forma_start_date": "2014-01-01", - "pro_forma_duration": "25", - "analysis_date": "2017-05-24", - "anticipated_construction_start_date": "2017-06-01", - "anticipated_commissioning_date": "2017-07-01", - "anticipated_construction_period": "4" - } -}, -{ - "model": "financialInputs.financingoverview", - "pk": 92, - "fields": { - "building_id": 207, - "fund": 1, - "required_noi_dscr": "1.15", - "requrired_cash_dscr": "1.15", - "pro_forma_start_date": "2014-01-01", - "pro_forma_duration": "6", - "analysis_date": "2017-05-30", - "anticipated_construction_start_date": "2017-06-01", - "anticipated_commissioning_date": "2017-07-05", - "anticipated_construction_period": "6" - } -}, -{ - "model": "financialInputs.financingoverview", - "pk": 93, - "fields": { - "building_id": 5466, - "fund": 1, - "required_noi_dscr": "0.00", - "requrired_cash_dscr": "0.00", - "pro_forma_start_date": "2014-01-01", - "pro_forma_duration": "25", - "analysis_date": "2017-06-01", - "anticipated_construction_start_date": "2017-07-01", - "anticipated_commissioning_date": "2017-08-01", - "anticipated_construction_period": "4" - } -}, { "model": "financialInputs.financingoverview", "pk": 94, @@ -319,7978 +79,794 @@ }, { "model": "financialInputs.bills", - "pk": 24, + "pk": 532, "fields": { - "building_id": 457, - "date_from": "2016-11-28", - "date_to": "2016-12-28", + "building_id": 289, + "date_from": "2017-02-22", + "date_to": "2017-03-23", "utility_type": "electricity", - "usage": "117.88", - "charge": "56.01" + "usage": "25800.00", + "charge": "4509.82" } }, { "model": "financialInputs.bills", - "pk": 25, + "pk": 533, "fields": { - "building_id": 457, - "date_from": "2016-10-26", - "date_to": "2016-11-28", + "building_id": 289, + "date_from": "2016-12-21", + "date_to": "2017-02-22", "utility_type": "electricity", - "usage": "91.93", - "charge": "39.62" + "usage": "61800.00", + "charge": "10273.47" } }, { "model": "financialInputs.bills", - "pk": 26, + "pk": 534, "fields": { - "building_id": 457, - "date_from": "2016-09-26", - "date_to": "2016-10-26", + "building_id": 289, + "date_from": "2016-11-18", + "date_to": "2016-12-21", "utility_type": "electricity", - "usage": "89.07", - "charge": "67.42" + "usage": "33600.00", + "charge": "5594.74" } }, { "model": "financialInputs.bills", - "pk": 27, + "pk": 535, "fields": { - "building_id": 457, - "date_from": "2016-08-25", - "date_to": "2016-09-26", + "building_id": 289, + "date_from": "2016-10-20", + "date_to": "2016-11-18", "utility_type": "electricity", - "usage": "98.17", - "charge": "63.60" + "usage": "31800.00", + "charge": "5780.51" } }, { "model": "financialInputs.bills", - "pk": 28, + "pk": 536, "fields": { - "building_id": 457, - "date_from": "2016-07-27", - "date_to": "2016-08-25", + "building_id": 289, + "date_from": "2016-09-20", + "date_to": "2016-10-20", "utility_type": "electricity", - "usage": "86.88", - "charge": "57.25" + "usage": "37800.00", + "charge": "6412.98" } }, { "model": "financialInputs.bills", - "pk": 29, + "pk": 537, "fields": { - "building_id": 457, - "date_from": "2016-06-27", - "date_to": "2016-07-27", + "building_id": 289, + "date_from": "2016-08-19", + "date_to": "2016-09-20", "utility_type": "electricity", - "usage": "87.05", - "charge": "56.21" + "usage": "52200.00", + "charge": "8708.14" } }, { "model": "financialInputs.bills", - "pk": 30, + "pk": 538, "fields": { - "building_id": 457, - "date_from": "2016-05-26", - "date_to": "2016-06-27", + "building_id": 289, + "date_from": "2016-07-21", + "date_to": "2016-08-19", "utility_type": "electricity", - "usage": "101.05", - "charge": "71.66" + "usage": "52200.00", + "charge": "8845.57" } }, { "model": "financialInputs.bills", - "pk": 31, + "pk": 539, "fields": { - "building_id": 457, - "date_from": "2016-04-27", - "date_to": "2016-05-26", + "building_id": 289, + "date_from": "2016-06-21", + "date_to": "2016-07-21", "utility_type": "electricity", - "usage": "88.19", - "charge": "68.28" + "usage": "49800.00", + "charge": "8599.52" } }, { "model": "financialInputs.bills", - "pk": 32, + "pk": 540, "fields": { - "building_id": 457, - "date_from": "2016-03-29", - "date_to": "2016-04-27", + "building_id": 289, + "date_from": "2016-05-20", + "date_to": "2016-06-21", "utility_type": "electricity", - "usage": "90.05", - "charge": "63.57" + "usage": "48600.00", + "charge": "8688.43" } }, { "model": "financialInputs.bills", - "pk": 33, + "pk": 541, "fields": { - "building_id": 457, - "date_from": "2016-02-29", - "date_to": "2016-03-29", + "building_id": 289, + "date_from": "2016-04-21", + "date_to": "2016-05-20", "utility_type": "electricity", - "usage": "104.19", - "charge": "68.12" + "usage": "34800.00", + "charge": "5446.82" } }, { "model": "financialInputs.bills", - "pk": 34, + "pk": 542, "fields": { - "building_id": 457, - "date_from": "2016-01-28", - "date_to": "2016-02-29", + "building_id": 289, + "date_from": "2016-03-23", + "date_to": "2016-04-21", "utility_type": "electricity", - "usage": "98.13", - "charge": "71.73" + "usage": "31800.00", + "charge": "5424.90" } }, { "model": "financialInputs.bills", - "pk": 35, + "pk": 543, "fields": { - "building_id": 457, - "date_from": "2015-12-29", - "date_to": "2016-01-28", + "building_id": 289, + "date_from": "2016-02-23", + "date_to": "2016-03-23", "utility_type": "electricity", - "usage": "182.55", - "charge": "145.44" + "usage": "31200.00", + "charge": "5404.15" } }, { "model": "financialInputs.bills", - "pk": 36, + "pk": 544, "fields": { - "building_id": 457, - "date_from": "2015-11-25", - "date_to": "2015-12-29", + "building_id": 289, + "date_from": "2016-01-22", + "date_to": "2016-02-23", "utility_type": "electricity", - "usage": "208.85", - "charge": "172.37" + "usage": "33600.00", + "charge": "5376.68" } }, { "model": "financialInputs.bills", - "pk": 37, + "pk": 545, "fields": { - "building_id": 457, - "date_from": "2015-10-27", - "date_to": "2015-11-25", + "building_id": 289, + "date_from": "2015-12-22", + "date_to": "2016-01-22", "utility_type": "electricity", - "usage": "144.06", - "charge": "130.65" + "usage": "36600.00", + "charge": "6431.27" } }, { "model": "financialInputs.bills", - "pk": 38, + "pk": 546, "fields": { - "building_id": 457, - "date_from": "2015-09-25", - "date_to": "2015-10-27", + "building_id": 289, + "date_from": "2015-11-19", + "date_to": "2015-12-22", "utility_type": "electricity", - "usage": "136.16", - "charge": "136.10" + "usage": "36000.00", + "charge": "5829.68" } }, { "model": "financialInputs.bills", - "pk": 39, + "pk": 547, "fields": { - "building_id": 457, - "date_from": "2015-08-26", - "date_to": "2015-09-25", - "utility_type": "electricity", - "usage": "162.13", - "charge": "137.14" + "building_id": 289, + "date_from": "2015-10-21", + "date_to": "2015-11-19", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "6245.07" } }, { "model": "financialInputs.bills", - "pk": 40, + "pk": 548, "fields": { - "building_id": 457, - "date_from": "2015-07-28", - "date_to": "2015-08-26", + "building_id": 289, + "date_from": "2015-09-21", + "date_to": "2015-10-21", "utility_type": "electricity", - "usage": "154.95", - "charge": "126.16" + "usage": "36600.00", + "charge": "6303.98" } }, { "model": "financialInputs.bills", - "pk": 41, + "pk": 549, "fields": { - "building_id": 457, - "date_from": "2015-06-26", - "date_to": "2015-07-28", + "building_id": 289, + "date_from": "2015-08-20", + "date_to": "2015-09-21", "utility_type": "electricity", - "usage": "179.64", - "charge": "152.56" + "usage": "54000.00", + "charge": "9611.84" } }, { "model": "financialInputs.bills", - "pk": 42, + "pk": 550, "fields": { - "building_id": 457, - "date_from": "2015-05-28", - "date_to": "2015-06-26", + "building_id": 289, + "date_from": "2015-07-22", + "date_to": "2015-08-20", "utility_type": "electricity", - "usage": "189.02", - "charge": "169.68" + "usage": "51000.00", + "charge": "9320.90" } }, { "model": "financialInputs.bills", - "pk": 43, + "pk": 551, "fields": { - "building_id": 457, - "date_from": "2015-04-28", - "date_to": "2015-05-28", + "building_id": 289, + "date_from": "2015-06-22", + "date_to": "2015-07-22", "utility_type": "electricity", - "usage": "168.92", - "charge": "196.46" + "usage": "52800.00", + "charge": "10168.65" } }, { "model": "financialInputs.bills", - "pk": 44, + "pk": 552, "fields": { - "building_id": 457, - "date_from": "2015-03-30", - "date_to": "2015-04-28", + "building_id": 289, + "date_from": "2015-05-21", + "date_to": "2015-06-22", "utility_type": "electricity", - "usage": "190.80", - "charge": "163.49" + "usage": "49200.00", + "charge": "9277.00" } }, { "model": "financialInputs.bills", - "pk": 45, + "pk": 553, "fields": { - "building_id": 457, - "date_from": "2015-02-27", - "date_to": "2015-03-30", + "building_id": 289, + "date_from": "2015-04-22", + "date_to": "2015-05-21", "utility_type": "electricity", - "usage": "189.42", - "charge": "163.88" + "usage": "40200.00", + "charge": "7404.47" } }, { "model": "financialInputs.bills", - "pk": 46, + "pk": 554, "fields": { - "building_id": 457, - "date_from": "2015-01-28", - "date_to": "2015-02-27", + "building_id": 289, + "date_from": "2015-03-24", + "date_to": "2015-04-22", "utility_type": "electricity", - "usage": "214.66", - "charge": "172.33" + "usage": "36000.00", + "charge": "5751.96" } }, { "model": "financialInputs.bills", - "pk": 47, + "pk": 555, "fields": { - "building_id": 457, - "date_from": "2016-11-22", - "date_to": "2016-12-16", + "building_id": 289, + "date_from": "2017-02-15", + "date_to": "2017-03-16", "utility_type": "gas", - "usage": "322.00", - "charge": "304.79" + "usage": "929.00", + "charge": "1059.41" } }, { "model": "financialInputs.bills", - "pk": 48, + "pk": 556, "fields": { - "building_id": 457, - "date_from": "2016-10-18", - "date_to": "2016-11-22", + "building_id": 289, + "date_from": "2017-01-17", + "date_to": "2017-02-15", "utility_type": "gas", - "usage": "470.00", - "charge": "456.54" + "usage": "1083.00", + "charge": "1238.53" } }, { "model": "financialInputs.bills", - "pk": 49, + "pk": 557, "fields": { - "building_id": 457, - "date_from": "2016-09-30", - "date_to": "2016-10-18", + "building_id": 289, + "date_from": "2016-12-15", + "date_to": "2017-01-17", "utility_type": "gas", - "usage": "241.00", - "charge": "232.75" + "usage": "1076.00", + "charge": "1092.90" } }, { "model": "financialInputs.bills", - "pk": 50, + "pk": 558, "fields": { - "building_id": 457, - "date_from": "2016-09-19", - "date_to": "2016-09-30", + "building_id": 289, + "date_from": "2016-11-15", + "date_to": "2016-12-15", "utility_type": "gas", - "usage": "148.00", - "charge": "372.16" + "usage": "678.00", + "charge": "602.64" } }, { "model": "financialInputs.bills", - "pk": 51, + "pk": 559, "fields": { - "building_id": 457, - "date_from": "2016-08-18", - "date_to": "2016-09-19", + "building_id": 289, + "date_from": "2016-10-17", + "date_to": "2016-11-15", "utility_type": "gas", - "usage": "429.00", - "charge": "192.29" + "usage": "552.00", + "charge": "441.53" } }, { "model": "financialInputs.bills", - "pk": 52, + "pk": 560, "fields": { - "building_id": 457, - "date_from": "2016-07-20", - "date_to": "2016-08-18", + "building_id": 289, + "date_from": "2016-09-16", + "date_to": "2016-10-17", "utility_type": "gas", - "usage": "389.00", - "charge": "379.36" + "usage": "232.00", + "charge": "179.35" } }, { "model": "financialInputs.bills", - "pk": 53, + "pk": 561, "fields": { - "building_id": 457, - "date_from": "2016-06-20", - "date_to": "2016-07-20", + "building_id": 289, + "date_from": "2016-08-17", + "date_to": "2016-09-16", "utility_type": "gas", - "usage": "402.00", - "charge": "385.14" + "usage": "103.00", + "charge": "86.60" } }, { "model": "financialInputs.bills", - "pk": 54, + "pk": 562, "fields": { - "building_id": 457, - "date_from": "2016-05-18", - "date_to": "2016-06-20", + "building_id": 289, + "date_from": "2016-07-19", + "date_to": "2016-08-17", "utility_type": "gas", - "usage": "443.00", - "charge": "400.74" + "usage": "113.00", + "charge": "101.15" } }, { "model": "financialInputs.bills", - "pk": 55, + "pk": 563, "fields": { - "building_id": 457, - "date_from": "2016-04-19", - "date_to": "2016-05-18", + "building_id": 289, + "date_from": "2016-06-17", + "date_to": "2016-07-19", "utility_type": "gas", - "usage": "389.00", - "charge": "343.49" + "usage": "224.00", + "charge": "204.29" } }, { "model": "financialInputs.bills", - "pk": 56, + "pk": 564, "fields": { - "building_id": 457, - "date_from": "2016-03-18", - "date_to": "2016-04-19", + "building_id": 289, + "date_from": "2016-05-20", + "date_to": "2016-06-17", "utility_type": "gas", - "usage": "429.00", - "charge": "377.99" + "usage": "244.00", + "charge": "220.37" } }, { "model": "financialInputs.bills", - "pk": 57, + "pk": 565, "fields": { - "building_id": 457, - "date_from": "2016-02-17", - "date_to": "2016-03-18", + "building_id": 289, + "date_from": "2016-04-18", + "date_to": "2016-05-20", "utility_type": "gas", - "usage": "402.00", - "charge": "378.44" + "usage": "674.00", + "charge": "552.46" } }, { "model": "financialInputs.bills", - "pk": 58, + "pk": 566, "fields": { - "building_id": 457, - "date_from": "2016-01-19", - "date_to": "2016-02-17", + "building_id": 289, + "date_from": "2016-03-16", + "date_to": "2016-04-18", "utility_type": "gas", - "usage": "389.00", - "charge": "361.68" + "usage": "986.00", + "charge": "804.96" } }, { "model": "financialInputs.bills", - "pk": 59, + "pk": 567, "fields": { - "building_id": 457, - "date_from": "2015-12-16", - "date_to": "2016-01-19", + "building_id": 289, + "date_from": "2016-02-16", + "date_to": "2016-03-16", "utility_type": "gas", - "usage": "456.00", - "charge": "454.84" + "usage": "1017.00", + "charge": "898.21" } }, { "model": "financialInputs.bills", - "pk": 60, + "pk": 568, "fields": { - "building_id": 457, - "date_from": "2015-11-16", - "date_to": "2015-12-16", + "building_id": 289, + "date_from": "2016-01-15", + "date_to": "2016-02-16", "utility_type": "gas", - "usage": "402.00", - "charge": "397.33" + "usage": "1422.00", + "charge": "1243.22" } }, { "model": "financialInputs.bills", - "pk": 61, + "pk": 569, "fields": { - "building_id": 457, - "date_from": "2015-10-16", - "date_to": "2015-11-16", + "building_id": 289, + "date_from": "2015-12-15", + "date_to": "2016-01-15", "utility_type": "gas", - "usage": "416.00", - "charge": "401.29" + "usage": "1096.00", + "charge": "1042.92" } }, { "model": "financialInputs.bills", - "pk": 62, + "pk": 570, "fields": { - "building_id": 457, - "date_from": "2015-09-19", - "date_to": "2015-10-16", + "building_id": 289, + "date_from": "2015-11-13", + "date_to": "2015-12-15", "utility_type": "gas", - "usage": "362.00", - "charge": "354.76" + "usage": "934.00", + "charge": "865.51" } }, { "model": "financialInputs.bills", - "pk": 63, + "pk": 571, "fields": { - "building_id": 457, - "date_from": "2015-08-18", - "date_to": "2015-09-19", + "building_id": 289, + "date_from": "2015-10-15", + "date_to": "2015-11-13", "utility_type": "gas", - "usage": "429.00", - "charge": "412.32" + "usage": "563.00", + "charge": "487.05" } }, { "model": "financialInputs.bills", - "pk": 64, + "pk": 572, "fields": { - "building_id": 457, - "date_from": "2015-07-20", - "date_to": "2015-08-18", + "building_id": 289, + "date_from": "2015-09-16", + "date_to": "2015-10-15", "utility_type": "gas", - "usage": "389.00", - "charge": "378.53" + "usage": "329.00", + "charge": "275.92" } }, { "model": "financialInputs.bills", - "pk": 65, + "pk": 701, "fields": { - "building_id": 457, - "date_from": "2015-06-18", - "date_to": "2015-07-20", - "utility_type": "gas", - "usage": "429.00", - "charge": "414.33" + "building_id": 2003, + "date_from": "2017-02-22", + "date_to": "2017-03-23", + "utility_type": "electricity", + "usage": "25800.00", + "charge": "4509.82" } }, { "model": "financialInputs.bills", - "pk": 66, + "pk": 702, "fields": { - "building_id": 457, - "date_from": "2015-05-19", - "date_to": "2015-06-18", - "utility_type": "gas", - "usage": "402.00", - "charge": "390.65" + "building_id": 2003, + "date_from": "2016-12-21", + "date_to": "2017-02-22", + "utility_type": "electricity", + "usage": "61800.00", + "charge": "10273.47" } }, { "model": "financialInputs.bills", - "pk": 67, + "pk": 703, "fields": { - "building_id": 457, - "date_from": "2016-11-28", - "date_to": "2016-12-28", - "utility_type": "oil", - "usage": "1200.00", - "charge": "3100.00" + "building_id": 2003, + "date_from": "2016-11-18", + "date_to": "2016-12-21", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5594.74" } }, { "model": "financialInputs.bills", - "pk": 68, + "pk": 704, "fields": { - "building_id": 457, - "date_from": "2016-10-26", - "date_to": "2016-11-28", - "utility_type": "oil", - "usage": "700.00", - "charge": "2400.00" + "building_id": 2003, + "date_from": "2016-10-20", + "date_to": "2016-11-18", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5780.51" } }, { "model": "financialInputs.bills", - "pk": 69, + "pk": 705, "fields": { - "building_id": 457, - "date_from": "2016-09-26", - "date_to": "2016-10-26", - "utility_type": "oil", - "usage": "1000.00", - "charge": "3380.00" + "building_id": 2003, + "date_from": "2016-09-20", + "date_to": "2016-10-20", + "utility_type": "electricity", + "usage": "37800.00", + "charge": "6412.98" } }, { "model": "financialInputs.bills", - "pk": 70, + "pk": 706, "fields": { - "building_id": 457, - "date_from": "2016-08-25", - "date_to": "2016-09-26", - "utility_type": "oil", - "usage": "500.00", - "charge": "1850.00" + "building_id": 2003, + "date_from": "2016-08-19", + "date_to": "2016-09-20", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8708.14" } }, { "model": "financialInputs.bills", - "pk": 71, + "pk": 707, "fields": { - "building_id": 457, - "date_from": "2016-07-27", - "date_to": "2016-08-25", - "utility_type": "oil", - "usage": "800.00", - "charge": "3000.00" + "building_id": 2003, + "date_from": "2016-07-21", + "date_to": "2016-08-19", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8845.57" } }, { "model": "financialInputs.bills", - "pk": 72, + "pk": 708, "fields": { - "building_id": 457, - "date_from": "2016-06-27", - "date_to": "2016-07-27", - "utility_type": "oil", - "usage": "900.00", - "charge": "3200.00" + "building_id": 2003, + "date_from": "2016-06-21", + "date_to": "2016-07-21", + "utility_type": "electricity", + "usage": "49800.00", + "charge": "8599.52" } }, { "model": "financialInputs.bills", - "pk": 73, + "pk": 709, "fields": { - "building_id": 457, - "date_from": "2016-05-26", - "date_to": "2016-06-27", - "utility_type": "oil", - "usage": "1700.00", - "charge": "6700.00" + "building_id": 2003, + "date_from": "2016-05-20", + "date_to": "2016-06-21", + "utility_type": "electricity", + "usage": "48600.00", + "charge": "8688.43" } }, { "model": "financialInputs.bills", - "pk": 74, + "pk": 710, "fields": { - "building_id": 457, - "date_from": "2016-04-27", - "date_to": "2016-05-26", - "utility_type": "oil", - "usage": "1400.00", - "charge": "5300.00" + "building_id": 2003, + "date_from": "2016-04-21", + "date_to": "2016-05-20", + "utility_type": "electricity", + "usage": "34800.00", + "charge": "5446.82" } }, { "model": "financialInputs.bills", - "pk": 75, + "pk": 711, "fields": { - "building_id": 457, - "date_from": "2016-03-29", - "date_to": "2016-04-27", - "utility_type": "oil", - "usage": "1200.00", - "charge": "4850.00" + "building_id": 2003, + "date_from": "2016-03-23", + "date_to": "2016-04-21", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5424.90" } }, { "model": "financialInputs.bills", - "pk": 76, + "pk": 712, "fields": { - "building_id": 457, - "date_from": "2016-02-29", - "date_to": "2016-03-29", - "utility_type": "oil", - "usage": "1300.00", - "charge": "5130.00" + "building_id": 2003, + "date_from": "2016-02-23", + "date_to": "2016-03-23", + "utility_type": "electricity", + "usage": "31200.00", + "charge": "5404.15" } }, { "model": "financialInputs.bills", - "pk": 77, + "pk": 713, "fields": { - "building_id": 457, - "date_from": "2016-01-28", - "date_to": "2016-02-29", - "utility_type": "oil", - "usage": "1500.00", - "charge": "5700.00" + "building_id": 2003, + "date_from": "2016-01-22", + "date_to": "2016-02-23", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5376.68" } }, { "model": "financialInputs.bills", - "pk": 78, - "fields": { - "building_id": 457, - "date_from": "2015-12-29", - "date_to": "2016-01-28", - "utility_type": "oil", - "usage": "1200.00", - "charge": "3120.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 79, - "fields": { - "building_id": 457, - "date_from": "2015-11-25", - "date_to": "2015-12-29", - "utility_type": "oil", - "usage": "750.00", - "charge": "2420.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 80, - "fields": { - "building_id": 457, - "date_from": "2015-10-27", - "date_to": "2015-11-25", - "utility_type": "oil", - "usage": "1050.00", - "charge": "3400.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 81, - "fields": { - "building_id": 457, - "date_from": "2015-09-25", - "date_to": "2015-10-27", - "utility_type": "oil", - "usage": "550.00", - "charge": "1870.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 82, - "fields": { - "building_id": 457, - "date_from": "2015-08-26", - "date_to": "2015-09-25", - "utility_type": "oil", - "usage": "850.00", - "charge": "3020.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 83, - "fields": { - "building_id": 457, - "date_from": "2015-07-28", - "date_to": "2015-08-26", - "utility_type": "oil", - "usage": "950.00", - "charge": "3220.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 84, - "fields": { - "building_id": 457, - "date_from": "2015-06-26", - "date_to": "2015-07-28", - "utility_type": "oil", - "usage": "1750.00", - "charge": "6720.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 85, - "fields": { - "building_id": 457, - "date_from": "2015-05-28", - "date_to": "2015-06-26", - "utility_type": "oil", - "usage": "1450.00", - "charge": "5320.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 86, - "fields": { - "building_id": 457, - "date_from": "2015-04-28", - "date_to": "2015-05-28", - "utility_type": "oil", - "usage": "1250.00", - "charge": "4870.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 87, - "fields": { - "building_id": 457, - "date_from": "2015-03-30", - "date_to": "2015-04-28", - "utility_type": "oil", - "usage": "1350.00", - "charge": "5150.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 88, - "fields": { - "building_id": 457, - "date_from": "2015-02-27", - "date_to": "2015-03-30", - "utility_type": "oil", - "usage": "1550.00", - "charge": "5720.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 89, - "fields": { - "building_id": 457, - "date_from": "2016-01-03", - "date_to": "2016-12-28", - "utility_type": "water", - "usage": "3500000.00", - "charge": "20000.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 90, - "fields": { - "building_id": 457, - "date_from": "2015-01-01", - "date_to": "2016-01-02", - "utility_type": "water", - "usage": "3600000.00", - "charge": "20500.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 91, - "fields": { - "building_id": 457, - "date_from": "2014-01-02", - "date_to": "2014-12-31", - "utility_type": "water", - "usage": "3300000.00", - "charge": "21000.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 92, - "fields": { - "building_id": 546, - "date_from": "2016-11-28", - "date_to": "2016-12-28", - "utility_type": "electricity", - "usage": "117.88", - "charge": "56.01" - } -}, -{ - "model": "financialInputs.bills", - "pk": 93, - "fields": { - "building_id": 546, - "date_from": "2016-10-26", - "date_to": "2016-11-28", - "utility_type": "electricity", - "usage": "91.93", - "charge": "39.62" - } -}, -{ - "model": "financialInputs.bills", - "pk": 94, - "fields": { - "building_id": 546, - "date_from": "2016-09-26", - "date_to": "2016-10-26", - "utility_type": "electricity", - "usage": "89.07", - "charge": "67.42" - } -}, -{ - "model": "financialInputs.bills", - "pk": 95, - "fields": { - "building_id": 546, - "date_from": "2016-08-25", - "date_to": "2016-09-26", - "utility_type": "electricity", - "usage": "98.17", - "charge": "63.60" - } -}, -{ - "model": "financialInputs.bills", - "pk": 96, - "fields": { - "building_id": 546, - "date_from": "2016-07-27", - "date_to": "2016-08-25", - "utility_type": "electricity", - "usage": "86.88", - "charge": "57.25" - } -}, -{ - "model": "financialInputs.bills", - "pk": 97, - "fields": { - "building_id": 546, - "date_from": "2016-06-27", - "date_to": "2016-07-27", - "utility_type": "electricity", - "usage": "87.05", - "charge": "56.21" - } -}, -{ - "model": "financialInputs.bills", - "pk": 98, - "fields": { - "building_id": 546, - "date_from": "2016-05-26", - "date_to": "2016-06-27", - "utility_type": "electricity", - "usage": "101.05", - "charge": "71.66" - } -}, -{ - "model": "financialInputs.bills", - "pk": 99, - "fields": { - "building_id": 546, - "date_from": "2016-04-27", - "date_to": "2016-05-26", - "utility_type": "electricity", - "usage": "88.19", - "charge": "68.28" - } -}, -{ - "model": "financialInputs.bills", - "pk": 100, - "fields": { - "building_id": 546, - "date_from": "2016-03-29", - "date_to": "2016-04-27", - "utility_type": "electricity", - "usage": "90.05", - "charge": "63.57" - } -}, -{ - "model": "financialInputs.bills", - "pk": 101, - "fields": { - "building_id": 546, - "date_from": "2016-02-29", - "date_to": "2016-03-29", - "utility_type": "electricity", - "usage": "104.19", - "charge": "68.12" - } -}, -{ - "model": "financialInputs.bills", - "pk": 102, - "fields": { - "building_id": 546, - "date_from": "2016-01-28", - "date_to": "2016-02-29", - "utility_type": "electricity", - "usage": "98.13", - "charge": "71.73" - } -}, -{ - "model": "financialInputs.bills", - "pk": 103, - "fields": { - "building_id": 546, - "date_from": "2015-12-29", - "date_to": "2016-01-28", - "utility_type": "electricity", - "usage": "182.55", - "charge": "145.44" - } -}, -{ - "model": "financialInputs.bills", - "pk": 104, - "fields": { - "building_id": 546, - "date_from": "2015-11-25", - "date_to": "2015-12-29", - "utility_type": "electricity", - "usage": "208.85", - "charge": "172.37" - } -}, -{ - "model": "financialInputs.bills", - "pk": 105, + "pk": 714, "fields": { - "building_id": 546, - "date_from": "2015-10-27", - "date_to": "2015-11-25", + "building_id": 2003, + "date_from": "2015-12-22", + "date_to": "2016-01-22", "utility_type": "electricity", - "usage": "144.06", - "charge": "130.65" + "usage": "36600.00", + "charge": "6431.27" } }, { "model": "financialInputs.bills", - "pk": 106, + "pk": 715, "fields": { - "building_id": 546, - "date_from": "2015-09-25", - "date_to": "2015-10-27", + "building_id": 2003, + "date_from": "2015-11-19", + "date_to": "2015-12-22", "utility_type": "electricity", - "usage": "136.16", - "charge": "136.10" + "usage": "36000.00", + "charge": "5829.68" } }, { "model": "financialInputs.bills", - "pk": 107, + "pk": 716, "fields": { - "building_id": 546, - "date_from": "2015-08-26", - "date_to": "2015-09-25", + "building_id": 2003, + "date_from": "2015-10-21", + "date_to": "2015-11-19", "utility_type": "electricity", - "usage": "162.13", - "charge": "137.14" + "usage": "36000.00", + "charge": "6245.07" } }, { "model": "financialInputs.bills", - "pk": 108, + "pk": 717, "fields": { - "building_id": 546, - "date_from": "2015-07-28", - "date_to": "2015-08-26", + "building_id": 2003, + "date_from": "2015-09-21", + "date_to": "2015-10-21", "utility_type": "electricity", - "usage": "154.95", - "charge": "126.16" + "usage": "36600.00", + "charge": "6303.98" } }, { "model": "financialInputs.bills", - "pk": 109, + "pk": 718, "fields": { - "building_id": 546, - "date_from": "2015-06-26", - "date_to": "2015-07-28", + "building_id": 2003, + "date_from": "2015-08-20", + "date_to": "2015-09-21", "utility_type": "electricity", - "usage": "179.64", - "charge": "152.56" + "usage": "54000.00", + "charge": "9611.84" } }, { "model": "financialInputs.bills", - "pk": 110, + "pk": 719, "fields": { - "building_id": 546, - "date_from": "2015-05-28", - "date_to": "2015-06-26", + "building_id": 2003, + "date_from": "2015-07-22", + "date_to": "2015-08-20", "utility_type": "electricity", - "usage": "189.02", - "charge": "169.68" + "usage": "51000.00", + "charge": "9320.90" } }, { "model": "financialInputs.bills", - "pk": 111, + "pk": 720, "fields": { - "building_id": 546, - "date_from": "2015-04-28", - "date_to": "2015-05-28", + "building_id": 2003, + "date_from": "2015-06-22", + "date_to": "2015-07-22", "utility_type": "electricity", - "usage": "168.92", - "charge": "196.46" + "usage": "52800.00", + "charge": "10168.65" } }, { "model": "financialInputs.bills", - "pk": 112, + "pk": 721, "fields": { - "building_id": 546, - "date_from": "2015-03-30", - "date_to": "2015-04-28", + "building_id": 2003, + "date_from": "2015-05-21", + "date_to": "2015-06-22", "utility_type": "electricity", - "usage": "190.80", - "charge": "163.49" + "usage": "49200.00", + "charge": "9277.00" } }, { "model": "financialInputs.bills", - "pk": 113, + "pk": 722, "fields": { - "building_id": 546, - "date_from": "2015-02-27", - "date_to": "2015-03-30", + "building_id": 2003, + "date_from": "2015-04-22", + "date_to": "2015-05-21", "utility_type": "electricity", - "usage": "189.42", - "charge": "163.88" + "usage": "40200.00", + "charge": "7404.47" } }, { "model": "financialInputs.bills", - "pk": 114, + "pk": 723, "fields": { - "building_id": 546, - "date_from": "2015-01-28", - "date_to": "2015-02-27", + "building_id": 2003, + "date_from": "2015-03-24", + "date_to": "2015-04-22", "utility_type": "electricity", - "usage": "214.66", - "charge": "172.33" - } -}, -{ - "model": "financialInputs.bills", - "pk": 115, - "fields": { - "building_id": 546, - "date_from": "2016-11-22", - "date_to": "2016-12-16", - "utility_type": "gas", - "usage": "322.00", - "charge": "304.79" - } -}, -{ - "model": "financialInputs.bills", - "pk": 116, - "fields": { - "building_id": 546, - "date_from": "2016-10-18", - "date_to": "2016-11-22", - "utility_type": "gas", - "usage": "470.00", - "charge": "456.54" - } -}, -{ - "model": "financialInputs.bills", - "pk": 117, - "fields": { - "building_id": 546, - "date_from": "2016-09-30", - "date_to": "2016-10-18", - "utility_type": "gas", - "usage": "241.00", - "charge": "232.75" - } -}, -{ - "model": "financialInputs.bills", - "pk": 118, - "fields": { - "building_id": 546, - "date_from": "2016-09-19", - "date_to": "2016-09-30", - "utility_type": "gas", - "usage": "148.00", - "charge": "372.16" - } -}, -{ - "model": "financialInputs.bills", - "pk": 119, - "fields": { - "building_id": 546, - "date_from": "2016-08-18", - "date_to": "2016-09-19", - "utility_type": "gas", - "usage": "429.00", - "charge": "192.29" + "usage": "36000.00", + "charge": "5751.96" } }, { - "model": "financialInputs.bills", - "pk": 120, + "model": "financialInputs.estimationalgorithm", + "pk": 6, "fields": { - "building_id": 546, - "date_from": "2016-07-20", - "date_to": "2016-08-18", - "utility_type": "gas", - "usage": "389.00", - "charge": "379.36" + "algorithm": "Rough Estimation", + "building_id": 289 } }, { - "model": "financialInputs.bills", - "pk": 121, + "model": "financialInputs.estimationalgorithm", + "pk": 15, "fields": { - "building_id": 546, - "date_from": "2016-06-20", - "date_to": "2016-07-20", - "utility_type": "gas", - "usage": "402.00", - "charge": "385.14" + "algorithm": "Rough Estimation", + "building_id": 2002 } }, { - "model": "financialInputs.bills", - "pk": 122, - "fields": { - "building_id": 546, - "date_from": "2016-05-18", - "date_to": "2016-06-20", - "utility_type": "gas", - "usage": "443.00", - "charge": "400.74" - } -}, -{ - "model": "financialInputs.bills", - "pk": 123, - "fields": { - "building_id": 546, - "date_from": "2016-04-19", - "date_to": "2016-05-18", - "utility_type": "gas", - "usage": "389.00", - "charge": "343.49" - } -}, -{ - "model": "financialInputs.bills", - "pk": 124, - "fields": { - "building_id": 546, - "date_from": "2016-03-18", - "date_to": "2016-04-19", - "utility_type": "gas", - "usage": "429.00", - "charge": "377.99" - } -}, -{ - "model": "financialInputs.bills", - "pk": 125, - "fields": { - "building_id": 546, - "date_from": "2016-02-17", - "date_to": "2016-03-18", - "utility_type": "gas", - "usage": "402.00", - "charge": "378.44" - } -}, -{ - "model": "financialInputs.bills", - "pk": 126, - "fields": { - "building_id": 546, - "date_from": "2016-01-19", - "date_to": "2016-02-17", - "utility_type": "gas", - "usage": "389.00", - "charge": "361.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 127, - "fields": { - "building_id": 546, - "date_from": "2015-12-16", - "date_to": "2016-01-19", - "utility_type": "gas", - "usage": "456.00", - "charge": "454.84" - } -}, -{ - "model": "financialInputs.bills", - "pk": 128, - "fields": { - "building_id": 546, - "date_from": "2015-11-16", - "date_to": "2015-12-16", - "utility_type": "gas", - "usage": "402.00", - "charge": "397.33" - } -}, -{ - "model": "financialInputs.bills", - "pk": 129, - "fields": { - "building_id": 546, - "date_from": "2015-10-16", - "date_to": "2015-11-16", - "utility_type": "gas", - "usage": "416.00", - "charge": "401.29" - } -}, -{ - "model": "financialInputs.bills", - "pk": 130, - "fields": { - "building_id": 546, - "date_from": "2015-09-19", - "date_to": "2015-10-16", - "utility_type": "gas", - "usage": "362.00", - "charge": "354.76" - } -}, -{ - "model": "financialInputs.bills", - "pk": 131, - "fields": { - "building_id": 546, - "date_from": "2015-08-18", - "date_to": "2015-09-19", - "utility_type": "gas", - "usage": "429.00", - "charge": "412.32" - } -}, -{ - "model": "financialInputs.bills", - "pk": 132, - "fields": { - "building_id": 546, - "date_from": "2015-07-20", - "date_to": "2015-08-18", - "utility_type": "gas", - "usage": "389.00", - "charge": "378.53" - } -}, -{ - "model": "financialInputs.bills", - "pk": 133, - "fields": { - "building_id": 546, - "date_from": "2015-06-18", - "date_to": "2015-07-20", - "utility_type": "gas", - "usage": "429.00", - "charge": "414.33" - } -}, -{ - "model": "financialInputs.bills", - "pk": 134, - "fields": { - "building_id": 546, - "date_from": "2015-05-19", - "date_to": "2015-06-18", - "utility_type": "gas", - "usage": "402.00", - "charge": "390.65" - } -}, -{ - "model": "financialInputs.bills", - "pk": 135, - "fields": { - "building_id": 547, - "date_from": "2016-11-28", - "date_to": "2016-12-28", - "utility_type": "electricity", - "usage": "117.88", - "charge": "56.01" - } -}, -{ - "model": "financialInputs.bills", - "pk": 136, - "fields": { - "building_id": 547, - "date_from": "2016-10-26", - "date_to": "2016-11-28", - "utility_type": "electricity", - "usage": "91.93", - "charge": "39.62" - } -}, -{ - "model": "financialInputs.bills", - "pk": 137, - "fields": { - "building_id": 547, - "date_from": "2016-09-26", - "date_to": "2016-10-26", - "utility_type": "electricity", - "usage": "89.07", - "charge": "67.42" - } -}, -{ - "model": "financialInputs.bills", - "pk": 138, - "fields": { - "building_id": 547, - "date_from": "2016-08-25", - "date_to": "2016-09-26", - "utility_type": "electricity", - "usage": "98.17", - "charge": "63.60" - } -}, -{ - "model": "financialInputs.bills", - "pk": 139, - "fields": { - "building_id": 547, - "date_from": "2016-07-27", - "date_to": "2016-08-25", - "utility_type": "electricity", - "usage": "86.88", - "charge": "57.25" - } -}, -{ - "model": "financialInputs.bills", - "pk": 140, - "fields": { - "building_id": 547, - "date_from": "2016-06-27", - "date_to": "2016-07-27", - "utility_type": "electricity", - "usage": "87.05", - "charge": "56.21" - } -}, -{ - "model": "financialInputs.bills", - "pk": 141, - "fields": { - "building_id": 547, - "date_from": "2016-05-26", - "date_to": "2016-06-27", - "utility_type": "electricity", - "usage": "101.05", - "charge": "71.66" - } -}, -{ - "model": "financialInputs.bills", - "pk": 142, - "fields": { - "building_id": 547, - "date_from": "2016-04-27", - "date_to": "2016-05-26", - "utility_type": "electricity", - "usage": "88.19", - "charge": "68.28" - } -}, -{ - "model": "financialInputs.bills", - "pk": 143, - "fields": { - "building_id": 547, - "date_from": "2016-03-29", - "date_to": "2016-04-27", - "utility_type": "electricity", - "usage": "90.05", - "charge": "63.57" - } -}, -{ - "model": "financialInputs.bills", - "pk": 144, - "fields": { - "building_id": 547, - "date_from": "2016-02-29", - "date_to": "2016-03-29", - "utility_type": "electricity", - "usage": "104.19", - "charge": "68.12" - } -}, -{ - "model": "financialInputs.bills", - "pk": 145, - "fields": { - "building_id": 547, - "date_from": "2016-01-28", - "date_to": "2016-02-29", - "utility_type": "electricity", - "usage": "98.13", - "charge": "71.73" - } -}, -{ - "model": "financialInputs.bills", - "pk": 146, - "fields": { - "building_id": 547, - "date_from": "2015-12-29", - "date_to": "2016-01-28", - "utility_type": "electricity", - "usage": "182.55", - "charge": "145.44" - } -}, -{ - "model": "financialInputs.bills", - "pk": 147, - "fields": { - "building_id": 547, - "date_from": "2015-11-25", - "date_to": "2015-12-29", - "utility_type": "electricity", - "usage": "208.85", - "charge": "172.37" - } -}, -{ - "model": "financialInputs.bills", - "pk": 148, - "fields": { - "building_id": 547, - "date_from": "2015-10-27", - "date_to": "2015-11-25", - "utility_type": "electricity", - "usage": "144.06", - "charge": "130.65" - } -}, -{ - "model": "financialInputs.bills", - "pk": 149, - "fields": { - "building_id": 547, - "date_from": "2015-09-25", - "date_to": "2015-10-27", - "utility_type": "electricity", - "usage": "136.16", - "charge": "136.10" - } -}, -{ - "model": "financialInputs.bills", - "pk": 150, - "fields": { - "building_id": 547, - "date_from": "2015-08-26", - "date_to": "2015-09-25", - "utility_type": "electricity", - "usage": "162.13", - "charge": "137.14" - } -}, -{ - "model": "financialInputs.bills", - "pk": 151, - "fields": { - "building_id": 547, - "date_from": "2015-07-28", - "date_to": "2015-08-26", - "utility_type": "electricity", - "usage": "154.95", - "charge": "126.16" - } -}, -{ - "model": "financialInputs.bills", - "pk": 152, - "fields": { - "building_id": 547, - "date_from": "2015-06-26", - "date_to": "2015-07-28", - "utility_type": "electricity", - "usage": "179.64", - "charge": "152.56" - } -}, -{ - "model": "financialInputs.bills", - "pk": 153, - "fields": { - "building_id": 547, - "date_from": "2015-05-28", - "date_to": "2015-06-26", - "utility_type": "electricity", - "usage": "189.02", - "charge": "169.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 154, - "fields": { - "building_id": 547, - "date_from": "2015-04-28", - "date_to": "2015-05-28", - "utility_type": "electricity", - "usage": "168.92", - "charge": "196.46" - } -}, -{ - "model": "financialInputs.bills", - "pk": 155, - "fields": { - "building_id": 547, - "date_from": "2015-03-30", - "date_to": "2015-04-28", - "utility_type": "electricity", - "usage": "190.80", - "charge": "163.49" - } -}, -{ - "model": "financialInputs.bills", - "pk": 156, - "fields": { - "building_id": 547, - "date_from": "2015-02-27", - "date_to": "2015-03-30", - "utility_type": "electricity", - "usage": "189.42", - "charge": "163.88" - } -}, -{ - "model": "financialInputs.bills", - "pk": 157, - "fields": { - "building_id": 547, - "date_from": "2016-11-22", - "date_to": "2016-12-16", - "utility_type": "gas", - "usage": "322.00", - "charge": "304.79" - } -}, -{ - "model": "financialInputs.bills", - "pk": 158, - "fields": { - "building_id": 547, - "date_from": "2016-10-18", - "date_to": "2016-11-22", - "utility_type": "gas", - "usage": "470.00", - "charge": "456.54" - } -}, -{ - "model": "financialInputs.bills", - "pk": 159, - "fields": { - "building_id": 547, - "date_from": "2016-09-30", - "date_to": "2016-10-18", - "utility_type": "gas", - "usage": "241.00", - "charge": "232.75" - } -}, -{ - "model": "financialInputs.bills", - "pk": 160, - "fields": { - "building_id": 547, - "date_from": "2016-09-19", - "date_to": "2016-09-30", - "utility_type": "gas", - "usage": "148.00", - "charge": "372.16" - } -}, -{ - "model": "financialInputs.bills", - "pk": 161, - "fields": { - "building_id": 547, - "date_from": "2016-08-18", - "date_to": "2016-09-19", - "utility_type": "gas", - "usage": "429.00", - "charge": "192.29" - } -}, -{ - "model": "financialInputs.bills", - "pk": 162, - "fields": { - "building_id": 547, - "date_from": "2016-07-20", - "date_to": "2016-08-18", - "utility_type": "gas", - "usage": "389.00", - "charge": "379.36" - } -}, -{ - "model": "financialInputs.bills", - "pk": 163, - "fields": { - "building_id": 547, - "date_from": "2016-06-20", - "date_to": "2016-07-20", - "utility_type": "gas", - "usage": "402.00", - "charge": "385.14" - } -}, -{ - "model": "financialInputs.bills", - "pk": 164, - "fields": { - "building_id": 547, - "date_from": "2016-05-18", - "date_to": "2016-06-20", - "utility_type": "gas", - "usage": "443.00", - "charge": "400.74" - } -}, -{ - "model": "financialInputs.bills", - "pk": 165, - "fields": { - "building_id": 547, - "date_from": "2016-04-19", - "date_to": "2016-05-18", - "utility_type": "gas", - "usage": "389.00", - "charge": "343.49" - } -}, -{ - "model": "financialInputs.bills", - "pk": 166, - "fields": { - "building_id": 547, - "date_from": "2016-03-18", - "date_to": "2016-04-19", - "utility_type": "gas", - "usage": "429.00", - "charge": "377.99" - } -}, -{ - "model": "financialInputs.bills", - "pk": 167, - "fields": { - "building_id": 547, - "date_from": "2016-02-17", - "date_to": "2016-03-18", - "utility_type": "gas", - "usage": "402.00", - "charge": "378.44" - } -}, -{ - "model": "financialInputs.bills", - "pk": 168, - "fields": { - "building_id": 547, - "date_from": "2016-01-19", - "date_to": "2016-02-17", - "utility_type": "gas", - "usage": "389.00", - "charge": "361.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 169, - "fields": { - "building_id": 547, - "date_from": "2015-12-16", - "date_to": "2016-01-19", - "utility_type": "gas", - "usage": "456.00", - "charge": "454.84" - } -}, -{ - "model": "financialInputs.bills", - "pk": 170, - "fields": { - "building_id": 547, - "date_from": "2015-11-16", - "date_to": "2015-12-16", - "utility_type": "gas", - "usage": "402.00", - "charge": "397.33" - } -}, -{ - "model": "financialInputs.bills", - "pk": 171, - "fields": { - "building_id": 547, - "date_from": "2015-10-16", - "date_to": "2015-11-16", - "utility_type": "gas", - "usage": "416.00", - "charge": "401.29" - } -}, -{ - "model": "financialInputs.bills", - "pk": 172, - "fields": { - "building_id": 547, - "date_from": "2015-09-19", - "date_to": "2015-10-16", - "utility_type": "gas", - "usage": "362.00", - "charge": "354.76" - } -}, -{ - "model": "financialInputs.bills", - "pk": 173, - "fields": { - "building_id": 547, - "date_from": "2015-08-18", - "date_to": "2015-09-19", - "utility_type": "gas", - "usage": "429.00", - "charge": "412.32" - } -}, -{ - "model": "financialInputs.bills", - "pk": 174, - "fields": { - "building_id": 547, - "date_from": "2015-07-20", - "date_to": "2015-08-18", - "utility_type": "gas", - "usage": "389.00", - "charge": "378.53" - } -}, -{ - "model": "financialInputs.bills", - "pk": 175, - "fields": { - "building_id": 547, - "date_from": "2015-06-18", - "date_to": "2015-07-20", - "utility_type": "gas", - "usage": "429.00", - "charge": "414.33" - } -}, -{ - "model": "financialInputs.bills", - "pk": 176, - "fields": { - "building_id": 547, - "date_from": "2016-11-28", - "date_to": "2016-12-28", - "utility_type": "oil", - "usage": "1200.00", - "charge": "3100.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 177, - "fields": { - "building_id": 547, - "date_from": "2016-10-26", - "date_to": "2016-11-28", - "utility_type": "oil", - "usage": "700.00", - "charge": "2400.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 178, - "fields": { - "building_id": 547, - "date_from": "2016-09-26", - "date_to": "2016-10-26", - "utility_type": "oil", - "usage": "1000.00", - "charge": "3380.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 179, - "fields": { - "building_id": 547, - "date_from": "2016-08-25", - "date_to": "2016-09-26", - "utility_type": "oil", - "usage": "500.00", - "charge": "1850.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 180, - "fields": { - "building_id": 547, - "date_from": "2016-07-27", - "date_to": "2016-08-25", - "utility_type": "oil", - "usage": "800.00", - "charge": "3000.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 181, - "fields": { - "building_id": 547, - "date_from": "2016-06-27", - "date_to": "2016-07-27", - "utility_type": "oil", - "usage": "900.00", - "charge": "3200.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 182, - "fields": { - "building_id": 547, - "date_from": "2016-05-26", - "date_to": "2016-06-27", - "utility_type": "oil", - "usage": "1700.00", - "charge": "6700.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 183, - "fields": { - "building_id": 547, - "date_from": "2016-04-27", - "date_to": "2016-05-26", - "utility_type": "oil", - "usage": "1400.00", - "charge": "5300.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 184, - "fields": { - "building_id": 547, - "date_from": "2016-03-29", - "date_to": "2016-04-27", - "utility_type": "oil", - "usage": "1200.00", - "charge": "4850.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 185, - "fields": { - "building_id": 547, - "date_from": "2016-02-29", - "date_to": "2016-03-29", - "utility_type": "oil", - "usage": "1300.00", - "charge": "5130.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 186, - "fields": { - "building_id": 547, - "date_from": "2016-01-28", - "date_to": "2016-02-29", - "utility_type": "oil", - "usage": "1500.00", - "charge": "5700.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 187, - "fields": { - "building_id": 547, - "date_from": "2015-12-29", - "date_to": "2016-01-28", - "utility_type": "oil", - "usage": "1200.00", - "charge": "3120.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 188, - "fields": { - "building_id": 547, - "date_from": "2015-11-25", - "date_to": "2015-12-29", - "utility_type": "oil", - "usage": "750.00", - "charge": "2420.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 189, - "fields": { - "building_id": 547, - "date_from": "2015-10-27", - "date_to": "2015-11-25", - "utility_type": "oil", - "usage": "1050.00", - "charge": "3400.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 190, - "fields": { - "building_id": 547, - "date_from": "2015-09-25", - "date_to": "2015-10-27", - "utility_type": "oil", - "usage": "550.00", - "charge": "1870.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 191, - "fields": { - "building_id": 547, - "date_from": "2015-08-26", - "date_to": "2015-09-25", - "utility_type": "oil", - "usage": "850.00", - "charge": "3020.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 192, - "fields": { - "building_id": 547, - "date_from": "2015-07-28", - "date_to": "2015-08-26", - "utility_type": "oil", - "usage": "950.00", - "charge": "3220.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 193, - "fields": { - "building_id": 547, - "date_from": "2015-06-26", - "date_to": "2015-07-28", - "utility_type": "oil", - "usage": "1750.00", - "charge": "6720.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 194, - "fields": { - "building_id": 547, - "date_from": "2015-05-28", - "date_to": "2015-06-26", - "utility_type": "oil", - "usage": "1450.00", - "charge": "5320.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 195, - "fields": { - "building_id": 547, - "date_from": "2015-04-28", - "date_to": "2015-05-28", - "utility_type": "oil", - "usage": "1250.00", - "charge": "4870.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 196, - "fields": { - "building_id": 547, - "date_from": "2015-03-30", - "date_to": "2015-04-28", - "utility_type": "oil", - "usage": "1350.00", - "charge": "5150.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 197, - "fields": { - "building_id": 547, - "date_from": "2015-02-27", - "date_to": "2015-03-30", - "utility_type": "oil", - "usage": "1550.00", - "charge": "5720.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 198, - "fields": { - "building_id": 547, - "date_from": "2016-01-03", - "date_to": "2016-12-28", - "utility_type": "water", - "usage": "3500000.00", - "charge": "20000.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 199, - "fields": { - "building_id": 547, - "date_from": "2015-01-01", - "date_to": "2016-01-02", - "utility_type": "water", - "usage": "3600000.00", - "charge": "20500.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 265, - "fields": { - "building_id": 509, - "date_from": "2016-11-28", - "date_to": "2016-12-28", - "utility_type": "electricity", - "usage": "117.88", - "charge": "56.01" - } -}, -{ - "model": "financialInputs.bills", - "pk": 266, - "fields": { - "building_id": 509, - "date_from": "2016-10-26", - "date_to": "2016-11-28", - "utility_type": "electricity", - "usage": "91.93", - "charge": "39.62" - } -}, -{ - "model": "financialInputs.bills", - "pk": 267, - "fields": { - "building_id": 509, - "date_from": "2016-09-26", - "date_to": "2016-10-26", - "utility_type": "electricity", - "usage": "89.07", - "charge": "67.42" - } -}, -{ - "model": "financialInputs.bills", - "pk": 268, - "fields": { - "building_id": 509, - "date_from": "2016-08-25", - "date_to": "2016-09-26", - "utility_type": "electricity", - "usage": "98.17", - "charge": "63.60" - } -}, -{ - "model": "financialInputs.bills", - "pk": 269, - "fields": { - "building_id": 509, - "date_from": "2016-07-27", - "date_to": "2016-08-25", - "utility_type": "electricity", - "usage": "86.88", - "charge": "57.25" - } -}, -{ - "model": "financialInputs.bills", - "pk": 270, - "fields": { - "building_id": 509, - "date_from": "2016-06-27", - "date_to": "2016-07-27", - "utility_type": "electricity", - "usage": "87.05", - "charge": "56.21" - } -}, -{ - "model": "financialInputs.bills", - "pk": 271, - "fields": { - "building_id": 509, - "date_from": "2016-05-26", - "date_to": "2016-06-27", - "utility_type": "electricity", - "usage": "101.05", - "charge": "71.66" - } -}, -{ - "model": "financialInputs.bills", - "pk": 272, - "fields": { - "building_id": 509, - "date_from": "2016-04-27", - "date_to": "2016-05-26", - "utility_type": "electricity", - "usage": "88.19", - "charge": "68.28" - } -}, -{ - "model": "financialInputs.bills", - "pk": 273, - "fields": { - "building_id": 509, - "date_from": "2016-03-29", - "date_to": "2016-04-27", - "utility_type": "electricity", - "usage": "90.05", - "charge": "63.57" - } -}, -{ - "model": "financialInputs.bills", - "pk": 274, - "fields": { - "building_id": 509, - "date_from": "2016-02-29", - "date_to": "2016-03-29", - "utility_type": "electricity", - "usage": "104.19", - "charge": "68.12" - } -}, -{ - "model": "financialInputs.bills", - "pk": 275, - "fields": { - "building_id": 509, - "date_from": "2016-01-28", - "date_to": "2016-02-29", - "utility_type": "electricity", - "usage": "98.13", - "charge": "71.73" - } -}, -{ - "model": "financialInputs.bills", - "pk": 276, - "fields": { - "building_id": 509, - "date_from": "2015-12-29", - "date_to": "2016-01-28", - "utility_type": "electricity", - "usage": "182.55", - "charge": "145.44" - } -}, -{ - "model": "financialInputs.bills", - "pk": 277, - "fields": { - "building_id": 509, - "date_from": "2015-11-25", - "date_to": "2015-12-29", - "utility_type": "electricity", - "usage": "208.85", - "charge": "172.37" - } -}, -{ - "model": "financialInputs.bills", - "pk": 278, - "fields": { - "building_id": 509, - "date_from": "2015-10-27", - "date_to": "2015-11-25", - "utility_type": "electricity", - "usage": "144.06", - "charge": "130.65" - } -}, -{ - "model": "financialInputs.bills", - "pk": 279, - "fields": { - "building_id": 509, - "date_from": "2015-09-25", - "date_to": "2015-10-27", - "utility_type": "electricity", - "usage": "136.16", - "charge": "136.10" - } -}, -{ - "model": "financialInputs.bills", - "pk": 280, - "fields": { - "building_id": 509, - "date_from": "2015-08-26", - "date_to": "2015-09-25", - "utility_type": "electricity", - "usage": "162.13", - "charge": "137.14" - } -}, -{ - "model": "financialInputs.bills", - "pk": 281, - "fields": { - "building_id": 509, - "date_from": "2015-07-28", - "date_to": "2015-08-26", - "utility_type": "electricity", - "usage": "154.95", - "charge": "126.16" - } -}, -{ - "model": "financialInputs.bills", - "pk": 282, - "fields": { - "building_id": 509, - "date_from": "2015-06-26", - "date_to": "2015-07-28", - "utility_type": "electricity", - "usage": "179.64", - "charge": "152.56" - } -}, -{ - "model": "financialInputs.bills", - "pk": 283, - "fields": { - "building_id": 509, - "date_from": "2015-05-28", - "date_to": "2015-06-26", - "utility_type": "electricity", - "usage": "189.02", - "charge": "169.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 284, - "fields": { - "building_id": 509, - "date_from": "2015-04-28", - "date_to": "2015-05-28", - "utility_type": "electricity", - "usage": "168.92", - "charge": "196.46" - } -}, -{ - "model": "financialInputs.bills", - "pk": 285, - "fields": { - "building_id": 509, - "date_from": "2015-03-30", - "date_to": "2015-04-28", - "utility_type": "electricity", - "usage": "190.80", - "charge": "163.49" - } -}, -{ - "model": "financialInputs.bills", - "pk": 286, - "fields": { - "building_id": 509, - "date_from": "2015-02-27", - "date_to": "2015-03-30", - "utility_type": "electricity", - "usage": "189.42", - "charge": "163.88" - } -}, -{ - "model": "financialInputs.bills", - "pk": 287, - "fields": { - "building_id": 509, - "date_from": "2016-11-22", - "date_to": "2016-12-16", - "utility_type": "gas", - "usage": "322.00", - "charge": "304.79" - } -}, -{ - "model": "financialInputs.bills", - "pk": 288, - "fields": { - "building_id": 509, - "date_from": "2016-10-18", - "date_to": "2016-11-22", - "utility_type": "gas", - "usage": "470.00", - "charge": "456.54" - } -}, -{ - "model": "financialInputs.bills", - "pk": 289, - "fields": { - "building_id": 509, - "date_from": "2016-09-30", - "date_to": "2016-10-18", - "utility_type": "gas", - "usage": "241.00", - "charge": "232.75" - } -}, -{ - "model": "financialInputs.bills", - "pk": 290, - "fields": { - "building_id": 509, - "date_from": "2016-09-19", - "date_to": "2016-09-30", - "utility_type": "gas", - "usage": "148.00", - "charge": "372.16" - } -}, -{ - "model": "financialInputs.bills", - "pk": 291, - "fields": { - "building_id": 509, - "date_from": "2016-08-18", - "date_to": "2016-09-19", - "utility_type": "gas", - "usage": "429.00", - "charge": "192.29" - } -}, -{ - "model": "financialInputs.bills", - "pk": 292, - "fields": { - "building_id": 509, - "date_from": "2016-07-20", - "date_to": "2016-08-18", - "utility_type": "gas", - "usage": "389.00", - "charge": "379.36" - } -}, -{ - "model": "financialInputs.bills", - "pk": 293, - "fields": { - "building_id": 509, - "date_from": "2016-06-20", - "date_to": "2016-07-20", - "utility_type": "gas", - "usage": "402.00", - "charge": "385.14" - } -}, -{ - "model": "financialInputs.bills", - "pk": 294, - "fields": { - "building_id": 509, - "date_from": "2016-05-18", - "date_to": "2016-06-20", - "utility_type": "gas", - "usage": "443.00", - "charge": "400.74" - } -}, -{ - "model": "financialInputs.bills", - "pk": 295, - "fields": { - "building_id": 509, - "date_from": "2016-04-19", - "date_to": "2016-05-18", - "utility_type": "gas", - "usage": "389.00", - "charge": "343.49" - } -}, -{ - "model": "financialInputs.bills", - "pk": 296, - "fields": { - "building_id": 509, - "date_from": "2016-03-18", - "date_to": "2016-04-19", - "utility_type": "gas", - "usage": "429.00", - "charge": "377.99" - } -}, -{ - "model": "financialInputs.bills", - "pk": 297, - "fields": { - "building_id": 509, - "date_from": "2016-02-17", - "date_to": "2016-03-18", - "utility_type": "gas", - "usage": "402.00", - "charge": "378.44" - } -}, -{ - "model": "financialInputs.bills", - "pk": 298, - "fields": { - "building_id": 509, - "date_from": "2016-01-19", - "date_to": "2016-02-17", - "utility_type": "gas", - "usage": "389.00", - "charge": "361.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 299, - "fields": { - "building_id": 509, - "date_from": "2015-12-16", - "date_to": "2016-01-19", - "utility_type": "gas", - "usage": "456.00", - "charge": "454.84" - } -}, -{ - "model": "financialInputs.bills", - "pk": 300, - "fields": { - "building_id": 509, - "date_from": "2015-11-16", - "date_to": "2015-12-16", - "utility_type": "gas", - "usage": "402.00", - "charge": "397.33" - } -}, -{ - "model": "financialInputs.bills", - "pk": 301, - "fields": { - "building_id": 509, - "date_from": "2015-10-16", - "date_to": "2015-11-16", - "utility_type": "gas", - "usage": "416.00", - "charge": "401.29" - } -}, -{ - "model": "financialInputs.bills", - "pk": 302, - "fields": { - "building_id": 509, - "date_from": "2015-09-19", - "date_to": "2015-10-16", - "utility_type": "gas", - "usage": "362.00", - "charge": "354.76" - } -}, -{ - "model": "financialInputs.bills", - "pk": 303, - "fields": { - "building_id": 509, - "date_from": "2015-08-18", - "date_to": "2015-09-19", - "utility_type": "gas", - "usage": "429.00", - "charge": "412.32" - } -}, -{ - "model": "financialInputs.bills", - "pk": 304, - "fields": { - "building_id": 509, - "date_from": "2015-07-20", - "date_to": "2015-08-18", - "utility_type": "gas", - "usage": "389.00", - "charge": "378.53" - } -}, -{ - "model": "financialInputs.bills", - "pk": 305, - "fields": { - "building_id": 509, - "date_from": "2015-06-18", - "date_to": "2015-07-20", - "utility_type": "gas", - "usage": "429.00", - "charge": "414.33" - } -}, -{ - "model": "financialInputs.bills", - "pk": 306, - "fields": { - "building_id": 509, - "date_from": "2016-11-28", - "date_to": "2016-12-28", - "utility_type": "oil", - "usage": "1200.00", - "charge": "3100.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 307, - "fields": { - "building_id": 509, - "date_from": "2016-10-26", - "date_to": "2016-11-28", - "utility_type": "oil", - "usage": "700.00", - "charge": "2400.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 308, - "fields": { - "building_id": 509, - "date_from": "2016-09-26", - "date_to": "2016-10-26", - "utility_type": "oil", - "usage": "1000.00", - "charge": "3380.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 309, - "fields": { - "building_id": 509, - "date_from": "2016-08-25", - "date_to": "2016-09-26", - "utility_type": "oil", - "usage": "500.00", - "charge": "1850.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 310, - "fields": { - "building_id": 509, - "date_from": "2016-07-27", - "date_to": "2016-08-25", - "utility_type": "oil", - "usage": "800.00", - "charge": "3000.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 311, - "fields": { - "building_id": 509, - "date_from": "2016-06-27", - "date_to": "2016-07-27", - "utility_type": "oil", - "usage": "900.00", - "charge": "3200.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 312, - "fields": { - "building_id": 509, - "date_from": "2016-05-26", - "date_to": "2016-06-27", - "utility_type": "oil", - "usage": "1700.00", - "charge": "6700.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 313, - "fields": { - "building_id": 509, - "date_from": "2016-04-27", - "date_to": "2016-05-26", - "utility_type": "oil", - "usage": "1400.00", - "charge": "5300.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 314, - "fields": { - "building_id": 509, - "date_from": "2016-03-29", - "date_to": "2016-04-27", - "utility_type": "oil", - "usage": "1200.00", - "charge": "4850.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 315, - "fields": { - "building_id": 509, - "date_from": "2016-02-29", - "date_to": "2016-03-29", - "utility_type": "oil", - "usage": "1300.00", - "charge": "5130.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 316, - "fields": { - "building_id": 509, - "date_from": "2016-01-28", - "date_to": "2016-02-29", - "utility_type": "oil", - "usage": "1500.00", - "charge": "5700.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 317, - "fields": { - "building_id": 509, - "date_from": "2015-12-29", - "date_to": "2016-01-28", - "utility_type": "oil", - "usage": "1200.00", - "charge": "3120.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 318, - "fields": { - "building_id": 509, - "date_from": "2015-11-25", - "date_to": "2015-12-29", - "utility_type": "oil", - "usage": "750.00", - "charge": "2420.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 319, - "fields": { - "building_id": 509, - "date_from": "2015-10-27", - "date_to": "2015-11-25", - "utility_type": "oil", - "usage": "1050.00", - "charge": "3400.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 320, - "fields": { - "building_id": 509, - "date_from": "2015-09-25", - "date_to": "2015-10-27", - "utility_type": "oil", - "usage": "550.00", - "charge": "1870.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 321, - "fields": { - "building_id": 509, - "date_from": "2015-08-26", - "date_to": "2015-09-25", - "utility_type": "oil", - "usage": "850.00", - "charge": "3020.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 322, - "fields": { - "building_id": 509, - "date_from": "2015-07-28", - "date_to": "2015-08-26", - "utility_type": "oil", - "usage": "950.00", - "charge": "3220.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 323, - "fields": { - "building_id": 509, - "date_from": "2015-06-26", - "date_to": "2015-07-28", - "utility_type": "oil", - "usage": "1750.00", - "charge": "6720.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 324, - "fields": { - "building_id": 509, - "date_from": "2015-05-28", - "date_to": "2015-06-26", - "utility_type": "oil", - "usage": "1450.00", - "charge": "5320.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 325, - "fields": { - "building_id": 509, - "date_from": "2015-04-28", - "date_to": "2015-05-28", - "utility_type": "oil", - "usage": "1250.00", - "charge": "4870.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 326, - "fields": { - "building_id": 509, - "date_from": "2015-03-30", - "date_to": "2015-04-28", - "utility_type": "oil", - "usage": "1350.00", - "charge": "5150.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 327, - "fields": { - "building_id": 509, - "date_from": "2015-02-27", - "date_to": "2015-03-30", - "utility_type": "oil", - "usage": "1550.00", - "charge": "5720.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 330, - "fields": { - "building_id": 509, - "date_from": "2016-01-03", - "date_to": "2016-12-28", - "utility_type": "water", - "usage": "3500000.00", - "charge": "20000.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 331, - "fields": { - "building_id": 509, - "date_from": "2015-01-01", - "date_to": "2016-01-02", - "utility_type": "water", - "usage": "3600000.00", - "charge": "20500.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 332, - "fields": { - "building_id": 509, - "date_from": "2014-01-02", - "date_to": "2014-12-31", - "utility_type": "water", - "usage": "3300000.00", - "charge": "21000.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 333, - "fields": { - "building_id": 187896, - "date_from": "2016-11-28", - "date_to": "2016-12-28", - "utility_type": "electricity", - "usage": "117.88", - "charge": "56.01" - } -}, -{ - "model": "financialInputs.bills", - "pk": 334, - "fields": { - "building_id": 187896, - "date_from": "2016-10-26", - "date_to": "2016-11-28", - "utility_type": "electricity", - "usage": "91.93", - "charge": "39.62" - } -}, -{ - "model": "financialInputs.bills", - "pk": 335, - "fields": { - "building_id": 187896, - "date_from": "2016-09-26", - "date_to": "2016-10-26", - "utility_type": "electricity", - "usage": "89.07", - "charge": "67.42" - } -}, -{ - "model": "financialInputs.bills", - "pk": 336, - "fields": { - "building_id": 187896, - "date_from": "2016-08-25", - "date_to": "2016-09-26", - "utility_type": "electricity", - "usage": "98.17", - "charge": "63.60" - } -}, -{ - "model": "financialInputs.bills", - "pk": 337, - "fields": { - "building_id": 187896, - "date_from": "2016-07-27", - "date_to": "2016-08-25", - "utility_type": "electricity", - "usage": "86.88", - "charge": "57.25" - } -}, -{ - "model": "financialInputs.bills", - "pk": 338, - "fields": { - "building_id": 187896, - "date_from": "2016-06-27", - "date_to": "2016-07-27", - "utility_type": "electricity", - "usage": "87.05", - "charge": "56.21" - } -}, -{ - "model": "financialInputs.bills", - "pk": 339, - "fields": { - "building_id": 187896, - "date_from": "2016-05-26", - "date_to": "2016-06-27", - "utility_type": "electricity", - "usage": "101.05", - "charge": "71.66" - } -}, -{ - "model": "financialInputs.bills", - "pk": 340, - "fields": { - "building_id": 187896, - "date_from": "2016-04-27", - "date_to": "2016-05-26", - "utility_type": "electricity", - "usage": "88.19", - "charge": "68.28" - } -}, -{ - "model": "financialInputs.bills", - "pk": 341, - "fields": { - "building_id": 187896, - "date_from": "2016-03-29", - "date_to": "2016-04-27", - "utility_type": "electricity", - "usage": "90.05", - "charge": "63.57" - } -}, -{ - "model": "financialInputs.bills", - "pk": 342, - "fields": { - "building_id": 187896, - "date_from": "2016-02-29", - "date_to": "2016-03-29", - "utility_type": "electricity", - "usage": "104.19", - "charge": "68.12" - } -}, -{ - "model": "financialInputs.bills", - "pk": 343, - "fields": { - "building_id": 187896, - "date_from": "2016-01-28", - "date_to": "2016-02-29", - "utility_type": "electricity", - "usage": "98.13", - "charge": "71.73" - } -}, -{ - "model": "financialInputs.bills", - "pk": 344, - "fields": { - "building_id": 187896, - "date_from": "2015-12-29", - "date_to": "2016-01-28", - "utility_type": "electricity", - "usage": "182.55", - "charge": "145.44" - } -}, -{ - "model": "financialInputs.bills", - "pk": 345, - "fields": { - "building_id": 187896, - "date_from": "2015-11-25", - "date_to": "2015-12-29", - "utility_type": "electricity", - "usage": "208.85", - "charge": "172.37" - } -}, -{ - "model": "financialInputs.bills", - "pk": 346, - "fields": { - "building_id": 187896, - "date_from": "2015-10-27", - "date_to": "2015-11-25", - "utility_type": "electricity", - "usage": "144.06", - "charge": "130.65" - } -}, -{ - "model": "financialInputs.bills", - "pk": 347, - "fields": { - "building_id": 187896, - "date_from": "2015-09-25", - "date_to": "2015-10-27", - "utility_type": "electricity", - "usage": "136.16", - "charge": "136.10" - } -}, -{ - "model": "financialInputs.bills", - "pk": 348, - "fields": { - "building_id": 187896, - "date_from": "2015-08-26", - "date_to": "2015-09-25", - "utility_type": "electricity", - "usage": "162.13", - "charge": "137.14" - } -}, -{ - "model": "financialInputs.bills", - "pk": 349, - "fields": { - "building_id": 187896, - "date_from": "2015-07-28", - "date_to": "2015-08-26", - "utility_type": "electricity", - "usage": "154.95", - "charge": "126.16" - } -}, -{ - "model": "financialInputs.bills", - "pk": 350, - "fields": { - "building_id": 187896, - "date_from": "2015-06-26", - "date_to": "2015-07-28", - "utility_type": "electricity", - "usage": "179.64", - "charge": "152.56" - } -}, -{ - "model": "financialInputs.bills", - "pk": 351, - "fields": { - "building_id": 187896, - "date_from": "2015-05-28", - "date_to": "2015-06-26", - "utility_type": "electricity", - "usage": "189.02", - "charge": "169.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 352, - "fields": { - "building_id": 187896, - "date_from": "2015-04-28", - "date_to": "2015-05-28", - "utility_type": "electricity", - "usage": "168.92", - "charge": "196.46" - } -}, -{ - "model": "financialInputs.bills", - "pk": 353, - "fields": { - "building_id": 187896, - "date_from": "2015-03-30", - "date_to": "2015-04-28", - "utility_type": "electricity", - "usage": "190.80", - "charge": "163.49" - } -}, -{ - "model": "financialInputs.bills", - "pk": 354, - "fields": { - "building_id": 187896, - "date_from": "2015-02-27", - "date_to": "2015-03-30", - "utility_type": "electricity", - "usage": "189.42", - "charge": "163.88" - } -}, -{ - "model": "financialInputs.bills", - "pk": 355, - "fields": { - "building_id": 187896, - "date_from": "2015-01-28", - "date_to": "2015-02-27", - "utility_type": "electricity", - "usage": "214.66", - "charge": "172.33" - } -}, -{ - "model": "financialInputs.bills", - "pk": 356, - "fields": { - "building_id": 187896, - "date_from": "2016-11-22", - "date_to": "2016-12-16", - "utility_type": "gas", - "usage": "322.00", - "charge": "304.79" - } -}, -{ - "model": "financialInputs.bills", - "pk": 357, - "fields": { - "building_id": 187896, - "date_from": "2016-10-18", - "date_to": "2016-11-22", - "utility_type": "gas", - "usage": "470.00", - "charge": "456.54" - } -}, -{ - "model": "financialInputs.bills", - "pk": 358, - "fields": { - "building_id": 187896, - "date_from": "2016-09-30", - "date_to": "2016-10-18", - "utility_type": "gas", - "usage": "241.00", - "charge": "232.75" - } -}, -{ - "model": "financialInputs.bills", - "pk": 359, - "fields": { - "building_id": 187896, - "date_from": "2016-09-19", - "date_to": "2016-09-30", - "utility_type": "gas", - "usage": "148.00", - "charge": "372.16" - } -}, -{ - "model": "financialInputs.bills", - "pk": 360, - "fields": { - "building_id": 187896, - "date_from": "2016-08-18", - "date_to": "2016-09-19", - "utility_type": "gas", - "usage": "429.00", - "charge": "192.29" - } -}, -{ - "model": "financialInputs.bills", - "pk": 361, - "fields": { - "building_id": 187896, - "date_from": "2016-07-20", - "date_to": "2016-08-18", - "utility_type": "gas", - "usage": "389.00", - "charge": "379.36" - } -}, -{ - "model": "financialInputs.bills", - "pk": 362, - "fields": { - "building_id": 187896, - "date_from": "2016-06-20", - "date_to": "2016-07-20", - "utility_type": "gas", - "usage": "402.00", - "charge": "385.14" - } -}, -{ - "model": "financialInputs.bills", - "pk": 363, - "fields": { - "building_id": 187896, - "date_from": "2016-05-18", - "date_to": "2016-06-20", - "utility_type": "gas", - "usage": "443.00", - "charge": "400.74" - } -}, -{ - "model": "financialInputs.bills", - "pk": 364, - "fields": { - "building_id": 187896, - "date_from": "2016-04-19", - "date_to": "2016-05-18", - "utility_type": "gas", - "usage": "389.00", - "charge": "343.49" - } -}, -{ - "model": "financialInputs.bills", - "pk": 365, - "fields": { - "building_id": 187896, - "date_from": "2016-03-18", - "date_to": "2016-04-19", - "utility_type": "gas", - "usage": "429.00", - "charge": "377.99" - } -}, -{ - "model": "financialInputs.bills", - "pk": 366, - "fields": { - "building_id": 187896, - "date_from": "2016-02-17", - "date_to": "2016-03-18", - "utility_type": "gas", - "usage": "402.00", - "charge": "378.44" - } -}, -{ - "model": "financialInputs.bills", - "pk": 367, - "fields": { - "building_id": 187896, - "date_from": "2016-01-19", - "date_to": "2016-02-17", - "utility_type": "gas", - "usage": "389.00", - "charge": "361.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 368, - "fields": { - "building_id": 187896, - "date_from": "2015-12-16", - "date_to": "2016-01-19", - "utility_type": "gas", - "usage": "456.00", - "charge": "454.84" - } -}, -{ - "model": "financialInputs.bills", - "pk": 369, - "fields": { - "building_id": 187896, - "date_from": "2015-11-16", - "date_to": "2015-12-16", - "utility_type": "gas", - "usage": "402.00", - "charge": "397.33" - } -}, -{ - "model": "financialInputs.bills", - "pk": 370, - "fields": { - "building_id": 187896, - "date_from": "2015-10-16", - "date_to": "2015-11-16", - "utility_type": "gas", - "usage": "416.00", - "charge": "401.29" - } -}, -{ - "model": "financialInputs.bills", - "pk": 371, - "fields": { - "building_id": 187896, - "date_from": "2015-09-19", - "date_to": "2015-10-16", - "utility_type": "gas", - "usage": "362.00", - "charge": "354.76" - } -}, -{ - "model": "financialInputs.bills", - "pk": 372, - "fields": { - "building_id": 187896, - "date_from": "2015-08-18", - "date_to": "2015-09-19", - "utility_type": "gas", - "usage": "429.00", - "charge": "412.32" - } -}, -{ - "model": "financialInputs.bills", - "pk": 373, - "fields": { - "building_id": 187896, - "date_from": "2015-07-20", - "date_to": "2015-08-18", - "utility_type": "gas", - "usage": "389.00", - "charge": "378.53" - } -}, -{ - "model": "financialInputs.bills", - "pk": 374, - "fields": { - "building_id": 187896, - "date_from": "2015-06-18", - "date_to": "2015-07-20", - "utility_type": "gas", - "usage": "429.00", - "charge": "414.33" - } -}, -{ - "model": "financialInputs.bills", - "pk": 375, - "fields": { - "building_id": 187896, - "date_from": "2015-05-19", - "date_to": "2015-06-18", - "utility_type": "gas", - "usage": "402.00", - "charge": "390.65" - } -}, -{ - "model": "financialInputs.bills", - "pk": 376, - "fields": { - "building_id": 488, - "date_from": "2017-02-22", - "date_to": "2017-03-23", - "utility_type": "electricity", - "usage": "25800.00", - "charge": "4509.82" - } -}, -{ - "model": "financialInputs.bills", - "pk": 377, - "fields": { - "building_id": 488, - "date_from": "2016-12-21", - "date_to": "2017-02-22", - "utility_type": "electricity", - "usage": "61800.00", - "charge": "10273.47" - } -}, -{ - "model": "financialInputs.bills", - "pk": 378, - "fields": { - "building_id": 488, - "date_from": "2016-11-18", - "date_to": "2016-12-21", - "utility_type": "electricity", - "usage": "33600.00", - "charge": "5594.74" - } -}, -{ - "model": "financialInputs.bills", - "pk": 379, - "fields": { - "building_id": 488, - "date_from": "2016-10-20", - "date_to": "2016-11-18", - "utility_type": "electricity", - "usage": "31800.00", - "charge": "5780.51" - } -}, -{ - "model": "financialInputs.bills", - "pk": 380, - "fields": { - "building_id": 488, - "date_from": "2016-09-20", - "date_to": "2016-10-20", - "utility_type": "electricity", - "usage": "37800.00", - "charge": "6412.98" - } -}, -{ - "model": "financialInputs.bills", - "pk": 381, - "fields": { - "building_id": 488, - "date_from": "2016-08-19", - "date_to": "2016-09-20", - "utility_type": "electricity", - "usage": "52200.00", - "charge": "8708.14" - } -}, -{ - "model": "financialInputs.bills", - "pk": 382, - "fields": { - "building_id": 488, - "date_from": "2016-07-21", - "date_to": "2016-08-19", - "utility_type": "electricity", - "usage": "52200.00", - "charge": "8845.57" - } -}, -{ - "model": "financialInputs.bills", - "pk": 383, - "fields": { - "building_id": 488, - "date_from": "2016-06-21", - "date_to": "2016-07-21", - "utility_type": "electricity", - "usage": "49800.00", - "charge": "8599.52" - } -}, -{ - "model": "financialInputs.bills", - "pk": 384, - "fields": { - "building_id": 488, - "date_from": "2016-05-20", - "date_to": "2016-06-21", - "utility_type": "electricity", - "usage": "48600.00", - "charge": "8688.43" - } -}, -{ - "model": "financialInputs.bills", - "pk": 385, - "fields": { - "building_id": 488, - "date_from": "2016-04-21", - "date_to": "2016-05-20", - "utility_type": "electricity", - "usage": "34800.00", - "charge": "5446.82" - } -}, -{ - "model": "financialInputs.bills", - "pk": 386, - "fields": { - "building_id": 488, - "date_from": "2016-03-23", - "date_to": "2016-04-21", - "utility_type": "electricity", - "usage": "31800.00", - "charge": "5424.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 387, - "fields": { - "building_id": 488, - "date_from": "2016-02-23", - "date_to": "2016-03-23", - "utility_type": "electricity", - "usage": "31200.00", - "charge": "5404.15" - } -}, -{ - "model": "financialInputs.bills", - "pk": 388, - "fields": { - "building_id": 488, - "date_from": "2016-01-22", - "date_to": "2016-02-23", - "utility_type": "electricity", - "usage": "33600.00", - "charge": "5376.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 389, - "fields": { - "building_id": 488, - "date_from": "2015-12-22", - "date_to": "2016-01-22", - "utility_type": "electricity", - "usage": "36600.00", - "charge": "6431.27" - } -}, -{ - "model": "financialInputs.bills", - "pk": 390, - "fields": { - "building_id": 488, - "date_from": "2015-11-19", - "date_to": "2015-12-22", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "5829.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 391, - "fields": { - "building_id": 488, - "date_from": "2015-10-21", - "date_to": "2015-11-19", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "6245.07" - } -}, -{ - "model": "financialInputs.bills", - "pk": 392, - "fields": { - "building_id": 488, - "date_from": "2015-09-21", - "date_to": "2015-10-21", - "utility_type": "electricity", - "usage": "36600.00", - "charge": "6303.98" - } -}, -{ - "model": "financialInputs.bills", - "pk": 393, - "fields": { - "building_id": 488, - "date_from": "2015-08-20", - "date_to": "2015-09-21", - "utility_type": "electricity", - "usage": "54000.00", - "charge": "9611.84" - } -}, -{ - "model": "financialInputs.bills", - "pk": 394, - "fields": { - "building_id": 488, - "date_from": "2015-07-22", - "date_to": "2015-08-20", - "utility_type": "electricity", - "usage": "51000.00", - "charge": "9320.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 395, - "fields": { - "building_id": 488, - "date_from": "2015-06-22", - "date_to": "2015-07-22", - "utility_type": "electricity", - "usage": "52800.00", - "charge": "10168.65" - } -}, -{ - "model": "financialInputs.bills", - "pk": 396, - "fields": { - "building_id": 488, - "date_from": "2015-05-21", - "date_to": "2015-06-22", - "utility_type": "electricity", - "usage": "49200.00", - "charge": "9277.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 397, - "fields": { - "building_id": 488, - "date_from": "2015-04-22", - "date_to": "2015-05-21", - "utility_type": "electricity", - "usage": "40200.00", - "charge": "7404.47" - } -}, -{ - "model": "financialInputs.bills", - "pk": 398, - "fields": { - "building_id": 488, - "date_from": "2015-03-24", - "date_to": "2015-04-22", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "5751.96" - } -}, -{ - "model": "financialInputs.bills", - "pk": 399, - "fields": { - "building_id": 297, - "date_from": "2017-02-22", - "date_to": "2017-03-23", - "utility_type": "electricity", - "usage": "25800.00", - "charge": "4509.82" - } -}, -{ - "model": "financialInputs.bills", - "pk": 400, - "fields": { - "building_id": 297, - "date_from": "2016-12-21", - "date_to": "2017-02-22", - "utility_type": "electricity", - "usage": "61800.00", - "charge": "10273.47" - } -}, -{ - "model": "financialInputs.bills", - "pk": 401, - "fields": { - "building_id": 297, - "date_from": "2016-11-18", - "date_to": "2016-12-21", - "utility_type": "electricity", - "usage": "33600.00", - "charge": "5594.74" - } -}, -{ - "model": "financialInputs.bills", - "pk": 402, - "fields": { - "building_id": 297, - "date_from": "2016-10-20", - "date_to": "2016-11-18", - "utility_type": "electricity", - "usage": "31800.00", - "charge": "5780.51" - } -}, -{ - "model": "financialInputs.bills", - "pk": 403, - "fields": { - "building_id": 297, - "date_from": "2016-09-20", - "date_to": "2016-10-20", - "utility_type": "electricity", - "usage": "37800.00", - "charge": "6412.98" - } -}, -{ - "model": "financialInputs.bills", - "pk": 404, - "fields": { - "building_id": 297, - "date_from": "2016-08-19", - "date_to": "2016-09-20", - "utility_type": "electricity", - "usage": "52200.00", - "charge": "8708.14" - } -}, -{ - "model": "financialInputs.bills", - "pk": 405, - "fields": { - "building_id": 297, - "date_from": "2016-07-21", - "date_to": "2016-08-19", - "utility_type": "electricity", - "usage": "52200.00", - "charge": "8845.57" - } -}, -{ - "model": "financialInputs.bills", - "pk": 406, - "fields": { - "building_id": 297, - "date_from": "2016-06-21", - "date_to": "2016-07-21", - "utility_type": "electricity", - "usage": "49800.00", - "charge": "8599.52" - } -}, -{ - "model": "financialInputs.bills", - "pk": 407, - "fields": { - "building_id": 297, - "date_from": "2016-05-20", - "date_to": "2016-06-21", - "utility_type": "electricity", - "usage": "48600.00", - "charge": "8688.43" - } -}, -{ - "model": "financialInputs.bills", - "pk": 408, - "fields": { - "building_id": 297, - "date_from": "2016-04-21", - "date_to": "2016-05-20", - "utility_type": "electricity", - "usage": "34800.00", - "charge": "5446.82" - } -}, -{ - "model": "financialInputs.bills", - "pk": 409, - "fields": { - "building_id": 297, - "date_from": "2016-03-23", - "date_to": "2016-04-21", - "utility_type": "electricity", - "usage": "31800.00", - "charge": "5424.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 410, - "fields": { - "building_id": 297, - "date_from": "2016-02-23", - "date_to": "2016-03-23", - "utility_type": "electricity", - "usage": "31200.00", - "charge": "5404.15" - } -}, -{ - "model": "financialInputs.bills", - "pk": 411, - "fields": { - "building_id": 297, - "date_from": "2016-01-22", - "date_to": "2016-02-23", - "utility_type": "electricity", - "usage": "33600.00", - "charge": "5376.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 412, - "fields": { - "building_id": 297, - "date_from": "2015-12-22", - "date_to": "2016-01-22", - "utility_type": "electricity", - "usage": "36600.00", - "charge": "6431.27" - } -}, -{ - "model": "financialInputs.bills", - "pk": 413, - "fields": { - "building_id": 297, - "date_from": "2015-11-19", - "date_to": "2015-12-22", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "5829.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 414, - "fields": { - "building_id": 297, - "date_from": "2015-10-21", - "date_to": "2015-11-19", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "6245.07" - } -}, -{ - "model": "financialInputs.bills", - "pk": 415, - "fields": { - "building_id": 297, - "date_from": "2015-09-21", - "date_to": "2015-10-21", - "utility_type": "electricity", - "usage": "36600.00", - "charge": "6303.98" - } -}, -{ - "model": "financialInputs.bills", - "pk": 416, - "fields": { - "building_id": 297, - "date_from": "2015-08-20", - "date_to": "2015-09-21", - "utility_type": "electricity", - "usage": "54000.00", - "charge": "9611.84" - } -}, -{ - "model": "financialInputs.bills", - "pk": 417, - "fields": { - "building_id": 297, - "date_from": "2015-07-22", - "date_to": "2015-08-20", - "utility_type": "electricity", - "usage": "51000.00", - "charge": "9320.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 418, - "fields": { - "building_id": 297, - "date_from": "2015-06-22", - "date_to": "2015-07-22", - "utility_type": "electricity", - "usage": "52800.00", - "charge": "10168.65" - } -}, -{ - "model": "financialInputs.bills", - "pk": 419, - "fields": { - "building_id": 297, - "date_from": "2015-05-21", - "date_to": "2015-06-22", - "utility_type": "electricity", - "usage": "49200.00", - "charge": "9277.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 420, - "fields": { - "building_id": 297, - "date_from": "2015-04-22", - "date_to": "2015-05-21", - "utility_type": "electricity", - "usage": "40200.00", - "charge": "7404.47" - } -}, -{ - "model": "financialInputs.bills", - "pk": 421, - "fields": { - "building_id": 297, - "date_from": "2015-03-24", - "date_to": "2015-04-22", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "5751.96" - } -}, -{ - "model": "financialInputs.bills", - "pk": 445, - "fields": { - "building_id": 8753, - "date_from": "2017-02-22", - "date_to": "2017-03-23", - "utility_type": "electricity", - "usage": "25800.00", - "charge": "4509.82" - } -}, -{ - "model": "financialInputs.bills", - "pk": 446, - "fields": { - "building_id": 8753, - "date_from": "2016-12-21", - "date_to": "2017-02-22", - "utility_type": "electricity", - "usage": "61800.00", - "charge": "10273.47" - } -}, -{ - "model": "financialInputs.bills", - "pk": 447, - "fields": { - "building_id": 8753, - "date_from": "2016-11-18", - "date_to": "2016-12-21", - "utility_type": "electricity", - "usage": "33600.00", - "charge": "5594.74" - } -}, -{ - "model": "financialInputs.bills", - "pk": 448, - "fields": { - "building_id": 8753, - "date_from": "2016-10-20", - "date_to": "2016-11-18", - "utility_type": "electricity", - "usage": "31800.00", - "charge": "5780.51" - } -}, -{ - "model": "financialInputs.bills", - "pk": 449, - "fields": { - "building_id": 8753, - "date_from": "2016-09-20", - "date_to": "2016-10-20", - "utility_type": "electricity", - "usage": "37800.00", - "charge": "6412.98" - } -}, -{ - "model": "financialInputs.bills", - "pk": 450, - "fields": { - "building_id": 8753, - "date_from": "2016-08-19", - "date_to": "2016-09-20", - "utility_type": "electricity", - "usage": "52200.00", - "charge": "8708.14" - } -}, -{ - "model": "financialInputs.bills", - "pk": 451, - "fields": { - "building_id": 8753, - "date_from": "2016-07-21", - "date_to": "2016-08-19", - "utility_type": "electricity", - "usage": "52200.00", - "charge": "8845.57" - } -}, -{ - "model": "financialInputs.bills", - "pk": 452, - "fields": { - "building_id": 8753, - "date_from": "2016-06-21", - "date_to": "2016-07-21", - "utility_type": "electricity", - "usage": "49800.00", - "charge": "8599.52" - } -}, -{ - "model": "financialInputs.bills", - "pk": 453, - "fields": { - "building_id": 8753, - "date_from": "2016-05-20", - "date_to": "2016-06-21", - "utility_type": "electricity", - "usage": "48600.00", - "charge": "8688.43" - } -}, -{ - "model": "financialInputs.bills", - "pk": 454, - "fields": { - "building_id": 8753, - "date_from": "2016-04-21", - "date_to": "2016-05-20", - "utility_type": "electricity", - "usage": "34800.00", - "charge": "5446.82" - } -}, -{ - "model": "financialInputs.bills", - "pk": 455, - "fields": { - "building_id": 8753, - "date_from": "2016-03-23", - "date_to": "2016-04-21", - "utility_type": "electricity", - "usage": "31800.00", - "charge": "5424.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 456, - "fields": { - "building_id": 8753, - "date_from": "2016-02-23", - "date_to": "2016-03-23", - "utility_type": "electricity", - "usage": "31200.00", - "charge": "5404.15" - } -}, -{ - "model": "financialInputs.bills", - "pk": 457, - "fields": { - "building_id": 8753, - "date_from": "2016-01-22", - "date_to": "2016-02-23", - "utility_type": "electricity", - "usage": "33600.00", - "charge": "5376.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 458, - "fields": { - "building_id": 8753, - "date_from": "2015-12-22", - "date_to": "2016-01-22", - "utility_type": "electricity", - "usage": "36600.00", - "charge": "6431.27" - } -}, -{ - "model": "financialInputs.bills", - "pk": 459, - "fields": { - "building_id": 8753, - "date_from": "2015-11-19", - "date_to": "2015-12-22", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "5829.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 460, - "fields": { - "building_id": 8753, - "date_from": "2015-10-21", - "date_to": "2015-11-19", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "6245.07" - } -}, -{ - "model": "financialInputs.bills", - "pk": 461, - "fields": { - "building_id": 8753, - "date_from": "2015-09-21", - "date_to": "2015-10-21", - "utility_type": "electricity", - "usage": "36600.00", - "charge": "6303.98" - } -}, -{ - "model": "financialInputs.bills", - "pk": 462, - "fields": { - "building_id": 8753, - "date_from": "2015-08-20", - "date_to": "2015-09-21", - "utility_type": "electricity", - "usage": "54000.00", - "charge": "9611.84" - } -}, -{ - "model": "financialInputs.bills", - "pk": 463, - "fields": { - "building_id": 8753, - "date_from": "2015-07-22", - "date_to": "2015-08-20", - "utility_type": "electricity", - "usage": "51000.00", - "charge": "9320.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 464, - "fields": { - "building_id": 8753, - "date_from": "2015-06-22", - "date_to": "2015-07-22", - "utility_type": "electricity", - "usage": "52800.00", - "charge": "10168.65" - } -}, -{ - "model": "financialInputs.bills", - "pk": 465, - "fields": { - "building_id": 8753, - "date_from": "2015-05-21", - "date_to": "2015-06-22", - "utility_type": "electricity", - "usage": "49200.00", - "charge": "9277.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 466, - "fields": { - "building_id": 8753, - "date_from": "2015-04-22", - "date_to": "2015-05-21", - "utility_type": "electricity", - "usage": "40200.00", - "charge": "7404.47" - } -}, -{ - "model": "financialInputs.bills", - "pk": 467, - "fields": { - "building_id": 8753, - "date_from": "2015-03-24", - "date_to": "2015-04-22", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "5751.96" - } -}, -{ - "model": "financialInputs.bills", - "pk": 532, - "fields": { - "building_id": 289, - "date_from": "2017-02-22", - "date_to": "2017-03-23", - "utility_type": "electricity", - "usage": "25800.00", - "charge": "4509.82" - } -}, -{ - "model": "financialInputs.bills", - "pk": 533, - "fields": { - "building_id": 289, - "date_from": "2016-12-21", - "date_to": "2017-02-22", - "utility_type": "electricity", - "usage": "61800.00", - "charge": "10273.47" - } -}, -{ - "model": "financialInputs.bills", - "pk": 534, - "fields": { - "building_id": 289, - "date_from": "2016-11-18", - "date_to": "2016-12-21", - "utility_type": "electricity", - "usage": "33600.00", - "charge": "5594.74" - } -}, -{ - "model": "financialInputs.bills", - "pk": 535, - "fields": { - "building_id": 289, - "date_from": "2016-10-20", - "date_to": "2016-11-18", - "utility_type": "electricity", - "usage": "31800.00", - "charge": "5780.51" - } -}, -{ - "model": "financialInputs.bills", - "pk": 536, - "fields": { - "building_id": 289, - "date_from": "2016-09-20", - "date_to": "2016-10-20", - "utility_type": "electricity", - "usage": "37800.00", - "charge": "6412.98" - } -}, -{ - "model": "financialInputs.bills", - "pk": 537, - "fields": { - "building_id": 289, - "date_from": "2016-08-19", - "date_to": "2016-09-20", - "utility_type": "electricity", - "usage": "52200.00", - "charge": "8708.14" - } -}, -{ - "model": "financialInputs.bills", - "pk": 538, - "fields": { - "building_id": 289, - "date_from": "2016-07-21", - "date_to": "2016-08-19", - "utility_type": "electricity", - "usage": "52200.00", - "charge": "8845.57" - } -}, -{ - "model": "financialInputs.bills", - "pk": 539, - "fields": { - "building_id": 289, - "date_from": "2016-06-21", - "date_to": "2016-07-21", - "utility_type": "electricity", - "usage": "49800.00", - "charge": "8599.52" - } -}, -{ - "model": "financialInputs.bills", - "pk": 540, - "fields": { - "building_id": 289, - "date_from": "2016-05-20", - "date_to": "2016-06-21", - "utility_type": "electricity", - "usage": "48600.00", - "charge": "8688.43" - } -}, -{ - "model": "financialInputs.bills", - "pk": 541, - "fields": { - "building_id": 289, - "date_from": "2016-04-21", - "date_to": "2016-05-20", - "utility_type": "electricity", - "usage": "34800.00", - "charge": "5446.82" - } -}, -{ - "model": "financialInputs.bills", - "pk": 542, - "fields": { - "building_id": 289, - "date_from": "2016-03-23", - "date_to": "2016-04-21", - "utility_type": "electricity", - "usage": "31800.00", - "charge": "5424.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 543, - "fields": { - "building_id": 289, - "date_from": "2016-02-23", - "date_to": "2016-03-23", - "utility_type": "electricity", - "usage": "31200.00", - "charge": "5404.15" - } -}, -{ - "model": "financialInputs.bills", - "pk": 544, - "fields": { - "building_id": 289, - "date_from": "2016-01-22", - "date_to": "2016-02-23", - "utility_type": "electricity", - "usage": "33600.00", - "charge": "5376.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 545, - "fields": { - "building_id": 289, - "date_from": "2015-12-22", - "date_to": "2016-01-22", - "utility_type": "electricity", - "usage": "36600.00", - "charge": "6431.27" - } -}, -{ - "model": "financialInputs.bills", - "pk": 546, - "fields": { - "building_id": 289, - "date_from": "2015-11-19", - "date_to": "2015-12-22", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "5829.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 547, - "fields": { - "building_id": 289, - "date_from": "2015-10-21", - "date_to": "2015-11-19", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "6245.07" - } -}, -{ - "model": "financialInputs.bills", - "pk": 548, - "fields": { - "building_id": 289, - "date_from": "2015-09-21", - "date_to": "2015-10-21", - "utility_type": "electricity", - "usage": "36600.00", - "charge": "6303.98" - } -}, -{ - "model": "financialInputs.bills", - "pk": 549, - "fields": { - "building_id": 289, - "date_from": "2015-08-20", - "date_to": "2015-09-21", - "utility_type": "electricity", - "usage": "54000.00", - "charge": "9611.84" - } -}, -{ - "model": "financialInputs.bills", - "pk": 550, - "fields": { - "building_id": 289, - "date_from": "2015-07-22", - "date_to": "2015-08-20", - "utility_type": "electricity", - "usage": "51000.00", - "charge": "9320.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 551, - "fields": { - "building_id": 289, - "date_from": "2015-06-22", - "date_to": "2015-07-22", - "utility_type": "electricity", - "usage": "52800.00", - "charge": "10168.65" - } -}, -{ - "model": "financialInputs.bills", - "pk": 552, - "fields": { - "building_id": 289, - "date_from": "2015-05-21", - "date_to": "2015-06-22", - "utility_type": "electricity", - "usage": "49200.00", - "charge": "9277.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 553, - "fields": { - "building_id": 289, - "date_from": "2015-04-22", - "date_to": "2015-05-21", - "utility_type": "electricity", - "usage": "40200.00", - "charge": "7404.47" - } -}, -{ - "model": "financialInputs.bills", - "pk": 554, - "fields": { - "building_id": 289, - "date_from": "2015-03-24", - "date_to": "2015-04-22", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "5751.96" - } -}, -{ - "model": "financialInputs.bills", - "pk": 555, - "fields": { - "building_id": 289, - "date_from": "2017-02-15", - "date_to": "2017-03-16", - "utility_type": "gas", - "usage": "929.00", - "charge": "1059.41" - } -}, -{ - "model": "financialInputs.bills", - "pk": 556, - "fields": { - "building_id": 289, - "date_from": "2017-01-17", - "date_to": "2017-02-15", - "utility_type": "gas", - "usage": "1083.00", - "charge": "1238.53" - } -}, -{ - "model": "financialInputs.bills", - "pk": 557, - "fields": { - "building_id": 289, - "date_from": "2016-12-15", - "date_to": "2017-01-17", - "utility_type": "gas", - "usage": "1076.00", - "charge": "1092.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 558, - "fields": { - "building_id": 289, - "date_from": "2016-11-15", - "date_to": "2016-12-15", - "utility_type": "gas", - "usage": "678.00", - "charge": "602.64" - } -}, -{ - "model": "financialInputs.bills", - "pk": 559, - "fields": { - "building_id": 289, - "date_from": "2016-10-17", - "date_to": "2016-11-15", - "utility_type": "gas", - "usage": "552.00", - "charge": "441.53" - } -}, -{ - "model": "financialInputs.bills", - "pk": 560, - "fields": { - "building_id": 289, - "date_from": "2016-09-16", - "date_to": "2016-10-17", - "utility_type": "gas", - "usage": "232.00", - "charge": "179.35" - } -}, -{ - "model": "financialInputs.bills", - "pk": 561, - "fields": { - "building_id": 289, - "date_from": "2016-08-17", - "date_to": "2016-09-16", - "utility_type": "gas", - "usage": "103.00", - "charge": "86.60" - } -}, -{ - "model": "financialInputs.bills", - "pk": 562, - "fields": { - "building_id": 289, - "date_from": "2016-07-19", - "date_to": "2016-08-17", - "utility_type": "gas", - "usage": "113.00", - "charge": "101.15" - } -}, -{ - "model": "financialInputs.bills", - "pk": 563, - "fields": { - "building_id": 289, - "date_from": "2016-06-17", - "date_to": "2016-07-19", - "utility_type": "gas", - "usage": "224.00", - "charge": "204.29" - } -}, -{ - "model": "financialInputs.bills", - "pk": 564, - "fields": { - "building_id": 289, - "date_from": "2016-05-20", - "date_to": "2016-06-17", - "utility_type": "gas", - "usage": "244.00", - "charge": "220.37" - } -}, -{ - "model": "financialInputs.bills", - "pk": 565, - "fields": { - "building_id": 289, - "date_from": "2016-04-18", - "date_to": "2016-05-20", - "utility_type": "gas", - "usage": "674.00", - "charge": "552.46" - } -}, -{ - "model": "financialInputs.bills", - "pk": 566, - "fields": { - "building_id": 289, - "date_from": "2016-03-16", - "date_to": "2016-04-18", - "utility_type": "gas", - "usage": "986.00", - "charge": "804.96" - } -}, -{ - "model": "financialInputs.bills", - "pk": 567, - "fields": { - "building_id": 289, - "date_from": "2016-02-16", - "date_to": "2016-03-16", - "utility_type": "gas", - "usage": "1017.00", - "charge": "898.21" - } -}, -{ - "model": "financialInputs.bills", - "pk": 568, - "fields": { - "building_id": 289, - "date_from": "2016-01-15", - "date_to": "2016-02-16", - "utility_type": "gas", - "usage": "1422.00", - "charge": "1243.22" - } -}, -{ - "model": "financialInputs.bills", - "pk": 569, - "fields": { - "building_id": 289, - "date_from": "2015-12-15", - "date_to": "2016-01-15", - "utility_type": "gas", - "usage": "1096.00", - "charge": "1042.92" - } -}, -{ - "model": "financialInputs.bills", - "pk": 570, - "fields": { - "building_id": 289, - "date_from": "2015-11-13", - "date_to": "2015-12-15", - "utility_type": "gas", - "usage": "934.00", - "charge": "865.51" - } -}, -{ - "model": "financialInputs.bills", - "pk": 571, - "fields": { - "building_id": 289, - "date_from": "2015-10-15", - "date_to": "2015-11-13", - "utility_type": "gas", - "usage": "563.00", - "charge": "487.05" - } -}, -{ - "model": "financialInputs.bills", - "pk": 572, - "fields": { - "building_id": 289, - "date_from": "2015-09-16", - "date_to": "2015-10-15", - "utility_type": "gas", - "usage": "329.00", - "charge": "275.92" - } -}, -{ - "model": "financialInputs.bills", - "pk": 573, - "fields": { - "building_id": 8753, - "date_from": "2017-02-15", - "date_to": "2017-03-16", - "utility_type": "gas", - "usage": "929.00", - "charge": "1059.41" - } -}, -{ - "model": "financialInputs.bills", - "pk": 574, - "fields": { - "building_id": 8753, - "date_from": "2017-01-17", - "date_to": "2017-02-15", - "utility_type": "gas", - "usage": "1083.00", - "charge": "1238.53" - } -}, -{ - "model": "financialInputs.bills", - "pk": 575, - "fields": { - "building_id": 8753, - "date_from": "2016-12-15", - "date_to": "2017-01-17", - "utility_type": "gas", - "usage": "1076.00", - "charge": "1092.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 576, - "fields": { - "building_id": 8753, - "date_from": "2016-11-15", - "date_to": "2016-12-15", - "utility_type": "gas", - "usage": "678.00", - "charge": "602.64" - } -}, -{ - "model": "financialInputs.bills", - "pk": 577, - "fields": { - "building_id": 8753, - "date_from": "2016-10-17", - "date_to": "2016-11-15", - "utility_type": "gas", - "usage": "552.00", - "charge": "441.53" - } -}, -{ - "model": "financialInputs.bills", - "pk": 578, - "fields": { - "building_id": 8753, - "date_from": "2016-09-16", - "date_to": "2016-10-17", - "utility_type": "gas", - "usage": "232.00", - "charge": "179.35" - } -}, -{ - "model": "financialInputs.bills", - "pk": 579, - "fields": { - "building_id": 8753, - "date_from": "2016-08-17", - "date_to": "2016-09-16", - "utility_type": "gas", - "usage": "103.00", - "charge": "86.60" - } -}, -{ - "model": "financialInputs.bills", - "pk": 580, - "fields": { - "building_id": 8753, - "date_from": "2016-07-19", - "date_to": "2016-08-17", - "utility_type": "gas", - "usage": "113.00", - "charge": "101.15" - } -}, -{ - "model": "financialInputs.bills", - "pk": 581, - "fields": { - "building_id": 8753, - "date_from": "2016-06-17", - "date_to": "2016-07-19", - "utility_type": "gas", - "usage": "224.00", - "charge": "204.29" - } -}, -{ - "model": "financialInputs.bills", - "pk": 582, - "fields": { - "building_id": 8753, - "date_from": "2016-05-20", - "date_to": "2016-06-17", - "utility_type": "gas", - "usage": "244.00", - "charge": "220.37" - } -}, -{ - "model": "financialInputs.bills", - "pk": 583, - "fields": { - "building_id": 8753, - "date_from": "2016-04-18", - "date_to": "2016-05-20", - "utility_type": "gas", - "usage": "674.00", - "charge": "552.46" - } -}, -{ - "model": "financialInputs.bills", - "pk": 584, - "fields": { - "building_id": 8753, - "date_from": "2016-03-16", - "date_to": "2016-04-18", - "utility_type": "gas", - "usage": "986.00", - "charge": "804.96" - } -}, -{ - "model": "financialInputs.bills", - "pk": 585, - "fields": { - "building_id": 8753, - "date_from": "2016-02-16", - "date_to": "2016-03-16", - "utility_type": "gas", - "usage": "1017.00", - "charge": "898.21" - } -}, -{ - "model": "financialInputs.bills", - "pk": 586, - "fields": { - "building_id": 8753, - "date_from": "2016-01-15", - "date_to": "2016-02-16", - "utility_type": "gas", - "usage": "1422.00", - "charge": "1243.22" - } -}, -{ - "model": "financialInputs.bills", - "pk": 587, - "fields": { - "building_id": 8753, - "date_from": "2015-12-15", - "date_to": "2016-01-15", - "utility_type": "gas", - "usage": "1096.00", - "charge": "1042.92" - } -}, -{ - "model": "financialInputs.bills", - "pk": 588, - "fields": { - "building_id": 8753, - "date_from": "2015-11-13", - "date_to": "2015-12-15", - "utility_type": "gas", - "usage": "934.00", - "charge": "865.51" - } -}, -{ - "model": "financialInputs.bills", - "pk": 589, - "fields": { - "building_id": 8753, - "date_from": "2015-10-15", - "date_to": "2015-11-13", - "utility_type": "gas", - "usage": "563.00", - "charge": "487.05" - } -}, -{ - "model": "financialInputs.bills", - "pk": 590, - "fields": { - "building_id": 8753, - "date_from": "2015-09-16", - "date_to": "2015-10-15", - "utility_type": "gas", - "usage": "329.00", - "charge": "275.92" - } -}, -{ - "model": "financialInputs.bills", - "pk": 591, - "fields": { - "building_id": 277, - "date_from": "2017-02-22", - "date_to": "2017-03-23", - "utility_type": "electricity", - "usage": "25800.00", - "charge": "4509.82" - } -}, -{ - "model": "financialInputs.bills", - "pk": 592, - "fields": { - "building_id": 277, - "date_from": "2016-12-21", - "date_to": "2017-02-22", - "utility_type": "electricity", - "usage": "61800.00", - "charge": "10273.47" - } -}, -{ - "model": "financialInputs.bills", - "pk": 593, - "fields": { - "building_id": 277, - "date_from": "2016-11-18", - "date_to": "2016-12-21", - "utility_type": "electricity", - "usage": "33600.00", - "charge": "5594.74" - } -}, -{ - "model": "financialInputs.bills", - "pk": 594, - "fields": { - "building_id": 277, - "date_from": "2016-10-20", - "date_to": "2016-11-18", - "utility_type": "electricity", - "usage": "31800.00", - "charge": "5780.51" - } -}, -{ - "model": "financialInputs.bills", - "pk": 595, - "fields": { - "building_id": 277, - "date_from": "2016-09-20", - "date_to": "2016-10-20", - "utility_type": "electricity", - "usage": "37800.00", - "charge": "6412.98" - } -}, -{ - "model": "financialInputs.bills", - "pk": 596, - "fields": { - "building_id": 277, - "date_from": "2016-08-19", - "date_to": "2016-09-20", - "utility_type": "electricity", - "usage": "52200.00", - "charge": "8708.14" - } -}, -{ - "model": "financialInputs.bills", - "pk": 597, - "fields": { - "building_id": 277, - "date_from": "2016-07-21", - "date_to": "2016-08-19", - "utility_type": "electricity", - "usage": "52200.00", - "charge": "8845.57" - } -}, -{ - "model": "financialInputs.bills", - "pk": 598, - "fields": { - "building_id": 277, - "date_from": "2016-06-21", - "date_to": "2016-07-21", - "utility_type": "electricity", - "usage": "49800.00", - "charge": "8599.52" - } -}, -{ - "model": "financialInputs.bills", - "pk": 599, - "fields": { - "building_id": 277, - "date_from": "2016-05-20", - "date_to": "2016-06-21", - "utility_type": "electricity", - "usage": "48600.00", - "charge": "8688.43" - } -}, -{ - "model": "financialInputs.bills", - "pk": 600, - "fields": { - "building_id": 277, - "date_from": "2016-04-21", - "date_to": "2016-05-20", - "utility_type": "electricity", - "usage": "34800.00", - "charge": "5446.82" - } -}, -{ - "model": "financialInputs.bills", - "pk": 601, - "fields": { - "building_id": 277, - "date_from": "2016-03-23", - "date_to": "2016-04-21", - "utility_type": "electricity", - "usage": "31800.00", - "charge": "5424.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 602, - "fields": { - "building_id": 277, - "date_from": "2016-02-23", - "date_to": "2016-03-23", - "utility_type": "electricity", - "usage": "31200.00", - "charge": "5404.15" - } -}, -{ - "model": "financialInputs.bills", - "pk": 603, - "fields": { - "building_id": 277, - "date_from": "2016-01-22", - "date_to": "2016-02-23", - "utility_type": "electricity", - "usage": "33600.00", - "charge": "5376.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 604, - "fields": { - "building_id": 277, - "date_from": "2015-12-22", - "date_to": "2016-01-22", - "utility_type": "electricity", - "usage": "36600.00", - "charge": "6431.27" - } -}, -{ - "model": "financialInputs.bills", - "pk": 605, - "fields": { - "building_id": 277, - "date_from": "2015-11-19", - "date_to": "2015-12-22", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "5829.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 606, - "fields": { - "building_id": 277, - "date_from": "2015-10-21", - "date_to": "2015-11-19", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "6245.07" - } -}, -{ - "model": "financialInputs.bills", - "pk": 607, - "fields": { - "building_id": 277, - "date_from": "2015-09-21", - "date_to": "2015-10-21", - "utility_type": "electricity", - "usage": "36600.00", - "charge": "6303.98" - } -}, -{ - "model": "financialInputs.bills", - "pk": 608, - "fields": { - "building_id": 277, - "date_from": "2015-08-20", - "date_to": "2015-09-21", - "utility_type": "electricity", - "usage": "54000.00", - "charge": "9611.84" - } -}, -{ - "model": "financialInputs.bills", - "pk": 609, - "fields": { - "building_id": 277, - "date_from": "2015-07-22", - "date_to": "2015-08-20", - "utility_type": "electricity", - "usage": "51000.00", - "charge": "9320.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 610, - "fields": { - "building_id": 277, - "date_from": "2015-06-22", - "date_to": "2015-07-22", - "utility_type": "electricity", - "usage": "52800.00", - "charge": "10168.65" - } -}, -{ - "model": "financialInputs.bills", - "pk": 611, - "fields": { - "building_id": 277, - "date_from": "2015-05-21", - "date_to": "2015-06-22", - "utility_type": "electricity", - "usage": "49200.00", - "charge": "9277.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 612, - "fields": { - "building_id": 277, - "date_from": "2015-04-22", - "date_to": "2015-05-21", - "utility_type": "electricity", - "usage": "40200.00", - "charge": "7404.47" - } -}, -{ - "model": "financialInputs.bills", - "pk": 613, - "fields": { - "building_id": 277, - "date_from": "2015-03-24", - "date_to": "2015-04-22", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "5751.96" - } -}, -{ - "model": "financialInputs.bills", - "pk": 614, - "fields": { - "building_id": 28, - "date_from": "2017-02-22", - "date_to": "2017-03-23", - "utility_type": "electricity", - "usage": "25800.00", - "charge": "4509.82" - } -}, -{ - "model": "financialInputs.bills", - "pk": 615, - "fields": { - "building_id": 28, - "date_from": "2016-12-21", - "date_to": "2017-02-22", - "utility_type": "electricity", - "usage": "61800.00", - "charge": "10273.47" - } -}, -{ - "model": "financialInputs.bills", - "pk": 616, - "fields": { - "building_id": 28, - "date_from": "2016-11-18", - "date_to": "2016-12-21", - "utility_type": "electricity", - "usage": "33600.00", - "charge": "5594.74" - } -}, -{ - "model": "financialInputs.bills", - "pk": 617, - "fields": { - "building_id": 28, - "date_from": "2016-10-20", - "date_to": "2016-11-18", - "utility_type": "electricity", - "usage": "31800.00", - "charge": "5780.51" - } -}, -{ - "model": "financialInputs.bills", - "pk": 618, - "fields": { - "building_id": 28, - "date_from": "2016-09-20", - "date_to": "2016-10-20", - "utility_type": "electricity", - "usage": "37800.00", - "charge": "6412.98" - } -}, -{ - "model": "financialInputs.bills", - "pk": 619, - "fields": { - "building_id": 28, - "date_from": "2016-08-19", - "date_to": "2016-09-20", - "utility_type": "electricity", - "usage": "52200.00", - "charge": "8708.14" - } -}, -{ - "model": "financialInputs.bills", - "pk": 620, - "fields": { - "building_id": 28, - "date_from": "2016-07-21", - "date_to": "2016-08-19", - "utility_type": "electricity", - "usage": "52200.00", - "charge": "8845.57" - } -}, -{ - "model": "financialInputs.bills", - "pk": 621, - "fields": { - "building_id": 28, - "date_from": "2016-06-21", - "date_to": "2016-07-21", - "utility_type": "electricity", - "usage": "49800.00", - "charge": "8599.52" - } -}, -{ - "model": "financialInputs.bills", - "pk": 622, - "fields": { - "building_id": 28, - "date_from": "2016-05-20", - "date_to": "2016-06-21", - "utility_type": "electricity", - "usage": "48600.00", - "charge": "8688.43" - } -}, -{ - "model": "financialInputs.bills", - "pk": 623, - "fields": { - "building_id": 28, - "date_from": "2016-04-21", - "date_to": "2016-05-20", - "utility_type": "electricity", - "usage": "34800.00", - "charge": "5446.82" - } -}, -{ - "model": "financialInputs.bills", - "pk": 624, - "fields": { - "building_id": 28, - "date_from": "2016-03-23", - "date_to": "2016-04-21", - "utility_type": "electricity", - "usage": "31800.00", - "charge": "5424.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 625, - "fields": { - "building_id": 28, - "date_from": "2016-02-23", - "date_to": "2016-03-23", - "utility_type": "electricity", - "usage": "31200.00", - "charge": "5404.15" - } -}, -{ - "model": "financialInputs.bills", - "pk": 626, - "fields": { - "building_id": 28, - "date_from": "2016-01-22", - "date_to": "2016-02-23", - "utility_type": "electricity", - "usage": "33600.00", - "charge": "5376.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 627, - "fields": { - "building_id": 28, - "date_from": "2015-12-22", - "date_to": "2016-01-22", - "utility_type": "electricity", - "usage": "36600.00", - "charge": "6431.27" - } -}, -{ - "model": "financialInputs.bills", - "pk": 628, - "fields": { - "building_id": 28, - "date_from": "2015-11-19", - "date_to": "2015-12-22", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "5829.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 629, - "fields": { - "building_id": 28, - "date_from": "2015-10-21", - "date_to": "2015-11-19", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "6245.07" - } -}, -{ - "model": "financialInputs.bills", - "pk": 630, - "fields": { - "building_id": 28, - "date_from": "2015-09-21", - "date_to": "2015-10-21", - "utility_type": "electricity", - "usage": "36600.00", - "charge": "6303.98" - } -}, -{ - "model": "financialInputs.bills", - "pk": 631, - "fields": { - "building_id": 28, - "date_from": "2015-08-20", - "date_to": "2015-09-21", - "utility_type": "electricity", - "usage": "54000.00", - "charge": "9611.84" - } -}, -{ - "model": "financialInputs.bills", - "pk": 632, - "fields": { - "building_id": 28, - "date_from": "2015-07-22", - "date_to": "2015-08-20", - "utility_type": "electricity", - "usage": "51000.00", - "charge": "9320.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 633, - "fields": { - "building_id": 28, - "date_from": "2015-06-22", - "date_to": "2015-07-22", - "utility_type": "electricity", - "usage": "52800.00", - "charge": "10168.65" - } -}, -{ - "model": "financialInputs.bills", - "pk": 634, - "fields": { - "building_id": 28, - "date_from": "2015-05-21", - "date_to": "2015-06-22", - "utility_type": "electricity", - "usage": "49200.00", - "charge": "9277.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 635, - "fields": { - "building_id": 28, - "date_from": "2015-04-22", - "date_to": "2015-05-21", - "utility_type": "electricity", - "usage": "40200.00", - "charge": "7404.47" - } -}, -{ - "model": "financialInputs.bills", - "pk": 636, - "fields": { - "building_id": 28, - "date_from": "2015-03-24", - "date_to": "2015-04-22", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "5751.96" - } -}, -{ - "model": "financialInputs.bills", - "pk": 637, - "fields": { - "building_id": 207, - "date_from": "2017-02-15", - "date_to": "2017-03-16", - "utility_type": "gas", - "usage": "929.00", - "charge": "1059.41" - } -}, -{ - "model": "financialInputs.bills", - "pk": 638, - "fields": { - "building_id": 207, - "date_from": "2017-01-17", - "date_to": "2017-02-15", - "utility_type": "gas", - "usage": "1083.00", - "charge": "1238.53" - } -}, -{ - "model": "financialInputs.bills", - "pk": 639, - "fields": { - "building_id": 207, - "date_from": "2016-12-15", - "date_to": "2017-01-17", - "utility_type": "gas", - "usage": "1076.00", - "charge": "1092.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 640, - "fields": { - "building_id": 207, - "date_from": "2016-11-15", - "date_to": "2016-12-15", - "utility_type": "gas", - "usage": "678.00", - "charge": "602.64" - } -}, -{ - "model": "financialInputs.bills", - "pk": 641, - "fields": { - "building_id": 207, - "date_from": "2016-10-17", - "date_to": "2016-11-15", - "utility_type": "gas", - "usage": "552.00", - "charge": "441.53" - } -}, -{ - "model": "financialInputs.bills", - "pk": 642, - "fields": { - "building_id": 207, - "date_from": "2016-09-16", - "date_to": "2016-10-17", - "utility_type": "gas", - "usage": "232.00", - "charge": "179.35" - } -}, -{ - "model": "financialInputs.bills", - "pk": 643, - "fields": { - "building_id": 207, - "date_from": "2016-08-17", - "date_to": "2016-09-16", - "utility_type": "gas", - "usage": "103.00", - "charge": "86.60" - } -}, -{ - "model": "financialInputs.bills", - "pk": 644, - "fields": { - "building_id": 207, - "date_from": "2016-07-19", - "date_to": "2016-08-17", - "utility_type": "gas", - "usage": "113.00", - "charge": "101.15" - } -}, -{ - "model": "financialInputs.bills", - "pk": 645, - "fields": { - "building_id": 207, - "date_from": "2016-06-17", - "date_to": "2016-07-19", - "utility_type": "gas", - "usage": "224.00", - "charge": "204.29" - } -}, -{ - "model": "financialInputs.bills", - "pk": 646, - "fields": { - "building_id": 207, - "date_from": "2016-05-20", - "date_to": "2016-06-17", - "utility_type": "gas", - "usage": "244.00", - "charge": "220.37" - } -}, -{ - "model": "financialInputs.bills", - "pk": 647, - "fields": { - "building_id": 207, - "date_from": "2016-04-18", - "date_to": "2016-05-20", - "utility_type": "gas", - "usage": "674.00", - "charge": "552.46" - } -}, -{ - "model": "financialInputs.bills", - "pk": 648, - "fields": { - "building_id": 207, - "date_from": "2016-03-16", - "date_to": "2016-04-18", - "utility_type": "gas", - "usage": "986.00", - "charge": "804.96" - } -}, -{ - "model": "financialInputs.bills", - "pk": 649, - "fields": { - "building_id": 207, - "date_from": "2016-02-16", - "date_to": "2016-03-16", - "utility_type": "gas", - "usage": "1017.00", - "charge": "898.21" - } -}, -{ - "model": "financialInputs.bills", - "pk": 650, - "fields": { - "building_id": 207, - "date_from": "2016-01-15", - "date_to": "2016-02-16", - "utility_type": "gas", - "usage": "1422.00", - "charge": "1243.22" - } -}, -{ - "model": "financialInputs.bills", - "pk": 651, - "fields": { - "building_id": 207, - "date_from": "2015-12-15", - "date_to": "2016-01-15", - "utility_type": "gas", - "usage": "1096.00", - "charge": "1042.92" - } -}, -{ - "model": "financialInputs.bills", - "pk": 652, - "fields": { - "building_id": 207, - "date_from": "2015-11-13", - "date_to": "2015-12-15", - "utility_type": "gas", - "usage": "934.00", - "charge": "865.51" - } -}, -{ - "model": "financialInputs.bills", - "pk": 653, - "fields": { - "building_id": 207, - "date_from": "2015-10-15", - "date_to": "2015-11-13", - "utility_type": "gas", - "usage": "563.00", - "charge": "487.05" - } -}, -{ - "model": "financialInputs.bills", - "pk": 654, - "fields": { - "building_id": 207, - "date_from": "2015-09-16", - "date_to": "2015-10-15", - "utility_type": "gas", - "usage": "329.00", - "charge": "275.92" - } -}, -{ - "model": "financialInputs.bills", - "pk": 655, - "fields": { - "building_id": 812, - "date_from": "2017-02-22", - "date_to": "2017-03-23", - "utility_type": "electricity", - "usage": "25800.00", - "charge": "4509.82" - } -}, -{ - "model": "financialInputs.bills", - "pk": 656, - "fields": { - "building_id": 812, - "date_from": "2016-12-21", - "date_to": "2017-02-22", - "utility_type": "electricity", - "usage": "61800.00", - "charge": "10273.47" - } -}, -{ - "model": "financialInputs.bills", - "pk": 657, - "fields": { - "building_id": 812, - "date_from": "2016-11-18", - "date_to": "2016-12-21", - "utility_type": "electricity", - "usage": "33600.00", - "charge": "5594.74" - } -}, -{ - "model": "financialInputs.bills", - "pk": 658, - "fields": { - "building_id": 812, - "date_from": "2016-10-20", - "date_to": "2016-11-18", - "utility_type": "electricity", - "usage": "31800.00", - "charge": "5780.51" - } -}, -{ - "model": "financialInputs.bills", - "pk": 659, - "fields": { - "building_id": 812, - "date_from": "2016-09-20", - "date_to": "2016-10-20", - "utility_type": "electricity", - "usage": "37800.00", - "charge": "6412.98" - } -}, -{ - "model": "financialInputs.bills", - "pk": 660, - "fields": { - "building_id": 812, - "date_from": "2016-08-19", - "date_to": "2016-09-20", - "utility_type": "electricity", - "usage": "52200.00", - "charge": "8708.14" - } -}, -{ - "model": "financialInputs.bills", - "pk": 661, - "fields": { - "building_id": 812, - "date_from": "2016-07-21", - "date_to": "2016-08-19", - "utility_type": "electricity", - "usage": "52200.00", - "charge": "8845.57" - } -}, -{ - "model": "financialInputs.bills", - "pk": 662, - "fields": { - "building_id": 812, - "date_from": "2016-06-21", - "date_to": "2016-07-21", - "utility_type": "electricity", - "usage": "49800.00", - "charge": "8599.52" - } -}, -{ - "model": "financialInputs.bills", - "pk": 663, - "fields": { - "building_id": 812, - "date_from": "2016-05-20", - "date_to": "2016-06-21", - "utility_type": "electricity", - "usage": "48600.00", - "charge": "8688.43" - } -}, -{ - "model": "financialInputs.bills", - "pk": 664, - "fields": { - "building_id": 812, - "date_from": "2016-04-21", - "date_to": "2016-05-20", - "utility_type": "electricity", - "usage": "34800.00", - "charge": "5446.82" - } -}, -{ - "model": "financialInputs.bills", - "pk": 665, - "fields": { - "building_id": 812, - "date_from": "2016-03-23", - "date_to": "2016-04-21", - "utility_type": "electricity", - "usage": "31800.00", - "charge": "5424.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 666, - "fields": { - "building_id": 812, - "date_from": "2016-02-23", - "date_to": "2016-03-23", - "utility_type": "electricity", - "usage": "31200.00", - "charge": "5404.15" - } -}, -{ - "model": "financialInputs.bills", - "pk": 667, - "fields": { - "building_id": 812, - "date_from": "2016-01-22", - "date_to": "2016-02-23", - "utility_type": "electricity", - "usage": "33600.00", - "charge": "5376.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 668, - "fields": { - "building_id": 812, - "date_from": "2015-12-22", - "date_to": "2016-01-22", - "utility_type": "electricity", - "usage": "36600.00", - "charge": "6431.27" - } -}, -{ - "model": "financialInputs.bills", - "pk": 669, - "fields": { - "building_id": 812, - "date_from": "2015-11-19", - "date_to": "2015-12-22", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "5829.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 670, - "fields": { - "building_id": 812, - "date_from": "2015-10-21", - "date_to": "2015-11-19", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "6245.07" - } -}, -{ - "model": "financialInputs.bills", - "pk": 671, - "fields": { - "building_id": 812, - "date_from": "2015-09-21", - "date_to": "2015-10-21", - "utility_type": "electricity", - "usage": "36600.00", - "charge": "6303.98" - } -}, -{ - "model": "financialInputs.bills", - "pk": 672, - "fields": { - "building_id": 812, - "date_from": "2015-08-20", - "date_to": "2015-09-21", - "utility_type": "electricity", - "usage": "54000.00", - "charge": "9611.84" - } -}, -{ - "model": "financialInputs.bills", - "pk": 673, - "fields": { - "building_id": 812, - "date_from": "2015-07-22", - "date_to": "2015-08-20", - "utility_type": "electricity", - "usage": "51000.00", - "charge": "9320.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 674, - "fields": { - "building_id": 812, - "date_from": "2015-06-22", - "date_to": "2015-07-22", - "utility_type": "electricity", - "usage": "52800.00", - "charge": "10168.65" - } -}, -{ - "model": "financialInputs.bills", - "pk": 675, - "fields": { - "building_id": 812, - "date_from": "2015-05-21", - "date_to": "2015-06-22", - "utility_type": "electricity", - "usage": "49200.00", - "charge": "9277.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 676, - "fields": { - "building_id": 812, - "date_from": "2015-04-22", - "date_to": "2015-05-21", - "utility_type": "electricity", - "usage": "40200.00", - "charge": "7404.47" - } -}, -{ - "model": "financialInputs.bills", - "pk": 677, - "fields": { - "building_id": 812, - "date_from": "2015-03-24", - "date_to": "2015-04-22", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "5751.96" - } -}, -{ - "model": "financialInputs.bills", - "pk": 678, - "fields": { - "building_id": 5466, - "date_from": "2017-02-22", - "date_to": "2017-03-23", - "utility_type": "electricity", - "usage": "25800.00", - "charge": "4509.82" - } -}, -{ - "model": "financialInputs.bills", - "pk": 679, - "fields": { - "building_id": 5466, - "date_from": "2016-12-21", - "date_to": "2017-02-22", - "utility_type": "electricity", - "usage": "61800.00", - "charge": "10273.47" - } -}, -{ - "model": "financialInputs.bills", - "pk": 680, - "fields": { - "building_id": 5466, - "date_from": "2016-11-18", - "date_to": "2016-12-21", - "utility_type": "electricity", - "usage": "33600.00", - "charge": "5594.74" - } -}, -{ - "model": "financialInputs.bills", - "pk": 681, - "fields": { - "building_id": 5466, - "date_from": "2016-10-20", - "date_to": "2016-11-18", - "utility_type": "electricity", - "usage": "31800.00", - "charge": "5780.51" - } -}, -{ - "model": "financialInputs.bills", - "pk": 682, - "fields": { - "building_id": 5466, - "date_from": "2016-09-20", - "date_to": "2016-10-20", - "utility_type": "electricity", - "usage": "37800.00", - "charge": "6412.98" - } -}, -{ - "model": "financialInputs.bills", - "pk": 683, - "fields": { - "building_id": 5466, - "date_from": "2016-08-19", - "date_to": "2016-09-20", - "utility_type": "electricity", - "usage": "52200.00", - "charge": "8708.14" - } -}, -{ - "model": "financialInputs.bills", - "pk": 684, - "fields": { - "building_id": 5466, - "date_from": "2016-07-21", - "date_to": "2016-08-19", - "utility_type": "electricity", - "usage": "52200.00", - "charge": "8845.57" - } -}, -{ - "model": "financialInputs.bills", - "pk": 685, - "fields": { - "building_id": 5466, - "date_from": "2016-06-21", - "date_to": "2016-07-21", - "utility_type": "electricity", - "usage": "49800.00", - "charge": "8599.52" - } -}, -{ - "model": "financialInputs.bills", - "pk": 686, - "fields": { - "building_id": 5466, - "date_from": "2016-05-20", - "date_to": "2016-06-21", - "utility_type": "electricity", - "usage": "48600.00", - "charge": "8688.43" - } -}, -{ - "model": "financialInputs.bills", - "pk": 687, - "fields": { - "building_id": 5466, - "date_from": "2016-04-21", - "date_to": "2016-05-20", - "utility_type": "electricity", - "usage": "34800.00", - "charge": "5446.82" - } -}, -{ - "model": "financialInputs.bills", - "pk": 688, - "fields": { - "building_id": 5466, - "date_from": "2016-03-23", - "date_to": "2016-04-21", - "utility_type": "electricity", - "usage": "31800.00", - "charge": "5424.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 689, - "fields": { - "building_id": 5466, - "date_from": "2016-02-23", - "date_to": "2016-03-23", - "utility_type": "electricity", - "usage": "31200.00", - "charge": "5404.15" - } -}, -{ - "model": "financialInputs.bills", - "pk": 690, - "fields": { - "building_id": 5466, - "date_from": "2016-01-22", - "date_to": "2016-02-23", - "utility_type": "electricity", - "usage": "33600.00", - "charge": "5376.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 691, - "fields": { - "building_id": 5466, - "date_from": "2015-12-22", - "date_to": "2016-01-22", - "utility_type": "electricity", - "usage": "36600.00", - "charge": "6431.27" - } -}, -{ - "model": "financialInputs.bills", - "pk": 692, - "fields": { - "building_id": 5466, - "date_from": "2015-11-19", - "date_to": "2015-12-22", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "5829.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 693, - "fields": { - "building_id": 5466, - "date_from": "2015-10-21", - "date_to": "2015-11-19", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "6245.07" - } -}, -{ - "model": "financialInputs.bills", - "pk": 694, - "fields": { - "building_id": 5466, - "date_from": "2015-09-21", - "date_to": "2015-10-21", - "utility_type": "electricity", - "usage": "36600.00", - "charge": "6303.98" - } -}, -{ - "model": "financialInputs.bills", - "pk": 695, - "fields": { - "building_id": 5466, - "date_from": "2015-08-20", - "date_to": "2015-09-21", - "utility_type": "electricity", - "usage": "54000.00", - "charge": "9611.84" - } -}, -{ - "model": "financialInputs.bills", - "pk": 696, - "fields": { - "building_id": 5466, - "date_from": "2015-07-22", - "date_to": "2015-08-20", - "utility_type": "electricity", - "usage": "51000.00", - "charge": "9320.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 697, - "fields": { - "building_id": 5466, - "date_from": "2015-06-22", - "date_to": "2015-07-22", - "utility_type": "electricity", - "usage": "52800.00", - "charge": "10168.65" - } -}, -{ - "model": "financialInputs.bills", - "pk": 698, - "fields": { - "building_id": 5466, - "date_from": "2015-05-21", - "date_to": "2015-06-22", - "utility_type": "electricity", - "usage": "49200.00", - "charge": "9277.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 699, - "fields": { - "building_id": 5466, - "date_from": "2015-04-22", - "date_to": "2015-05-21", - "utility_type": "electricity", - "usage": "40200.00", - "charge": "7404.47" - } -}, -{ - "model": "financialInputs.bills", - "pk": 700, - "fields": { - "building_id": 5466, - "date_from": "2015-03-24", - "date_to": "2015-04-22", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "5751.96" - } -}, -{ - "model": "financialInputs.bills", - "pk": 701, - "fields": { - "building_id": 2003, - "date_from": "2017-02-22", - "date_to": "2017-03-23", - "utility_type": "electricity", - "usage": "25800.00", - "charge": "4509.82" - } -}, -{ - "model": "financialInputs.bills", - "pk": 702, - "fields": { - "building_id": 2003, - "date_from": "2016-12-21", - "date_to": "2017-02-22", - "utility_type": "electricity", - "usage": "61800.00", - "charge": "10273.47" - } -}, -{ - "model": "financialInputs.bills", - "pk": 703, - "fields": { - "building_id": 2003, - "date_from": "2016-11-18", - "date_to": "2016-12-21", - "utility_type": "electricity", - "usage": "33600.00", - "charge": "5594.74" - } -}, -{ - "model": "financialInputs.bills", - "pk": 704, - "fields": { - "building_id": 2003, - "date_from": "2016-10-20", - "date_to": "2016-11-18", - "utility_type": "electricity", - "usage": "31800.00", - "charge": "5780.51" - } -}, -{ - "model": "financialInputs.bills", - "pk": 705, - "fields": { - "building_id": 2003, - "date_from": "2016-09-20", - "date_to": "2016-10-20", - "utility_type": "electricity", - "usage": "37800.00", - "charge": "6412.98" - } -}, -{ - "model": "financialInputs.bills", - "pk": 706, - "fields": { - "building_id": 2003, - "date_from": "2016-08-19", - "date_to": "2016-09-20", - "utility_type": "electricity", - "usage": "52200.00", - "charge": "8708.14" - } -}, -{ - "model": "financialInputs.bills", - "pk": 707, - "fields": { - "building_id": 2003, - "date_from": "2016-07-21", - "date_to": "2016-08-19", - "utility_type": "electricity", - "usage": "52200.00", - "charge": "8845.57" - } -}, -{ - "model": "financialInputs.bills", - "pk": 708, - "fields": { - "building_id": 2003, - "date_from": "2016-06-21", - "date_to": "2016-07-21", - "utility_type": "electricity", - "usage": "49800.00", - "charge": "8599.52" - } -}, -{ - "model": "financialInputs.bills", - "pk": 709, - "fields": { - "building_id": 2003, - "date_from": "2016-05-20", - "date_to": "2016-06-21", - "utility_type": "electricity", - "usage": "48600.00", - "charge": "8688.43" - } -}, -{ - "model": "financialInputs.bills", - "pk": 710, - "fields": { - "building_id": 2003, - "date_from": "2016-04-21", - "date_to": "2016-05-20", - "utility_type": "electricity", - "usage": "34800.00", - "charge": "5446.82" - } -}, -{ - "model": "financialInputs.bills", - "pk": 711, - "fields": { - "building_id": 2003, - "date_from": "2016-03-23", - "date_to": "2016-04-21", - "utility_type": "electricity", - "usage": "31800.00", - "charge": "5424.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 712, - "fields": { - "building_id": 2003, - "date_from": "2016-02-23", - "date_to": "2016-03-23", - "utility_type": "electricity", - "usage": "31200.00", - "charge": "5404.15" - } -}, -{ - "model": "financialInputs.bills", - "pk": 713, - "fields": { - "building_id": 2003, - "date_from": "2016-01-22", - "date_to": "2016-02-23", - "utility_type": "electricity", - "usage": "33600.00", - "charge": "5376.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 714, - "fields": { - "building_id": 2003, - "date_from": "2015-12-22", - "date_to": "2016-01-22", - "utility_type": "electricity", - "usage": "36600.00", - "charge": "6431.27" - } -}, -{ - "model": "financialInputs.bills", - "pk": 715, - "fields": { - "building_id": 2003, - "date_from": "2015-11-19", - "date_to": "2015-12-22", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "5829.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 716, - "fields": { - "building_id": 2003, - "date_from": "2015-10-21", - "date_to": "2015-11-19", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "6245.07" - } -}, -{ - "model": "financialInputs.bills", - "pk": 717, - "fields": { - "building_id": 2003, - "date_from": "2015-09-21", - "date_to": "2015-10-21", - "utility_type": "electricity", - "usage": "36600.00", - "charge": "6303.98" - } -}, -{ - "model": "financialInputs.bills", - "pk": 718, - "fields": { - "building_id": 2003, - "date_from": "2015-08-20", - "date_to": "2015-09-21", - "utility_type": "electricity", - "usage": "54000.00", - "charge": "9611.84" - } -}, -{ - "model": "financialInputs.bills", - "pk": 719, - "fields": { - "building_id": 2003, - "date_from": "2015-07-22", - "date_to": "2015-08-20", - "utility_type": "electricity", - "usage": "51000.00", - "charge": "9320.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 720, - "fields": { - "building_id": 2003, - "date_from": "2015-06-22", - "date_to": "2015-07-22", - "utility_type": "electricity", - "usage": "52800.00", - "charge": "10168.65" - } -}, -{ - "model": "financialInputs.bills", - "pk": 721, - "fields": { - "building_id": 2003, - "date_from": "2015-05-21", - "date_to": "2015-06-22", - "utility_type": "electricity", - "usage": "49200.00", - "charge": "9277.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 722, - "fields": { - "building_id": 2003, - "date_from": "2015-04-22", - "date_to": "2015-05-21", - "utility_type": "electricity", - "usage": "40200.00", - "charge": "7404.47" - } -}, -{ - "model": "financialInputs.bills", - "pk": 723, - "fields": { - "building_id": 2003, - "date_from": "2015-03-24", - "date_to": "2015-04-22", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "5751.96" - } -}, -{ - "model": "financialInputs.estimationalgorithm", - "pk": 1, - "fields": { - "algorithm": "Rough Estimation", - "building_id": 457 - } -}, -{ - "model": "financialInputs.estimationalgorithm", - "pk": 2, - "fields": { - "algorithm": "Rough Estimation", - "building_id": 509 - } -}, -{ - "model": "financialInputs.estimationalgorithm", - "pk": 3, - "fields": { - "algorithm": "Rough Estimation", - "building_id": 187896 - } -}, -{ - "model": "financialInputs.estimationalgorithm", - "pk": 4, - "fields": { - "algorithm": "Rough Estimation", - "building_id": 488 - } -}, -{ - "model": "financialInputs.estimationalgorithm", - "pk": 5, - "fields": { - "algorithm": "Rough Estimation", - "building_id": 297 - } -}, -{ - "model": "financialInputs.estimationalgorithm", - "pk": 6, - "fields": { - "algorithm": "Rough Estimation", - "building_id": 289 - } -}, -{ - "model": "financialInputs.estimationalgorithm", - "pk": 7, - "fields": { - "algorithm": "Rough Estimation", - "building_id": 8753 - } -}, -{ - "model": "financialInputs.estimationalgorithm", - "pk": 8, - "fields": { - "algorithm": "Rough Estimation", - "building_id": 8743 - } -}, -{ - "model": "financialInputs.estimationalgorithm", - "pk": 9, - "fields": { - "algorithm": "Rough Estimation", - "building_id": 11 - } -}, -{ - "model": "financialInputs.estimationalgorithm", - "pk": 10, - "fields": { - "algorithm": "Rough Estimation", - "building_id": 277 - } -}, -{ - "model": "financialInputs.estimationalgorithm", - "pk": 11, - "fields": { - "algorithm": "Rough Estimation", - "building_id": 28 - } -}, -{ - "model": "financialInputs.estimationalgorithm", - "pk": 12, - "fields": { - "algorithm": "Rough Estimation", - "building_id": 207 - } -}, -{ - "model": "financialInputs.estimationalgorithm", - "pk": 13, - "fields": { - "algorithm": "Rough Estimation", - "building_id": 812 - } -}, -{ - "model": "financialInputs.estimationalgorithm", - "pk": 14, - "fields": { - "algorithm": "Rough Estimation", - "building_id": 5466 - } -}, -{ - "model": "financialInputs.estimationalgorithm", - "pk": 15, - "fields": { - "algorithm": "Rough Estimation", - "building_id": 2002 - } -}, -{ - "model": "financialInputs.estimationalgorithm", - "pk": 16, - "fields": { - "algorithm": "Rough Estimation", - "building_id": 2003 - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2254, - "fields": { - "building_id": 8753, - "year": "2014", - "electricity": "82473.13", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "6686.16", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2255, - "fields": { - "building_id": 8753, - "year": "2015", - "electricity": "83108.87", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "6748.39", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2256, - "fields": { - "building_id": 8753, - "year": "2016", - "electricity": "83839.67", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "6797.83", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2257, - "fields": { - "building_id": 8753, - "year": "2017", - "electricity": "85516.56", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "6927.36", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2258, - "fields": { - "building_id": 8753, - "year": "2018", - "electricity": "87650.14", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "7098.94", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2259, - "fields": { - "building_id": 8753, - "year": "2019", - "electricity": "89797.71", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "7274.48", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2260, - "fields": { - "building_id": 8753, - "year": "2020", - "electricity": "91900.16", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "7444.99", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2261, - "fields": { - "building_id": 8753, - "year": "2021", - "electricity": "93851.39", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "7605.94", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2262, - "fields": { - "building_id": 8753, - "year": "2022", - "electricity": "95627.40", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "7750.85", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2263, - "fields": { - "building_id": 8753, - "year": "2023", - "electricity": "97371.86", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "7892.45", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2264, - "fields": { - "building_id": 8753, - "year": "2024", - "electricity": "99155.59", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "8036.75", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2265, - "fields": { - "building_id": 8753, - "year": "2025", - "electricity": "100999.33", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "8186.00", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2266, - "fields": { - "building_id": 8753, - "year": "2026", - "electricity": "102987.98", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "8345.65", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2267, - "fields": { - "building_id": 8753, - "year": "2027", - "electricity": "105128.49", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "8518.62", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2268, - "fields": { - "building_id": 8753, - "year": "2028", - "electricity": "107321.71", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "8696.60", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2269, - "fields": { - "building_id": 8753, - "year": "2029", - "electricity": "109516.91", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "8874.94", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2270, - "fields": { - "building_id": 8753, - "year": "2030", - "electricity": "111712.78", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "9053.20", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2271, - "fields": { - "building_id": 8753, - "year": "2031", - "electricity": "113915.17", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "9232.00", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2272, - "fields": { - "building_id": 8753, - "year": "2032", - "electricity": "116143.70", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "9412.61", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2273, - "fields": { - "building_id": 8753, - "year": "2033", - "electricity": "118423.26", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "9597.24", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2274, - "fields": { - "building_id": 8753, - "year": "2034", - "electricity": "120763.97", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "9786.78", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2275, - "fields": { - "building_id": 8753, - "year": "2035", - "electricity": "123168.44", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "9981.49", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2276, - "fields": { - "building_id": 8753, - "year": "2036", - "electricity": "125636.99", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "10181.41", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2277, - "fields": { - "building_id": 8753, - "year": "2037", - "electricity": "128159.45", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "10385.87", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2278, - "fields": { - "building_id": 8753, - "year": "2038", - "electricity": "130723.50", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "10593.76", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2304, - "fields": { - "building_id": 277, - "year": "2015", - "electricity": "72833.18", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2305, - "fields": { - "building_id": 277, - "year": "2016", - "electricity": "83839.67", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2306, - "fields": { - "building_id": 277, - "year": "2017", - "electricity": "85516.56", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2307, - "fields": { - "building_id": 277, - "year": "2018", - "electricity": "87650.14", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2308, - "fields": { - "building_id": 277, - "year": "2019", - "electricity": "89797.71", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2309, - "fields": { - "building_id": 277, - "year": "2020", - "electricity": "91900.16", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2310, - "fields": { - "building_id": 277, - "year": "2021", - "electricity": "93851.39", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2311, - "fields": { - "building_id": 277, - "year": "2022", - "electricity": "95627.40", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2312, - "fields": { - "building_id": 277, - "year": "2023", - "electricity": "97371.86", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2313, - "fields": { - "building_id": 277, - "year": "2024", - "electricity": "99155.59", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2314, - "fields": { - "building_id": 277, - "year": "2025", - "electricity": "100999.33", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2315, - "fields": { - "building_id": 277, - "year": "2026", - "electricity": "102987.98", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2316, - "fields": { - "building_id": 277, - "year": "2027", - "electricity": "105128.49", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2317, - "fields": { - "building_id": 277, - "year": "2028", - "electricity": "107321.71", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2318, - "fields": { - "building_id": 277, - "year": "2029", - "electricity": "109516.91", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2319, - "fields": { - "building_id": 277, - "year": "2030", - "electricity": "111712.78", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2320, - "fields": { - "building_id": 277, - "year": "2031", - "electricity": "113915.17", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2321, - "fields": { - "building_id": 277, - "year": "2032", - "electricity": "116143.70", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2322, - "fields": { - "building_id": 277, - "year": "2033", - "electricity": "118423.26", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2323, - "fields": { - "building_id": 277, - "year": "2034", - "electricity": "120763.97", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2324, - "fields": { - "building_id": 277, - "year": "2035", - "electricity": "123168.44", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2325, - "fields": { - "building_id": 277, - "year": "2036", - "electricity": "125636.99", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2326, - "fields": { - "building_id": 277, - "year": "2037", - "electricity": "128159.45", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2327, - "fields": { - "building_id": 277, - "year": "2038", - "electricity": "130723.50", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2328, - "fields": { - "building_id": 277, - "year": "2039", - "electricity": "133327.66", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2354, - "fields": { - "building_id": 28, - "year": "2014", - "electricity": "82473.13", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2355, - "fields": { - "building_id": 28, - "year": "2015", - "electricity": "83108.87", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "1.00", - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2356, - "fields": { - "building_id": 28, - "year": "2016", - "electricity": "83839.67", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2357, - "fields": { - "building_id": 28, - "year": "2017", - "electricity": "85516.56", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2358, - "fields": { - "building_id": 28, - "year": "2018", - "electricity": "87650.14", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2359, - "fields": { - "building_id": 28, - "year": "2019", - "electricity": "89797.71", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2360, - "fields": { - "building_id": 28, - "year": "2020", - "electricity": "91900.16", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2361, - "fields": { - "building_id": 28, - "year": "2021", - "electricity": "93851.39", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2362, - "fields": { - "building_id": 28, - "year": "2022", - "electricity": "95627.40", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2363, - "fields": { - "building_id": 28, - "year": "2023", - "electricity": "97371.86", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2364, - "fields": { - "building_id": 28, - "year": "2024", - "electricity": "99155.59", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2365, - "fields": { - "building_id": 28, - "year": "2025", - "electricity": "100999.33", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2366, - "fields": { - "building_id": 28, - "year": "2026", - "electricity": "102987.98", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2367, - "fields": { - "building_id": 28, - "year": "2027", - "electricity": "105128.49", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2368, - "fields": { - "building_id": 28, - "year": "2028", - "electricity": "107321.71", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2369, - "fields": { - "building_id": 28, - "year": "2029", - "electricity": "109516.91", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2370, - "fields": { - "building_id": 28, - "year": "2030", - "electricity": "111712.78", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2371, - "fields": { - "building_id": 28, - "year": "2031", - "electricity": "113915.17", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2372, - "fields": { - "building_id": 28, - "year": "2032", - "electricity": "116143.70", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2373, - "fields": { - "building_id": 28, - "year": "2033", - "electricity": "118423.26", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2374, - "fields": { - "building_id": 28, - "year": "2034", - "electricity": "120763.97", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2375, - "fields": { - "building_id": 28, - "year": "2035", - "electricity": "123168.44", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2376, - "fields": { - "building_id": 28, - "year": "2036", - "electricity": "125636.99", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2377, - "fields": { - "building_id": 28, - "year": "2037", - "electricity": "128159.45", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2378, - "fields": { - "building_id": 28, - "year": "2038", - "electricity": "130723.50", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2379, - "fields": { - "building_id": 207, - "year": "2017", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "3045.62", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2380, - "fields": { - "building_id": 207, - "year": "2018", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "7098.94", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2381, - "fields": { - "building_id": 207, - "year": "2019", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "7274.48", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2382, - "fields": { - "building_id": 207, - "year": "2020", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "7444.99", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2383, - "fields": { - "building_id": 207, - "year": "2021", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "7605.94", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2384, - "fields": { - "building_id": 207, - "year": "2022", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "7750.85", - "gas_is_user_input": false + "model": "financialInputs.estimationalgorithm", + "pk": 16, + "fields": { + "algorithm": "Rough Estimation", + "building_id": 2003 } }, { @@ -9434,402 +2010,104 @@ "pk": 2531, "fields": { "building_id": 2003, - "year": "2035", - "electricity": "123168.44", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2532, - "fields": { - "building_id": 2003, - "year": "2036", - "electricity": "125636.99", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2533, - "fields": { - "building_id": 2003, - "year": "2037", - "electricity": "128159.45", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2534, - "fields": { - "building_id": 2003, - "year": "2038", - "electricity": "130723.50", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.customerpreference", - "pk": 1, - "fields": { - "building_id": 457, - "downpayment": "0.00", - "expected_payback": "144", - "expected_net_noi_dscr": "1.05" - } -}, -{ - "model": "financialInputs.customerpreference", - "pk": 2, - "fields": { - "building_id": 509, - "downpayment": "0.00", - "expected_payback": "120", - "expected_net_noi_dscr": "1.15" - } -}, -{ - "model": "financialInputs.customerpreference", - "pk": 3, - "fields": { - "building_id": 187896, - "downpayment": "0.00", - "expected_payback": "120", - "expected_net_noi_dscr": "1.15" - } -}, -{ - "model": "financialInputs.customerpreference", - "pk": 4, - "fields": { - "building_id": 488, - "downpayment": "12000.00", - "expected_payback": "12", - "expected_net_noi_dscr": "1.15" - } -}, -{ - "model": "financialInputs.customerpreference", - "pk": 5, - "fields": { - "building_id": 289, - "downpayment": "50000.00", - "expected_payback": "12", - "expected_net_noi_dscr": "1.15" - } -}, -{ - "model": "financialInputs.customerpreference", - "pk": 6, - "fields": { - "building_id": 277, - "downpayment": "0.00", - "expected_payback": "120", - "expected_net_noi_dscr": "1.15" - } -}, -{ - "model": "financialInputs.customerpreference", - "pk": 7, - "fields": { - "building_id": 207, - "downpayment": "0.00", - "expected_payback": "999", - "expected_net_noi_dscr": "1.15" - } -}, -{ - "model": "financialInputs.customerpreference", - "pk": 8, - "fields": { - "building_id": 28, - "downpayment": "0.00", - "expected_payback": "999", - "expected_net_noi_dscr": "1.15" - } -}, -{ - "model": "financialInputs.customerpreference", - "pk": 9, - "fields": { - "building_id": 812, - "downpayment": "0.00", - "expected_payback": "999", - "expected_net_noi_dscr": "1.15" - } -}, -{ - "model": "financialInputs.customerpreference", - "pk": 10, - "fields": { - "building_id": 8753, - "downpayment": "0.00", - "expected_payback": "999", - "expected_net_noi_dscr": "1.15" - } -}, -{ - "model": "financialInputs.customerpreference", - "pk": 11, - "fields": { - "building_id": 5466, - "downpayment": "0.00", - "expected_payback": "120", - "expected_net_noi_dscr": "1.15" - } -}, -{ - "model": "financialInputs.customerpreference", - "pk": 12, - "fields": { - "building_id": 2002, - "downpayment": "0.00", - "expected_payback": "120", - "expected_net_noi_dscr": "1.15" - } -}, -{ - "model": "financialInputs.customerpreference", - "pk": 13, - "fields": { - "building_id": 2003, - "downpayment": "0.00", - "expected_payback": "120", - "expected_net_noi_dscr": "1.15" - } -}, -{ - "model": "financialInputs.liabilities", - "pk": 33, - "fields": { - "building_id": 509, - "input_date": "2014-01-01", - "lender": "Joe Levine Fund", - "monthly_service": "100.00", - "remaining_term": "120" - } -}, -{ - "model": "financialInputs.liabilities", - "pk": 34, - "fields": { - "building_id": 509, - "input_date": "2013-01-01", - "lender": "A lender", - "monthly_service": "300.00", - "remaining_term": "80" - } -}, -{ - "model": "financialInputs.liabilities", - "pk": 40, - "fields": { - "building_id": 187896, - "input_date": "2015-01-01", - "lender": "Lender 1", - "monthly_service": "100.00", - "remaining_term": "100" - } -}, -{ - "model": "financialInputs.liabilities", - "pk": 43, - "fields": { - "building_id": 2102, - "input_date": "2017-05-11", - "lender": "dss", - "monthly_service": "22.00", - "remaining_term": "22" - } -}, -{ - "model": "financialInputs.liabilities", - "pk": 44, - "fields": { - "building_id": 457, - "input_date": "2017-01-04", - "lender": "Joe Levine Fund", - "monthly_service": "500.00", - "remaining_term": "48" - } -}, -{ - "model": "financialInputs.liabilities", - "pk": 45, - "fields": { - "building_id": 457, - "input_date": "2017-01-01", - "lender": "Morris Loan Shark", - "monthly_service": "300.00", - "remaining_term": "24" - } -}, -{ - "model": "financialInputs.liabilities", - "pk": 50, - "fields": { - "building_id": 488, - "input_date": "2017-02-01", - "lender": "Adarsh Murthy", - "monthly_service": "200.00", - "remaining_term": "120" - } -}, -{ - "model": "financialInputs.liabilities", - "pk": 51, - "fields": { - "building_id": 488, - "input_date": "2017-03-02", - "lender": "Jose", - "monthly_service": "220.00", - "remaining_term": "100" - } -}, -{ - "model": "financialInputs.liabilities", - "pk": 54, - "fields": { - "building_id": 289, - "input_date": "2017-05-11", - "lender": "Adarsh Murthy", - "monthly_service": "120.00", - "remaining_term": "100" - } -}, -{ - "model": "financialInputs.cashbalance", - "pk": 50, - "fields": { - "building_id": 509, - "statement_date": "2010-12-09", - "is_from_balance_sheet": true, - "balance_amount": "20000.00" - } -}, -{ - "model": "financialInputs.cashbalance", - "pk": 51, - "fields": { - "building_id": 509, - "statement_date": "2015-12-01", - "is_from_balance_sheet": true, - "balance_amount": "25000.00" - } -}, -{ - "model": "financialInputs.cashbalance", - "pk": 52, - "fields": { - "building_id": 187896, - "statement_date": "2016-12-01", - "is_from_balance_sheet": true, - "balance_amount": "20000.00" - } -}, -{ - "model": "financialInputs.cashbalance", - "pk": 53, - "fields": { - "building_id": 187896, - "statement_date": "2015-12-01", - "is_from_balance_sheet": true, - "balance_amount": "25000.00" + "year": "2035", + "electricity": "123168.44", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true } }, { - "model": "financialInputs.cashbalance", - "pk": 65, + "model": "financialInputs.billsoverview", + "pk": 2532, "fields": { - "building_id": 457, - "statement_date": "2016-11-24", - "is_from_balance_sheet": true, - "balance_amount": "25000.00" + "building_id": 2003, + "year": "2036", + "electricity": "125636.99", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true } }, { - "model": "financialInputs.cashbalance", - "pk": 66, + "model": "financialInputs.billsoverview", + "pk": 2533, "fields": { - "building_id": 457, - "statement_date": "2015-11-12", - "is_from_balance_sheet": true, - "balance_amount": "27000.00" + "building_id": 2003, + "year": "2037", + "electricity": "128159.45", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true } }, { - "model": "financialInputs.cashbalance", - "pk": 67, + "model": "financialInputs.billsoverview", + "pk": 2534, "fields": { - "building_id": 457, - "statement_date": "2014-12-18", - "is_from_balance_sheet": false, - "balance_amount": "38000.00" + "building_id": 2003, + "year": "2038", + "electricity": "130723.50", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true } }, { - "model": "financialInputs.cashbalance", - "pk": 68, + "model": "financialInputs.customerpreference", + "pk": 5, "fields": { - "building_id": 457, - "statement_date": "2017-04-10", - "is_from_balance_sheet": true, - "balance_amount": "40000.00" + "building_id": 289, + "downpayment": "50000.00", + "expected_payback": "12", + "expected_net_noi_dscr": "1.15" } }, { - "model": "financialInputs.cashbalance", - "pk": 69, + "model": "financialInputs.customerpreference", + "pk": 12, "fields": { - "building_id": 488, - "statement_date": "2017-04-01", - "is_from_balance_sheet": true, - "balance_amount": "1000.00" + "building_id": 2002, + "downpayment": "0.00", + "expected_payback": "120", + "expected_net_noi_dscr": "1.15" } }, { - "model": "financialInputs.cashbalance", - "pk": 71, + "model": "financialInputs.customerpreference", + "pk": 13, "fields": { - "building_id": 277, - "statement_date": "2016-12-23", - "is_from_balance_sheet": true, - "balance_amount": "23000.00" + "building_id": 2003, + "downpayment": "0.00", + "expected_payback": "120", + "expected_net_noi_dscr": "1.15" } }, { - "model": "financialInputs.cashbalance", - "pk": 72, + "model": "financialInputs.liabilities", + "pk": 54, "fields": { - "building_id": 207, - "statement_date": "2017-03-15", - "is_from_balance_sheet": true, - "balance_amount": "24000.00" + "building_id": 289, + "input_date": "2017-05-11", + "lender": "Adarsh Murthy", + "monthly_service": "120.00", + "remaining_term": "100" } }, { @@ -9842,16 +2120,6 @@ "balance_amount": "50000.00" } }, -{ - "model": "financialInputs.cashbalance", - "pk": 74, - "fields": { - "building_id": 812, - "statement_date": "2017-03-02", - "is_from_balance_sheet": true, - "balance_amount": "30000.00" - } -}, { "model": "financialInputs.cashbalance", "pk": 75, @@ -9872,114 +2140,6 @@ "balance_amount": "25000.00" } }, -{ - "model": "financialInputs.incomestatement", - "pk": 566, - "fields": { - "building_id": 8753, - "year": "2014", - "revenue": "10.00", - "utility_expense": "10.00", - "other_utility_expense": "-89149.29", - "non_utility_operating_expense": "1.00" - } -}, -{ - "model": "financialInputs.incomestatement", - "pk": 567, - "fields": { - "building_id": 8753, - "year": "2015", - "revenue": "20.00", - "utility_expense": "20.00", - "other_utility_expense": "-89837.26", - "non_utility_operating_expense": "2.00" - } -}, -{ - "model": "financialInputs.incomestatement", - "pk": 568, - "fields": { - "building_id": 8753, - "year": "2016", - "revenue": "30.00", - "utility_expense": "30.00", - "other_utility_expense": "-90607.50", - "non_utility_operating_expense": "3.00" - } -}, -{ - "model": "financialInputs.incomestatement", - "pk": 575, - "fields": { - "building_id": 28, - "year": "2014", - "revenue": "1000.00", - "utility_expense": "10.00", - "other_utility_expense": "-82464.13", - "non_utility_operating_expense": "1.00" - } -}, -{ - "model": "financialInputs.incomestatement", - "pk": 576, - "fields": { - "building_id": 28, - "year": "2015", - "revenue": "2000.00", - "utility_expense": "230.00", - "other_utility_expense": "-82879.87", - "non_utility_operating_expense": "2.00" - } -}, -{ - "model": "financialInputs.incomestatement", - "pk": 577, - "fields": { - "building_id": 28, - "year": "2016", - "revenue": "3000.00", - "utility_expense": "30.00", - "other_utility_expense": "-83810.67", - "non_utility_operating_expense": "3.00" - } -}, -{ - "model": "financialInputs.incomestatement", - "pk": 578, - "fields": { - "building_id": 207, - "year": "2014", - "revenue": "200000.00", - "utility_expense": "120000.00", - "other_utility_expense": "113313.84", - "non_utility_operating_expense": "2000.00" - } -}, -{ - "model": "financialInputs.incomestatement", - "pk": 579, - "fields": { - "building_id": 207, - "year": "2015", - "revenue": "203000.00", - "utility_expense": "123000.00", - "other_utility_expense": "116251.61", - "non_utility_operating_expense": "3000.00" - } -}, -{ - "model": "financialInputs.incomestatement", - "pk": 580, - "fields": { - "building_id": 207, - "year": "2016", - "revenue": "204000.00", - "utility_expense": "129000.00", - "other_utility_expense": "122202.17", - "non_utility_operating_expense": "4000.00" - } -}, { "model": "financialInputs.incomestatement", "pk": 587, @@ -10189,72 +2349,6 @@ "max_loan_amount": "2000000.00" } }, -{ - "model": "financialInputs.loanoptions", - "pk": 21, - "fields": { - "building_id": 509, - "lender": 1, - "interest_rate": "7.000", - "duration": "120", - "max_loan_amount": "5000000.00" - } -}, -{ - "model": "financialInputs.loanoptions", - "pk": 22, - "fields": { - "building_id": 509, - "lender": 2, - "interest_rate": "4.000", - "duration": "96", - "max_loan_amount": "7000000.00" - } -}, -{ - "model": "financialInputs.loanoptions", - "pk": 41, - "fields": { - "building_id": 488, - "lender": 2, - "interest_rate": "8.000", - "duration": "96", - "max_loan_amount": "7000000.00" - } -}, -{ - "model": "financialInputs.loanoptions", - "pk": 42, - "fields": { - "building_id": 488, - "lender": 3, - "interest_rate": "10.000", - "duration": "72", - "max_loan_amount": "10000000.00" - } -}, -{ - "model": "financialInputs.loanoptions", - "pk": 46, - "fields": { - "building_id": 277, - "lender": 1, - "interest_rate": "7.000", - "duration": "84", - "max_loan_amount": "5000000.00" - } -}, -{ - "model": "financialInputs.loanoptions", - "pk": 47, - "fields": { - "building_id": 207, - "lender": 1, - "interest_rate": "7.000", - "duration": "84", - "max_loan_amount": "5000000.00" - } -}, { "model": "financialInputs.loanoptions", "pk": 49, @@ -10288,78 +2382,6 @@ "max_loan_amount": "5000000.00" } }, -{ - "model": "financialInputs.growthrate", - "pk": 14, - "fields": { - "building_id": 509, - "growth_rate": "-1.00" - } -}, -{ - "model": "financialInputs.growthrate", - "pk": 15, - "fields": { - "building_id": 187896, - "growth_rate": "-2.00" - } -}, -{ - "model": "financialInputs.growthrate", - "pk": 72, - "fields": { - "building_id": 457, - "growth_rate": "0.60" - } -}, -{ - "model": "financialInputs.growthrate", - "pk": 73, - "fields": { - "building_id": 498, - "growth_rate": "-2.00" - } -}, -{ - "model": "financialInputs.growthrate", - "pk": 74, - "fields": { - "building_id": 488, - "growth_rate": "-2.00" - } -}, -{ - "model": "financialInputs.growthrate", - "pk": 75, - "fields": { - "building_id": 297, - "growth_rate": "-2.00" - } -}, -{ - "model": "financialInputs.growthrate", - "pk": 158, - "fields": { - "building_id": 8753, - "growth_rate": "-2.00" - } -}, -{ - "model": "financialInputs.growthrate", - "pk": 161, - "fields": { - "building_id": 28, - "growth_rate": "-2.00" - } -}, -{ - "model": "financialInputs.growthrate", - "pk": 162, - "fields": { - "building_id": 207, - "growth_rate": "-2.00" - } -}, { "model": "financialInputs.growthrate", "pk": 170, -- GitLab From dc7bf380a3249db3080cd8e097a1418171ab321e Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Tue, 6 Jun 2017 14:31:31 -0400 Subject: [PATCH 05/31] Remove prospector and add yapf --- requirements-dev.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/requirements-dev.txt b/requirements-dev.txt index 8d2fff9..aa70cb5 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,7 +1,6 @@ -r requirements.txt -autopep8==1.3 -prospector==0.12.4 pycodestyle==2.0.0 pydocstyle==1.0.0 pylint>=1.5.6 pylint-django>=0.7.2 +yapf>=0.16.1 -- GitLab From 0f8d4bfedfe35e30b082abada9699d581203f83b Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Tue, 6 Jun 2017 14:35:01 -0400 Subject: [PATCH 06/31] Add pylintrc and eslint --- .eslintrc.json | 12 ++ .pylintrc | 407 +++++++++++++++++++++++++++++++++++++++++++++++++ package.json | 27 ++++ 3 files changed, 446 insertions(+) create mode 100644 .eslintrc.json create mode 100644 .pylintrc create mode 100644 package.json diff --git a/.eslintrc.json b/.eslintrc.json new file mode 100644 index 0000000..dbca14d --- /dev/null +++ b/.eslintrc.json @@ -0,0 +1,12 @@ +{ + "extends": "airbnb", + "plugins": [ + "jsx-a11y", + "import" + ], + "rules": { + }, + "env": { + "browser": true + } +} diff --git a/.pylintrc b/.pylintrc new file mode 100644 index 0000000..a915b50 --- /dev/null +++ b/.pylintrc @@ -0,0 +1,407 @@ +[MASTER] + +# Specify a configuration file. +#rcfile= + +# Python code to execute, usually for sys.path manipulation such as +# pygtk.require(). +#init-hook= + +# Add files or directories to the blacklist. They should be base names, not +# paths. +ignore=CVS + +# Add files or directories matching the regex patterns to the blacklist. The +# regex matches against base names, not paths. +ignore-patterns= + +# Pickle collected data for later comparisons. +persistent=yes + +# List of plugins (as comma separated values of python modules names) to load, +# usually to register additional checkers. +load-plugins=pylint_django + +# Use multiple processes to speed up Pylint. +jobs=1 + +# Allow loading of arbitrary C extensions. Extensions are imported into the +# active Python interpreter and may run arbitrary code. +unsafe-load-any-extension=no + +# A comma-separated list of package or module names from where C extensions may +# be loaded. Extensions are loading into the active Python interpreter and may +# run arbitrary code +extension-pkg-whitelist= + +# Allow optimization of some AST trees. This will activate a peephole AST +# optimizer, which will apply various small optimizations. For instance, it can +# be used to obtain the result of joining multiple strings with the addition +# operator. Joining a lot of strings can lead to a maximum recursion error in +# Pylint and this flag can prevent that. It has one side effect, the resulting +# AST will be different than the one from reality. This option is deprecated +# and it will be removed in Pylint 2.0. +optimize-ast=no + + +[MESSAGES CONTROL] + +# Only show warnings with the listed confidence levels. Leave empty to show +# all. Valid levels: HIGH, INFERENCE, INFERENCE_FAILURE, UNDEFINED +confidence= + +# Enable the message, report, category or checker with the given id(s). You can +# either give multiple identifier separated by comma (,) or put this option +# multiple time (only on the command line, not in the configuration file where +# it should appear only once). See also the "--disable" option for examples. +#enable= + +# Disable the message, report, category or checker with the given id(s). You +# can either give multiple identifiers separated by comma (,) or put this +# option multiple times (only on the command line, not in the configuration +# file where it should appear only once).You can also use "--disable=all" to +# disable everything first and then reenable specific checks. For example, if +# you want to run only the similarities checker, you can use "--disable=all +# --enable=similarities". If you want to run only the classes checker, but have +# no Warning level messages displayed, use"--disable=all --enable=classes +# --disable=W" +disable=print-statement,parameter-unpacking,unpacking-in-except,old-raise-syntax,backtick,import-star-module-level,apply-builtin,basestring-builtin,buffer-builtin,cmp-builtin,coerce-builtin,execfile-builtin,file-builtin,long-builtin,raw_input-builtin,reduce-builtin,standarderror-builtin,unicode-builtin,xrange-builtin,coerce-method,delslice-method,getslice-method,setslice-method,no-absolute-import,old-division,dict-iter-method,dict-view-method,next-method-called,metaclass-assignment,indexing-exception,raising-string,reload-builtin,oct-method,hex-method,nonzero-method,cmp-method,input-builtin,round-builtin,intern-builtin,unichr-builtin,map-builtin-not-iterating,zip-builtin-not-iterating,range-builtin-not-iterating,filter-builtin-not-iterating,using-cmp-argument,long-suffix,old-ne-operator,old-octal-literal,suppressed-message,useless-suppression + + +[REPORTS] + +# Set the output format. Available formats are text, parseable, colorized, msvs +# (visual studio) and html. You can also give a reporter class, eg +# mypackage.mymodule.MyReporterClass. +output-format=text + +# Put messages in a separate file for each module / package specified on the +# command line instead of printing them on stdout. Reports (if any) will be +# written in a file name "pylint_global.[txt|html]". This option is deprecated +# and it will be removed in Pylint 2.0. +files-output=no + +# Tells whether to display a full report or only the messages +reports=yes + +# Python expression which should return a note less than 10 (10 is the highest +# note). You have access to the variables errors warning, statement which +# respectively contain the number of errors / warnings messages and the total +# number of statements analyzed. This is used by the global evaluation report +# (RP0004). +evaluation=10.0 - ((float(5 * error + warning + refactor + convention) / statement) * 10) + +# Template used to display messages. This is a python new-style format string +# used to format the message information. See doc for all details +#msg-template= + + +[BASIC] + +# Good variable names which should always be accepted, separated by a comma +good-names=i,j,k,ex,Run,_ + +# Bad variable names which should always be refused, separated by a comma +bad-names=foo,bar,baz,toto,tutu,tata + +# Colon-delimited sets of names that determine each other's naming style when +# the name regexes allow several styles. +name-group= + +# Include a hint for the correct naming format with invalid-name +include-naming-hint=no + +# List of decorators that produce properties, such as abc.abstractproperty. Add +# to this list to register other decorators that produce valid properties. +property-classes=abc.abstractproperty + +# Regular expression matching correct module names +module-rgx=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ + +# Naming hint for module names +module-name-hint=(([a-z_][a-z0-9_]*)|([A-Z][a-zA-Z0-9]+))$ + +# Regular expression matching correct constant names +const-rgx=(([A-Z_][A-Z0-9_]*)|(__.*__))$ + +# Naming hint for constant names +const-name-hint=(([A-Z_][A-Z0-9_]*)|(__.*__))$ + +# Regular expression matching correct class names +class-rgx=[A-Z_][a-zA-Z0-9]+$ + +# Naming hint for class names +class-name-hint=[A-Z_][a-zA-Z0-9]+$ + +# Regular expression matching correct function names +function-rgx=[a-z_][a-z0-9_]{2,30}$ + +# Naming hint for function names +function-name-hint=[a-z_][a-z0-9_]{2,30}$ + +# Regular expression matching correct method names +method-rgx=[a-z_][a-z0-9_]{2,30}$ + +# Naming hint for method names +method-name-hint=[a-z_][a-z0-9_]{2,30}$ + +# Regular expression matching correct attribute names +attr-rgx=[a-z_][a-z0-9_]{2,30}$ + +# Naming hint for attribute names +attr-name-hint=[a-z_][a-z0-9_]{2,30}$ + +# Regular expression matching correct argument names +argument-rgx=[a-z_][a-z0-9_]{2,30}$ + +# Naming hint for argument names +argument-name-hint=[a-z_][a-z0-9_]{2,30}$ + +# Regular expression matching correct variable names +variable-rgx=[a-z_][a-z0-9_]{2,30}$ + +# Naming hint for variable names +variable-name-hint=[a-z_][a-z0-9_]{2,30}$ + +# Regular expression matching correct class attribute names +class-attribute-rgx=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ + +# Naming hint for class attribute names +class-attribute-name-hint=([A-Za-z_][A-Za-z0-9_]{2,30}|(__.*__))$ + +# Regular expression matching correct inline iteration names +inlinevar-rgx=[A-Za-z_][A-Za-z0-9_]*$ + +# Naming hint for inline iteration names +inlinevar-name-hint=[A-Za-z_][A-Za-z0-9_]*$ + +# Regular expression which should only match function or class names that do +# not require a docstring. +no-docstring-rgx=^_ + +# Minimum line length for functions/classes that require docstrings, shorter +# ones are exempt. +docstring-min-length=-1 + + +[ELIF] + +# Maximum number of nested blocks for function / method body +max-nested-blocks=5 + + +[FORMAT] + +# Maximum number of characters on a single line. +max-line-length=120 + +# Regexp for a line that is allowed to be longer than the limit. +ignore-long-lines=^\s*(# )??$ + +# Allow the body of an if to be on the same line as the test if there is no +# else. +single-line-if-stmt=no + +# List of optional constructs for which whitespace checking is disabled. `dict- +# separator` is used to allow tabulation in dicts, etc.: {1 : 1,\n222: 2}. +# `trailing-comma` allows a space between comma and closing bracket: (a, ). +# `empty-line` allows space-only lines. +no-space-check=trailing-comma,dict-separator + +# Maximum number of lines in a module +max-module-lines=1000 + +# String used as indentation unit. This is usually " " (4 spaces) or "\t" (1 +# tab). +indent-string=' ' + +# Number of spaces of indent required inside a hanging or continued line. +indent-after-paren=4 + +# Expected format of line ending, e.g. empty (any line ending), LF or CRLF. +expected-line-ending-format= + + +[LOGGING] + +# Logging modules to check that the string format arguments are in logging +# function parameter format +logging-modules=logging + + +[MISCELLANEOUS] + +# List of note tags to take in consideration, separated by a comma. +notes=FIXME,XXX,TODO + + +[SIMILARITIES] + +# Minimum lines number of a similarity. +min-similarity-lines=4 + +# Ignore comments when computing similarities. +ignore-comments=yes + +# Ignore docstrings when computing similarities. +ignore-docstrings=yes + +# Ignore imports when computing similarities. +ignore-imports=no + + +[SPELLING] + +# Spelling dictionary name. Available dictionaries: none. To make it working +# install python-enchant package. +spelling-dict= + +# List of comma separated words that should not be checked. +spelling-ignore-words= + +# A path to a file that contains private dictionary; one word per line. +spelling-private-dict-file= + +# Tells whether to store unknown words to indicated private dictionary in +# --spelling-private-dict-file option instead of raising a message. +spelling-store-unknown-words=no + + +[TYPECHECK] + +# Tells whether missing members accessed in mixin class should be ignored. A +# mixin class is detected if its name ends with "mixin" (case insensitive). +ignore-mixin-members=yes + +# List of module names for which member attributes should not be checked +# (useful for modules/projects where namespaces are manipulated during runtime +# and thus existing member attributes cannot be deduced by static analysis. It +# supports qualified module names, as well as Unix pattern matching. +ignored-modules= + +# List of class names for which member attributes should not be checked (useful +# for classes with dynamically set attributes). This supports the use of +# qualified names. +ignored-classes=optparse.Values,thread._local,_thread._local + +# List of members which are set dynamically and missed by pylint inference +# system, and so shouldn't trigger E1101 when accessed. Python regular +# expressions are accepted. +generated-members= + +# List of decorators that produce context managers, such as +# contextlib.contextmanager. Add to this list to register other decorators that +# produce valid context managers. +contextmanager-decorators=contextlib.contextmanager + + +[VARIABLES] + +# Tells whether we should check for unused import in __init__ files. +init-import=no + +# A regular expression matching the name of dummy variables (i.e. expectedly +# not used). +dummy-variables-rgx=(_+[a-zA-Z0-9]*?$)|dummy + +# List of additional names supposed to be defined in builtins. Remember that +# you should avoid to define new builtins when possible. +additional-builtins= + +# List of strings which can identify a callback function by name. A callback +# name must start or end with one of those strings. +callbacks=cb_,_cb + +# List of qualified module names which can have objects that can redefine +# builtins. +redefining-builtins-modules=six.moves,future.builtins + + +[CLASSES] + +# List of method names used to declare (i.e. assign) instance attributes. +defining-attr-methods=__init__,__new__,setUp + +# List of valid names for the first argument in a class method. +valid-classmethod-first-arg=cls + +# List of valid names for the first argument in a metaclass class method. +valid-metaclass-classmethod-first-arg=mcs + +# List of member names, which should be excluded from the protected access +# warning. +exclude-protected=_asdict,_fields,_replace,_source,_make + + +[DESIGN] + +# Maximum number of arguments for function / method +max-args=5 + +# Argument names that match this expression will be ignored. Default to name +# with leading underscore +ignored-argument-names=_.* + +# Maximum number of locals for function / method body +max-locals=15 + +# Maximum number of return / yield for function / method body +max-returns=6 + +# Maximum number of branch for function / method body +max-branches=12 + +# Maximum number of statements in function / method body +max-statements=50 + +# Maximum number of parents for a class (see R0901). +max-parents=7 + +# Maximum number of attributes for a class (see R0902). +max-attributes=7 + +# Minimum number of public methods for a class (see R0903). +min-public-methods=2 + +# Maximum number of public methods for a class (see R0904). +max-public-methods=20 + +# Maximum number of boolean expressions in a if statement +max-bool-expr=5 + + +[IMPORTS] + +# Deprecated modules which should not be used, separated by a comma +deprecated-modules=optparse + +# Create a graph of every (i.e. internal and external) dependencies in the +# given file (report RP0402 must not be disabled) +import-graph= + +# Create a graph of external dependencies in the given file (report RP0402 must +# not be disabled) +ext-import-graph= + +# Create a graph of internal dependencies in the given file (report RP0402 must +# not be disabled) +int-import-graph= + +# Force import order to recognize a module as part of the standard +# compatibility libraries. +known-standard-library= + +# Force import order to recognize a module as part of a third party library. +known-third-party=enchant + +# Analyse import fallback blocks. This can be used to support both Python 2 and +# 3 compatible code, which means that the block might have code that exists +# only in one or another interpreter, leading to false positives when analysed. +analyse-fallback-blocks=no + + +[EXCEPTIONS] + +# Exceptions that will emit a warning when being caught. Defaults to +# "Exception" +overgeneral-exceptions=Exception diff --git a/package.json b/package.json new file mode 100644 index 0000000..8b9f8eb --- /dev/null +++ b/package.json @@ -0,0 +1,27 @@ +{ + "name": "blocnote", + "version": "1.0.0", + "description": "", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "git+https://github.com/Blocp/blocnote.git" + }, + "author": "", + "license": "ISC", + "bugs": { + "url": "https://github.com/Blocp/blocnote/issues" + }, + "homepage": "https://github.com/Blocp/blocnote#readme", + "dependencies": {}, + "devDependencies": { + "eslint": "^3.19.0", + "eslint-config-airbnb": "^15.0.1", + "eslint-plugin-import": "^2.3.0", + "eslint-plugin-jsx-a11y": "^5.0.3", + "eslint-plugin-react": "^7.0.1" + } +} -- GitLab From 212c519940fb3806e7003b523678a3c23030ed7a Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Tue, 6 Jun 2017 15:55:10 -0400 Subject: [PATCH 07/31] Update get annual bills function to latest bpfin code. --- blocnote/apps/financialInputs/views.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/blocnote/apps/financialInputs/views.py b/blocnote/apps/financialInputs/views.py index 48b17c7..8619316 100644 --- a/blocnote/apps/financialInputs/views.py +++ b/blocnote/apps/financialInputs/views.py @@ -889,21 +889,29 @@ class IncomeStatementTable(View): annual_bills['electricity'] = {} for obj in electricity_objs: annual_bills['electricity'][obj.year] = float(obj.electricity) if obj.electricity else None + else: + annual_bills['electricity'] = None if gas_objs: annual_bills['gas'] = {} for obj in gas_objs: annual_bills['gas'][obj.year] = float(obj.gas) if obj.gas else None + else: + annual_bills['gas'] = None if oil_objs: annual_bills['oil'] = {} for obj in oil_objs: annual_bills['oil'][obj.year] = float(obj.oil) if obj.oil else None + else: + annual_bills['oil'] = None if water_objs: annual_bills['water'] = {} for obj in water_objs: annual_bills['water'][obj.year] = float(obj.water) if obj.water else None + else: + annual_bills['water'] = None return annual_bills def put(self, request, building_id): -- GitLab From e05a84a5cd0a69c1dea68c949a4c3bc31dd44237 Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Tue, 6 Jun 2017 17:16:13 -0400 Subject: [PATCH 08/31] Add app.js --- .../static/budgetSimulator/scripts/app.js | 122 ++++++++++++++++++ 1 file changed, 122 insertions(+) create mode 100644 blocnote/apps/budgetSimulator/static/budgetSimulator/scripts/app.js diff --git a/blocnote/apps/budgetSimulator/static/budgetSimulator/scripts/app.js b/blocnote/apps/budgetSimulator/static/budgetSimulator/scripts/app.js new file mode 100644 index 0000000..4a8a862 --- /dev/null +++ b/blocnote/apps/budgetSimulator/static/budgetSimulator/scripts/app.js @@ -0,0 +1,122 @@ +getBudgetData(); +/** + * Make a GET request to the backend to get all the data needed to generate the graph and tables. + * + */ +function getBudgetData() { + request(`budget-data`, { + method: 'GET', + credentials: 'same-origin', + headers: { + 'Content-Type': 'application/json' + }, + }).then( res => { + if (!res.err){ + let tables = res.payload.instance.tables; + let savingsPotentialList = res.payload.instance.saving_potential_list; + let budgets = []; + console.log(savingsPotentialList); + Object.keys(tables).forEach(function (tableName) { + let budgetRow = tables[tableName][0].slice(1,); + budgets.push(budgetRow); + }); + generateGraph(budgets, savingsPotentialList); + fillTables(tables, savingsPotentialList); + } + else { + res.err.responseBody.then((error) => { + console.log(error.error); + document.querySelector('#budget_error_msg').innerHTML = ` + ${error.error} + `; + }) + } + }); +} + +/** + * Take all the tables data from the backend and fill in the cells. + * + * @param {any} tables : List of all tables. Each table has list of rows. + * @param {any} savingsPotentialList : List of table headings. + */ +function fillTables (tables, savingsPotentialList) { + Object.keys(tables).forEach(function (tableName) { + let head = document.querySelector('#' + tableName + ' thead'); + let body = document.querySelector('#' + tableName + ' tbody'); + let headingRowCount = head.rows.length; + let headingRow = head.insertRow(headingRowCount); + let cell = headingRow.insertCell(0); + cell.innerHTML = 'Savings'; + savingsLength = savingsPotentialList.length; + for (let cellIndex = 1; cellIndex <= savingsLength; cellIndex++) { + cell = headingRow.insertCell(cellIndex); + cell.innerHTML = String(Number(savingsPotentialList[cellIndex - 1]) * 100) + '%'; + } + table = tables[tableName]; + table.forEach(function (rowData) { + let rowCount = body.rows.length; + let row = body.insertRow(rowCount); + rowData.forEach(function (cellData, index) { + cell = row.insertCell(index); + cell.innerHTML = cellData; + }) + }); + }); +} + +function generateGraph(budgets, saving_potential_list) { + let config = { + type: 'line', + data: { + labels: saving_potential_list, + datasets: [{ + backgroundColor: 'transparent', + borderColor: '#F78511', + pointBackgroundColor: '#000000', + type: 'line', + label: 'Budget with Loan only', + data: budgets[0], + }, { + backgroundColor: 'transparent', + borderColor: '#66B2FF', + pointBackgroundColor: '#000000', + type: 'line', + label: 'Budget with Loan first', + data: budgets[1], + }, { + backgroundColor: 'transparent', + borderColor: '#000000', + pointBackgroundColor: '#000000', + type: 'line', + label: 'Budget with SF first', + data: budgets[2], + }, { + backgroundColor: 'transparent', + borderColor: '#99FF99', + pointBackgroundColor: '#000000', + type: 'line', + label: 'Budget with SF maximum', + data: budgets[3], + }] + }, + options: { + scales: { + yAxes: [{ + scaleLabel: { + display: true, + labelString: 'Budget Value in $' + } + }], + xAxes: [{ + scaleLabel: { + display: true, + labelString: 'Savings' + } + }] + } + } + }; + let ctx = document.getElementById("budget_graph").getContext("2d"); + new Chart(ctx, config); +} -- GitLab From a7d9a7dc2fe9f27ec23568fbfe22e610d8394425 Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Tue, 6 Jun 2017 17:54:02 -0400 Subject: [PATCH 09/31] Modify js file according to eslint coding style. --- .../static/budgetSimulator/scripts/app.js | 218 +++++++++--------- 1 file changed, 108 insertions(+), 110 deletions(-) diff --git a/blocnote/apps/budgetSimulator/static/budgetSimulator/scripts/app.js b/blocnote/apps/budgetSimulator/static/budgetSimulator/scripts/app.js index 4a8a862..25aa698 100644 --- a/blocnote/apps/budgetSimulator/static/budgetSimulator/scripts/app.js +++ b/blocnote/apps/budgetSimulator/static/budgetSimulator/scripts/app.js @@ -1,37 +1,57 @@ -getBudgetData(); -/** - * Make a GET request to the backend to get all the data needed to generate the graph and tables. - * - */ -function getBudgetData() { - request(`budget-data`, { - method: 'GET', - credentials: 'same-origin', - headers: { - 'Content-Type': 'application/json' - }, - }).then( res => { - if (!res.err){ - let tables = res.payload.instance.tables; - let savingsPotentialList = res.payload.instance.saving_potential_list; - let budgets = []; - console.log(savingsPotentialList); - Object.keys(tables).forEach(function (tableName) { - let budgetRow = tables[tableName][0].slice(1,); - budgets.push(budgetRow); - }); - generateGraph(budgets, savingsPotentialList); - fillTables(tables, savingsPotentialList); - } - else { - res.err.responseBody.then((error) => { - console.log(error.error); - document.querySelector('#budget_error_msg').innerHTML = ` - ${error.error} - `; - }) - } - }); +function generateGraph(budgets, savingPotentialList) { + const config = { + type: 'line', + data: { + labels: savingPotentialList, + datasets: [{ + backgroundColor: 'transparent', + borderColor: '#F78511', + pointBackgroundColor: '#000000', + type: 'line', + label: 'Budget with Loan only', + data: budgets[0], + }, { + backgroundColor: 'transparent', + borderColor: '#66B2FF', + pointBackgroundColor: '#000000', + type: 'line', + label: 'Budget with Loan first', + data: budgets[1], + }, { + backgroundColor: 'transparent', + borderColor: '#000000', + pointBackgroundColor: '#000000', + type: 'line', + label: 'Budget with SF first', + data: budgets[2], + }, { + backgroundColor: 'transparent', + borderColor: '#99FF99', + pointBackgroundColor: '#000000', + type: 'line', + label: 'Budget with SF maximum', + data: budgets[3], + }], + }, + options: { + scales: { + yAxes: [{ + scaleLabel: { + display: true, + labelString: 'Budget Value in $', + }, + }], + xAxes: [{ + scaleLabel: { + display: true, + labelString: 'Savings', + }, + }], + }, + }, + }; + const ctx = document.getElementById('budget_graph').getContext('2d'); + new Chart(ctx, config); } /** @@ -40,83 +60,61 @@ function getBudgetData() { * @param {any} tables : List of all tables. Each table has list of rows. * @param {any} savingsPotentialList : List of table headings. */ -function fillTables (tables, savingsPotentialList) { - Object.keys(tables).forEach(function (tableName) { - let head = document.querySelector('#' + tableName + ' thead'); - let body = document.querySelector('#' + tableName + ' tbody'); - let headingRowCount = head.rows.length; - let headingRow = head.insertRow(headingRowCount); - let cell = headingRow.insertCell(0); - cell.innerHTML = 'Savings'; - savingsLength = savingsPotentialList.length; - for (let cellIndex = 1; cellIndex <= savingsLength; cellIndex++) { - cell = headingRow.insertCell(cellIndex); - cell.innerHTML = String(Number(savingsPotentialList[cellIndex - 1]) * 100) + '%'; - } - table = tables[tableName]; - table.forEach(function (rowData) { - let rowCount = body.rows.length; - let row = body.insertRow(rowCount); - rowData.forEach(function (cellData, index) { - cell = row.insertCell(index); - cell.innerHTML = cellData; - }) - }); +function fillTables(tables, savingsPotentialList) { + Object.keys(tables).forEach((tableName) => { + const head = document.querySelector(`#${tableName} thead`); + const body = document.querySelector(`#${tableName} tbody`); + const headingRowCount = head.rows.length; + const headingRow = head.insertRow(headingRowCount); + let cell = headingRow.insertCell(0); + cell.innerHTML = 'Savings'; + const savingsLength = savingsPotentialList.length; + for (let cellIndex = 1; cellIndex <= savingsLength; cellIndex += 1) { + cell = headingRow.insertCell(cellIndex); + cell.innerHTML = ` ${Number(savingsPotentialList[cellIndex - 1]) * 100} %`; + } + const table = tables[tableName]; + table.forEach((rowData) => { + const rowCount = body.rows.length; + const row = body.insertRow(rowCount); + rowData.forEach((cellData, index) => { + cell = row.insertCell(index); + cell.innerHTML = cellData; + }); }); + }); } -function generateGraph(budgets, saving_potential_list) { - let config = { - type: 'line', - data: { - labels: saving_potential_list, - datasets: [{ - backgroundColor: 'transparent', - borderColor: '#F78511', - pointBackgroundColor: '#000000', - type: 'line', - label: 'Budget with Loan only', - data: budgets[0], - }, { - backgroundColor: 'transparent', - borderColor: '#66B2FF', - pointBackgroundColor: '#000000', - type: 'line', - label: 'Budget with Loan first', - data: budgets[1], - }, { - backgroundColor: 'transparent', - borderColor: '#000000', - pointBackgroundColor: '#000000', - type: 'line', - label: 'Budget with SF first', - data: budgets[2], - }, { - backgroundColor: 'transparent', - borderColor: '#99FF99', - pointBackgroundColor: '#000000', - type: 'line', - label: 'Budget with SF maximum', - data: budgets[3], - }] - }, - options: { - scales: { - yAxes: [{ - scaleLabel: { - display: true, - labelString: 'Budget Value in $' - } - }], - xAxes: [{ - scaleLabel: { - display: true, - labelString: 'Savings' - } - }] - } - } - }; - let ctx = document.getElementById("budget_graph").getContext("2d"); - new Chart(ctx, config); +/** + * Make a GET request to the backend to get all the data needed to generate the graph and tables. + * + */ +function getBudgetData() { + request(`budget-data`, { + method: 'GET', + credentials: 'same-origin', + headers: { + 'Content-Type': 'application/json', + }, + }).then((res) => { + if (!res.err) { + const tables = res.payload.instance.tables; + const savingsPotentialList = res.payload.instance.saving_potential_list; + const budgets = []; + Object.keys(tables).forEach((tableName) => { + const budgetRow = tables[tableName][0].slice(1, ); + budgets.push(budgetRow); + }); + generateGraph(budgets, savingsPotentialList); + fillTables(tables, savingsPotentialList); + } else { + res.err.responseBody.then((error) => { + document.querySelector('#budget_error_msg').innerHTML = ` + ${error.error} + `; + }); + } + }); } + +getBudgetData(); -- GitLab From 48de6aa4de097bbfa3a20fc3a519101b96175c4d Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Wed, 7 Jun 2017 09:48:31 -0400 Subject: [PATCH 10/31] Modify pylintrc to ignore disabling linting in code. --- .pylintrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pylintrc b/.pylintrc index a915b50..10269cd 100644 --- a/.pylintrc +++ b/.pylintrc @@ -65,7 +65,7 @@ confidence= # --enable=similarities". If you want to run only the classes checker, but have # no Warning level messages displayed, use"--disable=all --enable=classes # --disable=W" -disable=print-statement,parameter-unpacking,unpacking-in-except,old-raise-syntax,backtick,import-star-module-level,apply-builtin,basestring-builtin,buffer-builtin,cmp-builtin,coerce-builtin,execfile-builtin,file-builtin,long-builtin,raw_input-builtin,reduce-builtin,standarderror-builtin,unicode-builtin,xrange-builtin,coerce-method,delslice-method,getslice-method,setslice-method,no-absolute-import,old-division,dict-iter-method,dict-view-method,next-method-called,metaclass-assignment,indexing-exception,raising-string,reload-builtin,oct-method,hex-method,nonzero-method,cmp-method,input-builtin,round-builtin,intern-builtin,unichr-builtin,map-builtin-not-iterating,zip-builtin-not-iterating,range-builtin-not-iterating,filter-builtin-not-iterating,using-cmp-argument,long-suffix,old-ne-operator,old-octal-literal,suppressed-message,useless-suppression +disable=print-statement,parameter-unpacking,unpacking-in-except,old-raise-syntax,backtick,import-star-module-level,apply-builtin,basestring-builtin,buffer-builtin,cmp-builtin,coerce-builtin,execfile-builtin,file-builtin,long-builtin,raw_input-builtin,reduce-builtin,standarderror-builtin,unicode-builtin,xrange-builtin,coerce-method,delslice-method,getslice-method,setslice-method,no-absolute-import,old-division,dict-iter-method,dict-view-method,next-method-called,metaclass-assignment,indexing-exception,raising-string,reload-builtin,oct-method,hex-method,nonzero-method,cmp-method,input-builtin,round-builtin,intern-builtin,unichr-builtin,map-builtin-not-iterating,zip-builtin-not-iterating,range-builtin-not-iterating,filter-builtin-not-iterating,using-cmp-argument,long-suffix,old-ne-operator,old-octal-literal,suppressed-message,useless-suppression,locally-disabled [REPORTS] -- GitLab From b5c57e25e9f0b85d1925a25f95613c7b80ad1e5f Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Wed, 7 Jun 2017 09:49:33 -0400 Subject: [PATCH 11/31] Modify gitignore to include only the root level static directory and not the ones inside. --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 171d778..84017a2 100644 --- a/.gitignore +++ b/.gitignore @@ -16,4 +16,4 @@ node_modules # misc .idea .vscode/ -static/ +/static -- GitLab From 3eca86a0e8eab8e5eae4db6f8c1ee488e42c00fc Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Wed, 7 Jun 2017 09:50:59 -0400 Subject: [PATCH 12/31] Update requirements to use latest version of bpfin. --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index 5113769..c7936fa 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,4 +1,4 @@ Django==1.10.6 psycopg2==2.7 python-decouple==3.0 -git+ssh://git@github.com/Blocp/bpfin.git@v0.1.2 +git+ssh://git@github.com/Blocp/bpfin.git@v0.1.3 -- GitLab From 7ceabaa5b153a553bc9ad2d86a7fa5b8baea500a Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Wed, 7 Jun 2017 09:51:51 -0400 Subject: [PATCH 13/31] Add comment to disable pylint for a line. This was complaining that request was not being used which can be ignored. --- blocnote/apps/budgetSimulator/views.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/blocnote/apps/budgetSimulator/views.py b/blocnote/apps/budgetSimulator/views.py index f6d24e1..21de3ed 100644 --- a/blocnote/apps/budgetSimulator/views.py +++ b/blocnote/apps/budgetSimulator/views.py @@ -105,21 +105,29 @@ def get_annual_bills(building_id): annual_bills['electricity'] = {} for obj in electricity_objs: annual_bills['electricity'][obj.year] = float(obj.electricity) if obj.electricity else None + else: + annual_bills['electricity'] = None if gas_objs: annual_bills['gas'] = {} for obj in gas_objs: annual_bills['gas'][obj.year] = float(obj.gas) if obj.gas else None + else: + annual_bills['gas'] = None if oil_objs: annual_bills['oil'] = {} for obj in oil_objs: annual_bills['oil'][obj.year] = float(obj.oil) if obj.oil else None + else: + annual_bills['oil'] = None if water_objs: annual_bills['water'] = {} for obj in water_objs: annual_bills['water'][obj.year] = float(obj.water) if obj.water else None + else: + annual_bills['water'] = None return annual_bills @@ -265,6 +273,7 @@ class Index(View): class Budget(View): """Fetch the data required for budget simulation and perform simulation. Send results to the frontend.""" + # pylint: disable=unused-argument def get(self, request, building_id): """HTTP GET request. -- GitLab From 883d8fdeac24ee4a34c9ee0ac974021d77957e66 Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Wed, 7 Jun 2017 10:33:48 -0400 Subject: [PATCH 14/31] Delete old fixtures file. Modify tests to have better titles and use fixtures. --- blocnote/apps/budgetSimulator/tests.py | 450 ++++++------------------- 1 file changed, 104 insertions(+), 346 deletions(-) diff --git a/blocnote/apps/budgetSimulator/tests.py b/blocnote/apps/budgetSimulator/tests.py index 87d23dc..631adbc 100644 --- a/blocnote/apps/budgetSimulator/tests.py +++ b/blocnote/apps/budgetSimulator/tests.py @@ -1,6 +1,4 @@ """Test all the function and views in budget endpoint.""" -import json - from datetime import date from django.test import TestCase @@ -24,35 +22,22 @@ from .views import get_raw_bill class GetAnalysisDateTest(TestCase): """Test get_analysis_date function.""" - def setUp(self): - """Store a fund for use.""" - Fund.objects.create(Name='Fund1') + fixtures = ['funds_testdata.json', 'financing_overview_testdata.json'] def test_analysis_date_1(self): - """Fetch analysis date for a building with id 233. + """Fetch analysis date for a building with no data in database. Building with id 233 does not have financing overview records stored. This should raise an attribute error. """ self.assertRaises(AttributeError, get_analysis_date, 233) def test_analysis_date_2(self): - """Create and Fetch analysis date for building with id 233. + """Create and Fetch analysis date. Building with id 233 has nothing initially. Create financiang overview model with building id 233 and test get_analysis_date function for 233 and check if the values match. """ - fund = Fund.objects.get(Name='Fund1') - FinancingOverview.objects.create( - building_id=233, - fund=fund, - pro_forma_start_date=date(2014, 1, 1), - pro_forma_duration=25, - analysis_date=date(2017, 6, 5), - anticipated_construction_start_date=date(2017, 7, 1), - anticipated_commissioning_date=date(2017, 8, 1), - anticipated_construction_period=4 - ) - analysis_date = get_analysis_date(233) + analysis_date = get_analysis_date(100) expected_analysis_date = { 'proforma_start': date(2014, 1, 1), 'proforma_duration': 25, @@ -63,12 +48,10 @@ class GetAnalysisDateTest(TestCase): class GetCommissioningDateTest(TestCase): """Test get_commissioning_date function.""" - def setUp(self): - """Store a fund for use.""" - Fund.objects.create(Name='Fund1') + fixtures = ['funds_testdata.json', 'financing_overview_testdata.json'] def test_commissioning_date_1(self): - """Fetch commissioning date for building with id 233. + """Fetch commissioning date for building with no data in database. No financing over records exist for this building hence it should raise an attribute error. """ @@ -76,18 +59,7 @@ class GetCommissioningDateTest(TestCase): def test_commissioning_date_2(self): """Create a financing overview record and test get_commissioning_date function.""" - fund = Fund.objects.get(Name='Fund1') - FinancingOverview.objects.create( - building_id=233, - fund=fund, - pro_forma_start_date=date(2014, 1, 1), - pro_forma_duration=25, - analysis_date=date(2017, 6, 5), - anticipated_construction_start_date=date(2017, 7, 1), - anticipated_commissioning_date=date(2017, 8, 1), - anticipated_construction_period=4 - ) - commissioning_date = get_commissioning_date(233) + commissioning_date = get_commissioning_date(100) expected_commissioning_date = date(2017, 8, 1) self.assertEqual(commissioning_date, expected_commissioning_date) @@ -95,8 +67,10 @@ class GetCommissioningDateTest(TestCase): class GetCustomerPreferenceTest(TestCase): """Test get_customer_preference function.""" + fixtures = ['customer_preference_testdata.json'] + def test_customer_preference_1(self): - """Fetch customer preference for building with id 233. + """Fetch customer preference for building with no data. No customer preference record exists for building id 233. AttributeError should be raised. """ @@ -104,13 +78,7 @@ class GetCustomerPreferenceTest(TestCase): def test_customer_preference_2(self): """Create customer preference record and test get_customer_preference function.""" - CustomerPreference.objects.create( - building_id=233, - downpayment=100, - expected_payback=10, - expected_net_noi_dscr=1.15 - ) - customer_preference = get_customer_preference(233) + customer_preference = get_customer_preference(100) expected_customer_preference = { 'downpayment_max': 100.0, 'expected_payback': 10, @@ -122,8 +90,10 @@ class GetCustomerPreferenceTest(TestCase): class GetGrowthRateTest(TestCase): """Test get_growth_rate function.""" + fixtures = ['growth_rate_testdata.json'] + def test_growth_rate_1(self): - """Fetch growth rate for building with id 233. + """Fetch growth rate for building with no data in database. No growth is stored for building with id 233. This should raise an AttributeError. """ @@ -131,11 +101,7 @@ class GetGrowthRateTest(TestCase): def test_growth_rate_2(self): """Create growth rate and test get_growth_rate function.""" - GrowthRate.objects.create( - building_id=233, - growth_rate=1 - ) - growth_rate = get_growth_rate(233) + growth_rate = get_growth_rate(100) expected_growth_rate = 1 self.assertEqual(growth_rate, expected_growth_rate) @@ -143,8 +109,10 @@ class GetGrowthRateTest(TestCase): class GetLiabilitiesTest(TestCase): """Test get_liability function.""" + fixtures = ['liabilities_testdata.json'] + def test_liabilities_1(self): - """Test get_liability for building with id 233. + """Test get_liability for building with with no data. No liabilities records exists for this building hence empty dictionary should be returned. """ @@ -152,43 +120,22 @@ class GetLiabilitiesTest(TestCase): self.assertEqual(liabilities, {}) def test_liabilities_2(self): - """Test get_liability for different values. + """Test get_liability when 1 record exists. Create a liability record for this building id test the reult. """ - Liabilities.objects.create( - building_id=233, - input_date=date(2016, 1, 1), - lender="Adarsh", - remaining_term=120, - monthly_service=300 - ) - liability = get_liability(233) + liability = get_liability(100) expected_liability = { 'debt1': (300, "Adarsh", 120, date(2016, 1, 1)) } self.assertEqual(liability, expected_liability) def test_liability_3(self): - """Test get_liability for different values. + """Test get_liability when 2 records exist. Create 2 liability records for building 233 and validate the output. """ - Liabilities.objects.create( - building_id=233, - input_date=date(2016, 1, 1), - lender="Adarsh", - remaining_term=120, - monthly_service=300 - ) - Liabilities.objects.create( - building_id=233, - input_date=date(2015, 1, 1), - lender="Tom", - remaining_term=100, - monthly_service=250 - ) - liability = get_liability(233) + liability = get_liability(101) expected_liability = { 'debt1': (300, "Adarsh", 120, date(2016, 1, 1)), 'debt2': (250, "Tom", 100, date(2015, 1, 1)) @@ -199,48 +146,32 @@ class GetLiabilitiesTest(TestCase): class GetCashBalanceTest(TestCase): """Test get_cash_balance function.""" + fixtures = ['cash_balance_testdata.json'] + def test_cash_balance_1(self): - """Test get_cash_balance for building with id 233. + """Test get_cash_balance for building with no data. No cash balance record exist for this building so it should raise an AttributeError. """ self.assertRaises(AttributeError, get_cash_balance, 233) def test_cash_balance_2(self): - """Test get_cash_balance for different values. + """Test get_cash_balance with 1 record. Create a cash balance record for building 233 and validate the result. """ - CashBalance.objects.create( - building_id=233, - statement_date=date(2016, 12, 1), - is_from_balance_sheet=True, - balance_amount=20000 - ) - cash_balance = get_cash_balance(233) + cash_balance = get_cash_balance(100) expected_cash_balance = { date(2016, 12, 1): (20000, True), } self.assertEqual(cash_balance, expected_cash_balance) def test_cash_balance_3(self): - """Test get_cash_balance for different values. + """Test get_cash_balance with 2 records. Create 2 cash balance records for building 233 and validate the result. """ - CashBalance.objects.create( - building_id=233, - statement_date=date(2016, 12, 1), - is_from_balance_sheet=True, - balance_amount=20000 - ) - CashBalance.objects.create( - building_id=233, - statement_date=date(2015, 12, 1), - is_from_balance_sheet=False, - balance_amount=30000 - ) - cash_balance = get_cash_balance(233) + cash_balance = get_cash_balance(101) expected_cash_balance = { date(2016, 12, 1): (20000, True), date(2015, 12, 1): (30000, False), @@ -251,33 +182,24 @@ class GetCashBalanceTest(TestCase): class GetLoanInputTest(TestCase): """Test get_loan_input function.""" + fixtures = ['lender_testdata.json', 'loan_options_testdata.json'] + def test_loan_input_1(self): - """Test get_cash_balance for building with id 233. + """Test get_cash_balance for building with no data in database. No loan options record exist for this building hence it should raise AttributeError. """ self.assertRaises(AttributeError, get_loan_input, 233) def test_loan_input_2(self): - """Test get_cash_balance for different inputs. + """Test get_cash_balance with one record. Create a lender record. Create a loan options record and validate get_loan_input. """ - Lender.objects.create( - name="Lender1" - ) - lender = Lender.objects.get(name="Lender1") - LoanOptions.objects.create( - building_id=233, - lender=lender, - interest_rate=8, - duration=100, - max_loan_amount=1000000 - ) - loan_options = get_loan_input(233) + loan_options = get_loan_input(100) expected_loan_options = [ { - 'institute': "Lender1", + 'institute': "Green Bank", 'max_amount': 1000000, 'interest': 0.08, 'duration': 100, @@ -289,43 +211,21 @@ class GetLoanInputTest(TestCase): class GetRawIncomeStatementTest(TestCase): """Test get_raw_income_statement function.""" + fixtures = ['income_statement_testdata.json'] + def test_income_statement_1(self): - """Test get_raw_income_statement for building 233. + """Test get_raw_income_statement for building with no data in database. No income statement exists for building 233. This should raise AttributeError. """ self.assertRaises(AttributeError, get_raw_income_statement, 233) def test_income_statement_2(self): - """Test get_raw_income_statement for different values. + """Test get_raw_income_statement for a set of good values. Create income statement objects for the 3 years and test the function. """ - IncomeStatement.objects.create( - building_id=233, - year=2014, - revenue=200000, - utility_expense=90000, - other_utility_expense=80000, - non_utility_operating_expense=50000 - ) - IncomeStatement.objects.create( - building_id=233, - year=2015, - revenue=205000, - utility_expense=92000, - other_utility_expense=83000, - non_utility_operating_expense=55000 - ) - IncomeStatement.objects.create( - building_id=233, - year=2016, - revenue=210000, - utility_expense=94000, - other_utility_expense=86000, - non_utility_operating_expense=57000 - ) - raw_income_statement_input = get_raw_income_statement(233) + raw_income_statement_input = get_raw_income_statement(100) expected_raw_income_statement = { 2014: { 'revenue': 200000, @@ -349,80 +249,62 @@ class GetRawIncomeStatementTest(TestCase): class GetAnnualBillsTest(TestCase): """Test get_annual_bills function.""" + fixtures = ['bills_overview_testdata'] + def test_annual_bills_1(self): - """Test get_annual_bills for building 233. + """Test get_annual_bills for building with no records in database. No records exist for this building hence this should return an empty dictionary. """ annual_bills = get_annual_bills(233) - self.assertEqual(annual_bills, {}) + expected_annual_bills = { + 'electricity': None, + 'gas': None, + 'oil': None, + 'water': None, + } + self.assertEqual(annual_bills, expected_annual_bills) def test_annual_bills_2(self): - """Test get_annual_bills for different values. + """Test get_annual_bills for electricity records for a year. Create a bills overview record with only electricity data and test the function. """ - BillsOverview.objects.create( - building_id=233, - year=2014, - electricity=10000, - electricity_is_user_input=True - ) - annual_bills = get_annual_bills(233) + annual_bills = get_annual_bills(100) expected_annual_bills = { 'electricity': { 2014: 10000, }, + 'gas': None, + 'oil': None, + 'water': None, } self.assertEqual(annual_bills, expected_annual_bills) def test_annual_bills_3(self): - """Test get_annual_bills for different values. + """Test get_annual_bills with electricity values for 3 years. Create a bills overview records with only electricity data for 3 different years and test the function. """ - BillsOverview.objects.create( - building_id=233, - year=2014, - electricity=10000, - electricity_is_user_input=True - ) - BillsOverview.objects.create( - building_id=233, - year=2015, - electricity=12000, - electricity_is_user_input=True - ) - BillsOverview.objects.create( - building_id=233, - year=2016, - electricity=15000, - electricity_is_user_input=True - ) - annual_bills = get_annual_bills(233) + annual_bills = get_annual_bills(101) expected_annual_bills = { 'electricity': { 2014: 10000, 2015: 12000, 2016: 15000, }, + 'gas': None, + 'oil': None, + 'water': None, } self.assertEqual(annual_bills, expected_annual_bills) def test_annual_bills_4(self): - """Test get_annual_bills for different values. + """Test get_annual_bills for electricity and gas values for 1 year each. Create a bills overview record with only electricity and gas data and test the function. """ - BillsOverview.objects.create( - building_id=233, - year=2014, - electricity=10000, - electricity_is_user_input=True, - gas=5000, - gas_is_user_input=True - ) - annual_bills = get_annual_bills(233) + annual_bills = get_annual_bills(102) expected_annual_bills = { 'electricity': { 2014: 10000, @@ -430,25 +312,17 @@ class GetAnnualBillsTest(TestCase): 'gas': { 2014: 5000, }, + 'oil': None, + 'water': None, } self.assertEqual(annual_bills, expected_annual_bills) def test_annual_bills_5(self): - """Test get_annual_bills for different values. + """Test get_annual_bills for electricity, gas and water records for 1 year. - Create a bills overview record with only electricity, gas and oil data and test the function. + Create a bills overview record with only electricity, gas and water data and test the function. """ - BillsOverview.objects.create( - building_id=233, - year=2014, - electricity=10000, - electricity_is_user_input=True, - gas=5000, - gas_is_user_input=True, - water=17000, - water_is_user_input=True - ) - annual_bills = get_annual_bills(233) + annual_bills = get_annual_bills(103) expected_annual_bills = { 'electricity': { 2014: 10000, @@ -459,39 +333,16 @@ class GetAnnualBillsTest(TestCase): 'water': { 2014: 17000, }, + 'oil': None, } self.assertEqual(annual_bills, expected_annual_bills) def test_annual_bills_6(self): - """Test get_annual_bills for different values. + """Test get_annual_bills with electricity 3 years, gas 2 and water 1 year. Create a bills overview record and test the function. """ - BillsOverview.objects.create( - building_id=233, - year=2014, - electricity=10000, - electricity_is_user_input=True - ) - BillsOverview.objects.create( - building_id=233, - year=2015, - electricity=12000, - electricity_is_user_input=True, - gas=5000, - gas_is_user_input=True - ) - BillsOverview.objects.create( - building_id=233, - year=2016, - electricity=14000, - electricity_is_user_input=True, - gas=7000, - gas_is_user_input=True, - water=17000, - water_is_user_input=True - ) - annual_bills = get_annual_bills(233) + annual_bills = get_annual_bills(104) expected_annual_bills = { 'electricity': { 2014: 10000, @@ -505,6 +356,7 @@ class GetAnnualBillsTest(TestCase): 'water': { 2016: 17000, }, + 'oil': None, } self.assertEqual(annual_bills, expected_annual_bills) @@ -512,8 +364,10 @@ class GetAnnualBillsTest(TestCase): class GetRawBillsTest(TestCase): """Test get_raw_bill function.""" + fixtures = ['bills_testdata.json'] + def test_raw_bills_1(self): - """Test the function for building id 233. + """Test the function for building with no records. No bills exist for this building so it should return empty dictionary. """ @@ -521,19 +375,11 @@ class GetRawBillsTest(TestCase): self.assertEqual(raw_bills, {}) def test_raw_bills_2(self): - """Test function for different values. + """Test function with electricity bill. Create Bills record with electricity bill and validate the function. """ - Bills.objects.create( - building_id=233, - date_from=date(2015, 1, 1), - date_to=date(2015, 12, 31), - utility_type='electricity', - usage=100, - charge=5000, - ) - raw_bills = get_raw_bill(233) + raw_bills = get_raw_bill(100) expected_raw_bills = { 'electricity': { 'utility_type': 'electricity', @@ -546,27 +392,11 @@ class GetRawBillsTest(TestCase): self.assertEqual(raw_bills, expected_raw_bills) def test_raw_bills_3(self): - """Test function for different values. + """Test function with electricity and gas bill. Create Bills record with electricity and gas bills and validate the function. """ - Bills.objects.create( - building_id=233, - date_from=date(2015, 1, 1), - date_to=date(2015, 12, 31), - utility_type='electricity', - usage=100, - charge=5000, - ) - Bills.objects.create( - building_id=233, - date_from=date(2014, 1, 1), - date_to=date(2014, 12, 31), - utility_type='gas', - usage=200, - charge=7000, - ) - raw_bills = get_raw_bill(233) + raw_bills = get_raw_bill(102) expected_raw_bills = { 'electricity': { 'utility_type': 'electricity', @@ -586,78 +416,11 @@ class GetRawBillsTest(TestCase): self.assertEqual(raw_bills, expected_raw_bills) def test_raw_bills_4(self): - """Test function for different values. + """Test function for all 4 utilities. Create Bills record with all bills and validate the function. """ - Bills.objects.create( - building_id=233, - date_from=date(2014, 1, 1), - date_to=date(2014, 12, 31), - utility_type='electricity', - usage=100, - charge=5000, - ) - Bills.objects.create( - building_id=233, - date_from=date(2015, 1, 1), - date_to=date(2015, 12, 31), - utility_type='electricity', - usage=200, - charge=10000, - ) - Bills.objects.create( - building_id=233, - date_from=date(2016, 1, 1), - date_to=date(2016, 12, 31), - utility_type='electricity', - usage=300, - charge=13000, - ) - - Bills.objects.create( - building_id=233, - date_from=date(2015, 1, 1), - date_to=date(2015, 12, 31), - utility_type='gas', - usage=200, - charge=7000, - ) - Bills.objects.create( - building_id=233, - date_from=date(2016, 1, 1), - date_to=date(2016, 12, 31), - utility_type='gas', - usage=400, - charge=9500, - ) - - Bills.objects.create( - building_id=233, - date_from=date(2015, 1, 1), - date_to=date(2015, 12, 31), - utility_type='oil', - usage=100, - charge=5000, - ) - Bills.objects.create( - building_id=233, - date_from=date(2016, 1, 1), - date_to=date(2016, 12, 31), - utility_type='oil', - usage=250, - charge=6000, - ) - - Bills.objects.create( - building_id=233, - date_from=date(2016, 1, 1), - date_to=date(2016, 12, 31), - utility_type='water', - usage=200, - charge=2000, - ) - raw_bills = get_raw_bill(233) + raw_bills = get_raw_bill(103) expected_raw_bills = { 'electricity': { 'utility_type': 'electricity', @@ -695,7 +458,7 @@ class BudgetSimulatorIndexTest(TestCase): """Test the index view of budget endpoint.""" def test_index_test_1(self): - """Test the get route. + """Test the get route which simply renders an html. Make sure the status is 200, and building_id is in the context of the response. """ @@ -708,10 +471,24 @@ class BudgetSimulatorIndexTest(TestCase): class BudgetSimulatorBudgetView(TestCase): """Test the budget view of the budget endpoint.""" - fixtures = ['financialInputs_views_testdata.json'] + fixtures = [ + 'funds_testdata.json', + 'financing_overview_testdata.json', + 'bills_testdata.json', + 'estimation_algorithm_testdata.json', + 'bills_overview_testdata.json', + 'customer_preference_testdata', + 'liabilities_testdata.json', + 'cash_balance_testdata.json', + 'income_statement_testdata.json', + 'default_loan_testdata.json', + 'loan_options_testdata.json', + 'growth_rate_testdata.json', + 'lender_testdata.json', + ] def test_budget_view_1(self): - """Test budget view for building with id 2000. + """Test budget view for building with id 2000 which has no inputs stored. building with id 2000 has no inputs stored. This should return a status code of 400. """ @@ -719,13 +496,13 @@ class BudgetSimulatorBudgetView(TestCase): self.assertEqual(response.status_code, 400) def test_budget_view_2(self): - """Test budget view for building with id 289. + """Test budget view for building with id 289 which has all the right inputs stored. Building with id 289 has all inputs store. This should return a status 200 with all the right outputs for budget simulation. """ response = self.client.get('/buildings/289/budget/budget-data/') - response_content = json.loads(response.content) + response_content = response.json() req_dscr = { 'req_noi_dscr': 1.15, 'req_cash_dscr': 1.15, @@ -751,7 +528,7 @@ class BudgetSimulatorBudgetView(TestCase): self.assertEqual(len(result), 4) def test_budget_view_3(self): - """Test budget view for building with id 2001. + """Test budget view for building with id 2001 with only the proforma inputs stored. Building with id 2001 has only the proforma inputs stored. This should return a status code of 200. """ @@ -759,45 +536,26 @@ class BudgetSimulatorBudgetView(TestCase): self.assertEqual(response.status_code, 400) def test_budget_view_4(self): - """Test budget view for building with id 2002. + """Test budget view for building with id 2002 with all inputs but water utility empty stored. Building with id 2002 has everything stored. The bills overview has water as empty. This should return a status code of 200. """ response = self.client.get('/buildings/2002/budget/budget-data/') - response_content = json.loads(response.content) - req_dscr = { - 'req_noi_dscr': 1.15, - 'req_cash_dscr': 1.15, - 'req_saving_dscr': 1.10, - } - result = budget_simulation( - get_analysis_date(2002), - get_commissioning_date(2002), - get_customer_preference(2002), - req_dscr, - get_raw_bill(2002), - get_annual_bills(2002), - get_raw_income_statement(2002), - get_growth_rate(2002), - get_liability(2002), - get_cash_balance(2002), - get_loan_input(2002) - ) + response_content = response.json() self.assertEqual(response.status_code, 200) self.assertTrue('instance' in response_content) self.assertTrue('tables' in response_content['instance']) self.assertTrue('saving_potential_list' in response_content['instance']) - self.assertEqual(len(result), 4) def test_budget_view_5(self): - """Test budget for building with id 2003. + """Test budget for building with id 2003 all inputs but liability stored. Building with id 2003 has all inputs stored except Liabilities. This should still return a success status with status code 200. """ response = self.client.get('/buildings/2003/budget/budget-data/') - response_content = json.loads(response.content) + response_content = response.json() req_dscr = { 'req_noi_dscr': 1.15, 'req_cash_dscr': 1.15, -- GitLab From be47b78cad686330bcf2fc1916799fad3728b6fe Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Wed, 7 Jun 2017 10:35:17 -0400 Subject: [PATCH 15/31] Add all the fixture files. --- .../fixtures/bills_overview_testdata.json | 1346 +++++++++ .../fixtures/bills_testdata.json | 902 ++++++ .../fixtures/cash_balance_testdata.json | 62 + .../customer_preference_testdata.json | 42 + .../fixtures/default_loan_testdata.json | 68 + .../estimation_algorithm_testdata.json | 26 + .../financialInputs_views_testdata.json | 2409 ----------------- .../fixtures/financing_overview_testdata.json | 82 + .../fixtures/funds_testdata.json | 16 + .../fixtures/growth_rate_testdata.json | 34 + .../fixtures/income_statement_testdata.json | 146 + .../fixtures/lender_testdata.json | 37 + .../fixtures/liabilities_testdata.json | 46 + .../fixtures/loan_options_testdata.json | 46 + 14 files changed, 2853 insertions(+), 2409 deletions(-) create mode 100644 blocnote/apps/budgetSimulator/fixtures/bills_overview_testdata.json create mode 100644 blocnote/apps/budgetSimulator/fixtures/bills_testdata.json create mode 100644 blocnote/apps/budgetSimulator/fixtures/cash_balance_testdata.json create mode 100644 blocnote/apps/budgetSimulator/fixtures/customer_preference_testdata.json create mode 100644 blocnote/apps/budgetSimulator/fixtures/default_loan_testdata.json create mode 100644 blocnote/apps/budgetSimulator/fixtures/estimation_algorithm_testdata.json delete mode 100644 blocnote/apps/budgetSimulator/fixtures/financialInputs_views_testdata.json create mode 100644 blocnote/apps/budgetSimulator/fixtures/financing_overview_testdata.json create mode 100644 blocnote/apps/budgetSimulator/fixtures/funds_testdata.json create mode 100644 blocnote/apps/budgetSimulator/fixtures/growth_rate_testdata.json create mode 100644 blocnote/apps/budgetSimulator/fixtures/income_statement_testdata.json create mode 100644 blocnote/apps/budgetSimulator/fixtures/lender_testdata.json create mode 100644 blocnote/apps/budgetSimulator/fixtures/liabilities_testdata.json create mode 100644 blocnote/apps/budgetSimulator/fixtures/loan_options_testdata.json diff --git a/blocnote/apps/budgetSimulator/fixtures/bills_overview_testdata.json b/blocnote/apps/budgetSimulator/fixtures/bills_overview_testdata.json new file mode 100644 index 0000000..eb81c21 --- /dev/null +++ b/blocnote/apps/budgetSimulator/fixtures/bills_overview_testdata.json @@ -0,0 +1,1346 @@ +[ + { + "model": "financialInputs.billsoverview", + "pk": 1, + "fields": { + "building_id": 100, + "year": "2014", + "electricity": "10000.00", + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": false, + "oil": null, + "oil_is_user_input": false, + "gas": null, + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2, + "fields": { + "building_id": 101, + "year": "2014", + "electricity": "10000.00", + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": false, + "oil": null, + "oil_is_user_input": false, + "gas": null, + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 3, + "fields": { + "building_id": 101, + "year": "2015", + "electricity": "12000.00", + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": false, + "oil": null, + "oil_is_user_input": false, + "gas": null, + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 4, + "fields": { + "building_id": 101, + "year": "2016", + "electricity": "15000.00", + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": false, + "oil": null, + "oil_is_user_input": false, + "gas": null, + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 5, + "fields": { + "building_id": 102, + "year": "2014", + "electricity": "10000.00", + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": false, + "oil": null, + "oil_is_user_input": false, + "gas": 5000, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 6, + "fields": { + "building_id": 103, + "year": "2014", + "electricity": "10000.00", + "electricity_is_user_input": true, + "water": 17000, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": false, + "gas": 5000, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 7, + "fields": { + "building_id": 104, + "year": "2014", + "electricity": "10000.00", + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": false, + "oil": null, + "oil_is_user_input": false, + "gas": null, + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 8, + "fields": { + "building_id": 104, + "year": "2015", + "electricity": "12000.00", + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": false, + "oil": null, + "oil_is_user_input": false, + "gas": 5000, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 9, + "fields": { + "building_id": 104, + "year": "2016", + "electricity": "14000.00", + "electricity_is_user_input": true, + "water": 17000, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": false, + "gas": 7000, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2410, + "fields": { + "building_id": 289, + "year": "2014", + "electricity": "82473.13", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "6686.16", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2411, + "fields": { + "building_id": 289, + "year": "2015", + "electricity": "83108.87", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": "18000.00", + "oil_is_user_input": true, + "gas": "6748.39", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2412, + "fields": { + "building_id": 289, + "year": "2016", + "electricity": "83839.67", + "electricity_is_user_input": false, + "water": "2000.00", + "water_is_user_input": true, + "oil": "20000.00", + "oil_is_user_input": true, + "gas": "6797.83", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2413, + "fields": { + "building_id": 289, + "year": "2017", + "electricity": "85516.56", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "6927.36", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2414, + "fields": { + "building_id": 289, + "year": "2018", + "electricity": "87650.14", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "7098.94", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2415, + "fields": { + "building_id": 289, + "year": "2019", + "electricity": "89797.71", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "7274.48", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2416, + "fields": { + "building_id": 289, + "year": "2020", + "electricity": "91900.16", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "7444.99", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2417, + "fields": { + "building_id": 289, + "year": "2021", + "electricity": "93851.39", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "7605.94", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2418, + "fields": { + "building_id": 289, + "year": "2022", + "electricity": "95627.40", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "7750.85", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2419, + "fields": { + "building_id": 289, + "year": "2023", + "electricity": "97371.86", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "7892.45", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2420, + "fields": { + "building_id": 289, + "year": "2024", + "electricity": "99155.59", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "8036.75", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2421, + "fields": { + "building_id": 289, + "year": "2025", + "electricity": "100999.33", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "8186.00", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2422, + "fields": { + "building_id": 289, + "year": "2026", + "electricity": "102987.98", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "8345.65", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2423, + "fields": { + "building_id": 289, + "year": "2027", + "electricity": "105128.49", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "8518.62", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2424, + "fields": { + "building_id": 289, + "year": "2028", + "electricity": "107321.71", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "8696.60", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2425, + "fields": { + "building_id": 289, + "year": "2029", + "electricity": "109516.91", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "8874.94", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2426, + "fields": { + "building_id": 289, + "year": "2030", + "electricity": "111712.78", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "9053.20", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2427, + "fields": { + "building_id": 289, + "year": "2031", + "electricity": "113915.17", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "9232.00", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2428, + "fields": { + "building_id": 289, + "year": "2032", + "electricity": "116143.70", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "9412.61", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2429, + "fields": { + "building_id": 289, + "year": "2033", + "electricity": "118423.26", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "9597.24", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2430, + "fields": { + "building_id": 289, + "year": "2034", + "electricity": "120763.97", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "9786.78", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2431, + "fields": { + "building_id": 289, + "year": "2035", + "electricity": "123168.44", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "9981.49", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2432, + "fields": { + "building_id": 289, + "year": "2036", + "electricity": "125636.99", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "10181.41", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2433, + "fields": { + "building_id": 289, + "year": "2037", + "electricity": "128159.45", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "10385.87", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2434, + "fields": { + "building_id": 289, + "year": "2038", + "electricity": "130723.50", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": "10593.76", + "gas_is_user_input": false + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2485, + "fields": { + "building_id": 2002, + "year": "2014", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2486, + "fields": { + "building_id": 2002, + "year": "2015", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2487, + "fields": { + "building_id": 2002, + "year": "2016", + "electricity": "1000.00", + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": "1100.00", + "oil_is_user_input": true, + "gas": "2000.00", + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2488, + "fields": { + "building_id": 2002, + "year": "2017", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2489, + "fields": { + "building_id": 2002, + "year": "2018", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2490, + "fields": { + "building_id": 2002, + "year": "2019", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2491, + "fields": { + "building_id": 2002, + "year": "2020", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2492, + "fields": { + "building_id": 2002, + "year": "2021", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2493, + "fields": { + "building_id": 2002, + "year": "2022", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2494, + "fields": { + "building_id": 2002, + "year": "2023", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2495, + "fields": { + "building_id": 2002, + "year": "2024", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2496, + "fields": { + "building_id": 2002, + "year": "2025", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2497, + "fields": { + "building_id": 2002, + "year": "2026", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2498, + "fields": { + "building_id": 2002, + "year": "2027", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2499, + "fields": { + "building_id": 2002, + "year": "2028", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2500, + "fields": { + "building_id": 2002, + "year": "2029", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2501, + "fields": { + "building_id": 2002, + "year": "2030", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2502, + "fields": { + "building_id": 2002, + "year": "2031", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2503, + "fields": { + "building_id": 2002, + "year": "2032", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2504, + "fields": { + "building_id": 2002, + "year": "2033", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2505, + "fields": { + "building_id": 2002, + "year": "2034", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2506, + "fields": { + "building_id": 2002, + "year": "2035", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2507, + "fields": { + "building_id": 2002, + "year": "2036", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2508, + "fields": { + "building_id": 2002, + "year": "2037", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2509, + "fields": { + "building_id": 2002, + "year": "2038", + "electricity": null, + "electricity_is_user_input": true, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2510, + "fields": { + "building_id": 2003, + "year": "2014", + "electricity": "82473.13", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2511, + "fields": { + "building_id": 2003, + "year": "2015", + "electricity": "83108.87", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2512, + "fields": { + "building_id": 2003, + "year": "2016", + "electricity": "83839.67", + "electricity_is_user_input": false, + "water": "20000.00", + "water_is_user_input": true, + "oil": "40000.00", + "oil_is_user_input": true, + "gas": "75000.00", + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2513, + "fields": { + "building_id": 2003, + "year": "2017", + "electricity": "85516.56", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2514, + "fields": { + "building_id": 2003, + "year": "2018", + "electricity": "87650.14", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2515, + "fields": { + "building_id": 2003, + "year": "2019", + "electricity": "89797.71", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2516, + "fields": { + "building_id": 2003, + "year": "2020", + "electricity": "91900.16", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2517, + "fields": { + "building_id": 2003, + "year": "2021", + "electricity": "93851.39", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2518, + "fields": { + "building_id": 2003, + "year": "2022", + "electricity": "95627.40", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2519, + "fields": { + "building_id": 2003, + "year": "2023", + "electricity": "97371.86", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2520, + "fields": { + "building_id": 2003, + "year": "2024", + "electricity": "99155.59", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2521, + "fields": { + "building_id": 2003, + "year": "2025", + "electricity": "100999.33", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2522, + "fields": { + "building_id": 2003, + "year": "2026", + "electricity": "102987.98", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2523, + "fields": { + "building_id": 2003, + "year": "2027", + "electricity": "105128.49", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2524, + "fields": { + "building_id": 2003, + "year": "2028", + "electricity": "107321.71", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2525, + "fields": { + "building_id": 2003, + "year": "2029", + "electricity": "109516.91", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2526, + "fields": { + "building_id": 2003, + "year": "2030", + "electricity": "111712.78", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2527, + "fields": { + "building_id": 2003, + "year": "2031", + "electricity": "113915.17", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2528, + "fields": { + "building_id": 2003, + "year": "2032", + "electricity": "116143.70", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2529, + "fields": { + "building_id": 2003, + "year": "2033", + "electricity": "118423.26", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2530, + "fields": { + "building_id": 2003, + "year": "2034", + "electricity": "120763.97", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2531, + "fields": { + "building_id": 2003, + "year": "2035", + "electricity": "123168.44", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2532, + "fields": { + "building_id": 2003, + "year": "2036", + "electricity": "125636.99", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2533, + "fields": { + "building_id": 2003, + "year": "2037", + "electricity": "128159.45", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + }, + { + "model": "financialInputs.billsoverview", + "pk": 2534, + "fields": { + "building_id": 2003, + "year": "2038", + "electricity": "130723.50", + "electricity_is_user_input": false, + "water": null, + "water_is_user_input": true, + "oil": null, + "oil_is_user_input": true, + "gas": null, + "gas_is_user_input": true + } + } +] diff --git a/blocnote/apps/budgetSimulator/fixtures/bills_testdata.json b/blocnote/apps/budgetSimulator/fixtures/bills_testdata.json new file mode 100644 index 0000000..347f9b7 --- /dev/null +++ b/blocnote/apps/budgetSimulator/fixtures/bills_testdata.json @@ -0,0 +1,902 @@ +[ + { + "model": "financialInputs.bills", + "pk": 1, + "fields": { + "building_id": 100, + "date_from": "2015-01-01", + "date_to": "2015-12-31", + "utility_type": "electricity", + "usage": "100.00", + "charge": "5000.00" + } + }, + { + "model": "financialInputs.bills", + "pk": 2, + "fields": { + "building_id": 102, + "date_from": "2015-01-01", + "date_to": "2015-12-31", + "utility_type": "electricity", + "usage": "100.00", + "charge": "5000.00" + } + }, + { + "model": "financialInputs.bills", + "pk": 3, + "fields": { + "building_id": 102, + "date_from": "2014-01-01", + "date_to": "2014-12-31", + "utility_type": "gas", + "usage": "200.00", + "charge": "7000.00" + } + }, + { + "model": "financialInputs.bills", + "pk": 4, + "fields": { + "building_id": 103, + "date_from": "2014-01-01", + "date_to": "2014-12-31", + "utility_type": "electricity", + "usage": "100.00", + "charge": "5000.00" + } + }, + { + "model": "financialInputs.bills", + "pk": 5, + "fields": { + "building_id": 103, + "date_from": "2015-01-01", + "date_to": "2015-12-31", + "utility_type": "electricity", + "usage": "200.00", + "charge": "10000.00" + } + }, + { + "model": "financialInputs.bills", + "pk": 6, + "fields": { + "building_id": 103, + "date_from": "2016-01-01", + "date_to": "2016-12-31", + "utility_type": "electricity", + "usage": "300.00", + "charge": "13000.00" + } + }, + { + "model": "financialInputs.bills", + "pk": 7, + "fields": { + "building_id": 103, + "date_from": "2015-01-01", + "date_to": "2015-12-31", + "utility_type": "gas", + "usage": "200.00", + "charge": "7000.00" + } + }, + { + "model": "financialInputs.bills", + "pk": 8, + "fields": { + "building_id": 103, + "date_from": "2016-01-01", + "date_to": "2016-12-31", + "utility_type": "gas", + "usage": "400.00", + "charge": "9500.00" + } + }, + { + "model": "financialInputs.bills", + "pk": 9, + "fields": { + "building_id": 103, + "date_from": "2015-01-01", + "date_to": "2015-12-31", + "utility_type": "oil", + "usage": "100.00", + "charge": "5000.00" + } + }, + { + "model": "financialInputs.bills", + "pk": 10, + "fields": { + "building_id": 103, + "date_from": "2016-01-01", + "date_to": "2016-12-31", + "utility_type": "oil", + "usage": "250.00", + "charge": "6000.00" + } + }, + { + "model": "financialInputs.bills", + "pk": 11, + "fields": { + "building_id": 103, + "date_from": "2016-01-01", + "date_to": "2016-12-31", + "utility_type": "water", + "usage": "200.00", + "charge": "2000.00" + } + }, + { + "model": "financialInputs.bills", + "pk": 532, + "fields": { + "building_id": 289, + "date_from": "2017-02-22", + "date_to": "2017-03-23", + "utility_type": "electricity", + "usage": "25800.00", + "charge": "4509.82" + } + }, + { + "model": "financialInputs.bills", + "pk": 533, + "fields": { + "building_id": 289, + "date_from": "2016-12-21", + "date_to": "2017-02-22", + "utility_type": "electricity", + "usage": "61800.00", + "charge": "10273.47" + } + }, + { + "model": "financialInputs.bills", + "pk": 534, + "fields": { + "building_id": 289, + "date_from": "2016-11-18", + "date_to": "2016-12-21", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5594.74" + } + }, + { + "model": "financialInputs.bills", + "pk": 535, + "fields": { + "building_id": 289, + "date_from": "2016-10-20", + "date_to": "2016-11-18", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5780.51" + } + }, + { + "model": "financialInputs.bills", + "pk": 536, + "fields": { + "building_id": 289, + "date_from": "2016-09-20", + "date_to": "2016-10-20", + "utility_type": "electricity", + "usage": "37800.00", + "charge": "6412.98" + } + }, + { + "model": "financialInputs.bills", + "pk": 537, + "fields": { + "building_id": 289, + "date_from": "2016-08-19", + "date_to": "2016-09-20", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8708.14" + } + }, + { + "model": "financialInputs.bills", + "pk": 538, + "fields": { + "building_id": 289, + "date_from": "2016-07-21", + "date_to": "2016-08-19", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8845.57" + } + }, + { + "model": "financialInputs.bills", + "pk": 539, + "fields": { + "building_id": 289, + "date_from": "2016-06-21", + "date_to": "2016-07-21", + "utility_type": "electricity", + "usage": "49800.00", + "charge": "8599.52" + } + }, + { + "model": "financialInputs.bills", + "pk": 540, + "fields": { + "building_id": 289, + "date_from": "2016-05-20", + "date_to": "2016-06-21", + "utility_type": "electricity", + "usage": "48600.00", + "charge": "8688.43" + } + }, + { + "model": "financialInputs.bills", + "pk": 541, + "fields": { + "building_id": 289, + "date_from": "2016-04-21", + "date_to": "2016-05-20", + "utility_type": "electricity", + "usage": "34800.00", + "charge": "5446.82" + } + }, + { + "model": "financialInputs.bills", + "pk": 542, + "fields": { + "building_id": 289, + "date_from": "2016-03-23", + "date_to": "2016-04-21", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5424.90" + } + }, + { + "model": "financialInputs.bills", + "pk": 543, + "fields": { + "building_id": 289, + "date_from": "2016-02-23", + "date_to": "2016-03-23", + "utility_type": "electricity", + "usage": "31200.00", + "charge": "5404.15" + } + }, + { + "model": "financialInputs.bills", + "pk": 544, + "fields": { + "building_id": 289, + "date_from": "2016-01-22", + "date_to": "2016-02-23", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5376.68" + } + }, + { + "model": "financialInputs.bills", + "pk": 545, + "fields": { + "building_id": 289, + "date_from": "2015-12-22", + "date_to": "2016-01-22", + "utility_type": "electricity", + "usage": "36600.00", + "charge": "6431.27" + } + }, + { + "model": "financialInputs.bills", + "pk": 546, + "fields": { + "building_id": 289, + "date_from": "2015-11-19", + "date_to": "2015-12-22", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "5829.68" + } + }, + { + "model": "financialInputs.bills", + "pk": 547, + "fields": { + "building_id": 289, + "date_from": "2015-10-21", + "date_to": "2015-11-19", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "6245.07" + } + }, + { + "model": "financialInputs.bills", + "pk": 548, + "fields": { + "building_id": 289, + "date_from": "2015-09-21", + "date_to": "2015-10-21", + "utility_type": "electricity", + "usage": "36600.00", + "charge": "6303.98" + } + }, + { + "model": "financialInputs.bills", + "pk": 549, + "fields": { + "building_id": 289, + "date_from": "2015-08-20", + "date_to": "2015-09-21", + "utility_type": "electricity", + "usage": "54000.00", + "charge": "9611.84" + } + }, + { + "model": "financialInputs.bills", + "pk": 550, + "fields": { + "building_id": 289, + "date_from": "2015-07-22", + "date_to": "2015-08-20", + "utility_type": "electricity", + "usage": "51000.00", + "charge": "9320.90" + } + }, + { + "model": "financialInputs.bills", + "pk": 551, + "fields": { + "building_id": 289, + "date_from": "2015-06-22", + "date_to": "2015-07-22", + "utility_type": "electricity", + "usage": "52800.00", + "charge": "10168.65" + } + }, + { + "model": "financialInputs.bills", + "pk": 552, + "fields": { + "building_id": 289, + "date_from": "2015-05-21", + "date_to": "2015-06-22", + "utility_type": "electricity", + "usage": "49200.00", + "charge": "9277.00" + } + }, + { + "model": "financialInputs.bills", + "pk": 553, + "fields": { + "building_id": 289, + "date_from": "2015-04-22", + "date_to": "2015-05-21", + "utility_type": "electricity", + "usage": "40200.00", + "charge": "7404.47" + } + }, + { + "model": "financialInputs.bills", + "pk": 554, + "fields": { + "building_id": 289, + "date_from": "2015-03-24", + "date_to": "2015-04-22", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "5751.96" + } + }, + { + "model": "financialInputs.bills", + "pk": 555, + "fields": { + "building_id": 289, + "date_from": "2017-02-15", + "date_to": "2017-03-16", + "utility_type": "gas", + "usage": "929.00", + "charge": "1059.41" + } + }, + { + "model": "financialInputs.bills", + "pk": 556, + "fields": { + "building_id": 289, + "date_from": "2017-01-17", + "date_to": "2017-02-15", + "utility_type": "gas", + "usage": "1083.00", + "charge": "1238.53" + } + }, + { + "model": "financialInputs.bills", + "pk": 557, + "fields": { + "building_id": 289, + "date_from": "2016-12-15", + "date_to": "2017-01-17", + "utility_type": "gas", + "usage": "1076.00", + "charge": "1092.90" + } + }, + { + "model": "financialInputs.bills", + "pk": 558, + "fields": { + "building_id": 289, + "date_from": "2016-11-15", + "date_to": "2016-12-15", + "utility_type": "gas", + "usage": "678.00", + "charge": "602.64" + } + }, + { + "model": "financialInputs.bills", + "pk": 559, + "fields": { + "building_id": 289, + "date_from": "2016-10-17", + "date_to": "2016-11-15", + "utility_type": "gas", + "usage": "552.00", + "charge": "441.53" + } + }, + { + "model": "financialInputs.bills", + "pk": 560, + "fields": { + "building_id": 289, + "date_from": "2016-09-16", + "date_to": "2016-10-17", + "utility_type": "gas", + "usage": "232.00", + "charge": "179.35" + } + }, + { + "model": "financialInputs.bills", + "pk": 561, + "fields": { + "building_id": 289, + "date_from": "2016-08-17", + "date_to": "2016-09-16", + "utility_type": "gas", + "usage": "103.00", + "charge": "86.60" + } + }, + { + "model": "financialInputs.bills", + "pk": 562, + "fields": { + "building_id": 289, + "date_from": "2016-07-19", + "date_to": "2016-08-17", + "utility_type": "gas", + "usage": "113.00", + "charge": "101.15" + } + }, + { + "model": "financialInputs.bills", + "pk": 563, + "fields": { + "building_id": 289, + "date_from": "2016-06-17", + "date_to": "2016-07-19", + "utility_type": "gas", + "usage": "224.00", + "charge": "204.29" + } + }, + { + "model": "financialInputs.bills", + "pk": 564, + "fields": { + "building_id": 289, + "date_from": "2016-05-20", + "date_to": "2016-06-17", + "utility_type": "gas", + "usage": "244.00", + "charge": "220.37" + } + }, + { + "model": "financialInputs.bills", + "pk": 565, + "fields": { + "building_id": 289, + "date_from": "2016-04-18", + "date_to": "2016-05-20", + "utility_type": "gas", + "usage": "674.00", + "charge": "552.46" + } + }, + { + "model": "financialInputs.bills", + "pk": 566, + "fields": { + "building_id": 289, + "date_from": "2016-03-16", + "date_to": "2016-04-18", + "utility_type": "gas", + "usage": "986.00", + "charge": "804.96" + } + }, + { + "model": "financialInputs.bills", + "pk": 567, + "fields": { + "building_id": 289, + "date_from": "2016-02-16", + "date_to": "2016-03-16", + "utility_type": "gas", + "usage": "1017.00", + "charge": "898.21" + } + }, + { + "model": "financialInputs.bills", + "pk": 568, + "fields": { + "building_id": 289, + "date_from": "2016-01-15", + "date_to": "2016-02-16", + "utility_type": "gas", + "usage": "1422.00", + "charge": "1243.22" + } + }, + { + "model": "financialInputs.bills", + "pk": 569, + "fields": { + "building_id": 289, + "date_from": "2015-12-15", + "date_to": "2016-01-15", + "utility_type": "gas", + "usage": "1096.00", + "charge": "1042.92" + } + }, + { + "model": "financialInputs.bills", + "pk": 570, + "fields": { + "building_id": 289, + "date_from": "2015-11-13", + "date_to": "2015-12-15", + "utility_type": "gas", + "usage": "934.00", + "charge": "865.51" + } + }, + { + "model": "financialInputs.bills", + "pk": 571, + "fields": { + "building_id": 289, + "date_from": "2015-10-15", + "date_to": "2015-11-13", + "utility_type": "gas", + "usage": "563.00", + "charge": "487.05" + } + }, + { + "model": "financialInputs.bills", + "pk": 572, + "fields": { + "building_id": 289, + "date_from": "2015-09-16", + "date_to": "2015-10-15", + "utility_type": "gas", + "usage": "329.00", + "charge": "275.92" + } + }, + { + "model": "financialInputs.bills", + "pk": 701, + "fields": { + "building_id": 2003, + "date_from": "2017-02-22", + "date_to": "2017-03-23", + "utility_type": "electricity", + "usage": "25800.00", + "charge": "4509.82" + } + }, + { + "model": "financialInputs.bills", + "pk": 702, + "fields": { + "building_id": 2003, + "date_from": "2016-12-21", + "date_to": "2017-02-22", + "utility_type": "electricity", + "usage": "61800.00", + "charge": "10273.47" + } + }, + { + "model": "financialInputs.bills", + "pk": 703, + "fields": { + "building_id": 2003, + "date_from": "2016-11-18", + "date_to": "2016-12-21", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5594.74" + } + }, + { + "model": "financialInputs.bills", + "pk": 704, + "fields": { + "building_id": 2003, + "date_from": "2016-10-20", + "date_to": "2016-11-18", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5780.51" + } + }, + { + "model": "financialInputs.bills", + "pk": 705, + "fields": { + "building_id": 2003, + "date_from": "2016-09-20", + "date_to": "2016-10-20", + "utility_type": "electricity", + "usage": "37800.00", + "charge": "6412.98" + } + }, + { + "model": "financialInputs.bills", + "pk": 706, + "fields": { + "building_id": 2003, + "date_from": "2016-08-19", + "date_to": "2016-09-20", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8708.14" + } + }, + { + "model": "financialInputs.bills", + "pk": 707, + "fields": { + "building_id": 2003, + "date_from": "2016-07-21", + "date_to": "2016-08-19", + "utility_type": "electricity", + "usage": "52200.00", + "charge": "8845.57" + } + }, + { + "model": "financialInputs.bills", + "pk": 708, + "fields": { + "building_id": 2003, + "date_from": "2016-06-21", + "date_to": "2016-07-21", + "utility_type": "electricity", + "usage": "49800.00", + "charge": "8599.52" + } + }, + { + "model": "financialInputs.bills", + "pk": 709, + "fields": { + "building_id": 2003, + "date_from": "2016-05-20", + "date_to": "2016-06-21", + "utility_type": "electricity", + "usage": "48600.00", + "charge": "8688.43" + } + }, + { + "model": "financialInputs.bills", + "pk": 710, + "fields": { + "building_id": 2003, + "date_from": "2016-04-21", + "date_to": "2016-05-20", + "utility_type": "electricity", + "usage": "34800.00", + "charge": "5446.82" + } + }, + { + "model": "financialInputs.bills", + "pk": 711, + "fields": { + "building_id": 2003, + "date_from": "2016-03-23", + "date_to": "2016-04-21", + "utility_type": "electricity", + "usage": "31800.00", + "charge": "5424.90" + } + }, + { + "model": "financialInputs.bills", + "pk": 712, + "fields": { + "building_id": 2003, + "date_from": "2016-02-23", + "date_to": "2016-03-23", + "utility_type": "electricity", + "usage": "31200.00", + "charge": "5404.15" + } + }, + { + "model": "financialInputs.bills", + "pk": 713, + "fields": { + "building_id": 2003, + "date_from": "2016-01-22", + "date_to": "2016-02-23", + "utility_type": "electricity", + "usage": "33600.00", + "charge": "5376.68" + } + }, + { + "model": "financialInputs.bills", + "pk": 714, + "fields": { + "building_id": 2003, + "date_from": "2015-12-22", + "date_to": "2016-01-22", + "utility_type": "electricity", + "usage": "36600.00", + "charge": "6431.27" + } + }, + { + "model": "financialInputs.bills", + "pk": 715, + "fields": { + "building_id": 2003, + "date_from": "2015-11-19", + "date_to": "2015-12-22", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "5829.68" + } + }, + { + "model": "financialInputs.bills", + "pk": 716, + "fields": { + "building_id": 2003, + "date_from": "2015-10-21", + "date_to": "2015-11-19", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "6245.07" + } + }, + { + "model": "financialInputs.bills", + "pk": 717, + "fields": { + "building_id": 2003, + "date_from": "2015-09-21", + "date_to": "2015-10-21", + "utility_type": "electricity", + "usage": "36600.00", + "charge": "6303.98" + } + }, + { + "model": "financialInputs.bills", + "pk": 718, + "fields": { + "building_id": 2003, + "date_from": "2015-08-20", + "date_to": "2015-09-21", + "utility_type": "electricity", + "usage": "54000.00", + "charge": "9611.84" + } + }, + { + "model": "financialInputs.bills", + "pk": 719, + "fields": { + "building_id": 2003, + "date_from": "2015-07-22", + "date_to": "2015-08-20", + "utility_type": "electricity", + "usage": "51000.00", + "charge": "9320.90" + } + }, + { + "model": "financialInputs.bills", + "pk": 720, + "fields": { + "building_id": 2003, + "date_from": "2015-06-22", + "date_to": "2015-07-22", + "utility_type": "electricity", + "usage": "52800.00", + "charge": "10168.65" + } + }, + { + "model": "financialInputs.bills", + "pk": 721, + "fields": { + "building_id": 2003, + "date_from": "2015-05-21", + "date_to": "2015-06-22", + "utility_type": "electricity", + "usage": "49200.00", + "charge": "9277.00" + } + }, + { + "model": "financialInputs.bills", + "pk": 722, + "fields": { + "building_id": 2003, + "date_from": "2015-04-22", + "date_to": "2015-05-21", + "utility_type": "electricity", + "usage": "40200.00", + "charge": "7404.47" + } + }, + { + "model": "financialInputs.bills", + "pk": 723, + "fields": { + "building_id": 2003, + "date_from": "2015-03-24", + "date_to": "2015-04-22", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "5751.96" + } + } +] diff --git a/blocnote/apps/budgetSimulator/fixtures/cash_balance_testdata.json b/blocnote/apps/budgetSimulator/fixtures/cash_balance_testdata.json new file mode 100644 index 0000000..b155e3c --- /dev/null +++ b/blocnote/apps/budgetSimulator/fixtures/cash_balance_testdata.json @@ -0,0 +1,62 @@ +[ + { + "model": "financialInputs.cashbalance", + "pk": 1, + "fields": { + "building_id": 100, + "statement_date": "2016-12-1", + "is_from_balance_sheet": true, + "balance_amount": "20000.00" + } + }, + { + "model": "financialInputs.cashbalance", + "pk": 2, + "fields": { + "building_id": 101, + "statement_date": "2016-12-1", + "is_from_balance_sheet": true, + "balance_amount": "20000.00" + } + }, + { + "model": "financialInputs.cashbalance", + "pk": 3, + "fields": { + "building_id": 101, + "statement_date": "2015-12-1", + "is_from_balance_sheet": false, + "balance_amount": "30000.00" + } + }, + { + "model": "financialInputs.cashbalance", + "pk": 73, + "fields": { + "building_id": 289, + "statement_date": "2016-12-21", + "is_from_balance_sheet": true, + "balance_amount": "50000.00" + } + }, + { + "model": "financialInputs.cashbalance", + "pk": 75, + "fields": { + "building_id": 2002, + "statement_date": "2016-12-01", + "is_from_balance_sheet": true, + "balance_amount": "25000.00" + } + }, + { + "model": "financialInputs.cashbalance", + "pk": 76, + "fields": { + "building_id": 2003, + "statement_date": "2015-12-10", + "is_from_balance_sheet": true, + "balance_amount": "25000.00" + } + } +] diff --git a/blocnote/apps/budgetSimulator/fixtures/customer_preference_testdata.json b/blocnote/apps/budgetSimulator/fixtures/customer_preference_testdata.json new file mode 100644 index 0000000..b93a33d --- /dev/null +++ b/blocnote/apps/budgetSimulator/fixtures/customer_preference_testdata.json @@ -0,0 +1,42 @@ +[ + { + "model": "financialInputs.customerpreference", + "pk": 1, + "fields": { + "building_id": 100, + "downpayment": "100.00", + "expected_payback": "10", + "expected_net_noi_dscr": "1.15" + } + }, + { + "model": "financialInputs.customerpreference", + "pk": 5, + "fields": { + "building_id": 289, + "downpayment": "50000.00", + "expected_payback": "12", + "expected_net_noi_dscr": "1.15" + } + }, + { + "model": "financialInputs.customerpreference", + "pk": 12, + "fields": { + "building_id": 2002, + "downpayment": "0.00", + "expected_payback": "120", + "expected_net_noi_dscr": "1.15" + } + }, + { + "model": "financialInputs.customerpreference", + "pk": 13, + "fields": { + "building_id": 2003, + "downpayment": "0.00", + "expected_payback": "120", + "expected_net_noi_dscr": "1.15" + } + } +] diff --git a/blocnote/apps/budgetSimulator/fixtures/default_loan_testdata.json b/blocnote/apps/budgetSimulator/fixtures/default_loan_testdata.json new file mode 100644 index 0000000..fe300d0 --- /dev/null +++ b/blocnote/apps/budgetSimulator/fixtures/default_loan_testdata.json @@ -0,0 +1,68 @@ +[ + { + "model": "financialInputs.defaultloan", + "pk": 1, + "fields": { + "lender": 1, + "fund": 1, + "interest_rate": "7.000", + "duration": "84", + "max_loan_amount": "5000000.00" + } + }, + { + "model": "financialInputs.defaultloan", + "pk": 2, + "fields": { + "lender": 2, + "fund": 1, + "interest_rate": "8.000", + "duration": "96", + "max_loan_amount": "7000000.00" + } + }, + { + "model": "financialInputs.defaultloan", + "pk": 3, + "fields": { + "lender": 3, + "fund": 1, + "interest_rate": "10.000", + "duration": "72", + "max_loan_amount": "10000000.00" + } + }, + { + "model": "financialInputs.defaultloan", + "pk": 4, + "fields": { + "lender": 4, + "fund": 2, + "interest_rate": "4.500", + "duration": "120", + "max_loan_amount": "8000000.00" + } + }, + { + "model": "financialInputs.defaultloan", + "pk": 5, + "fields": { + "lender": 5, + "fund": 2, + "interest_rate": "4.500", + "duration": "120", + "max_loan_amount": "2000000.00" + } + }, + { + "model": "financialInputs.defaultloan", + "pk": 6, + "fields": { + "lender": 2, + "fund": 2, + "interest_rate": "7.000", + "duration": "84", + "max_loan_amount": "2000000.00" + } + } +] diff --git a/blocnote/apps/budgetSimulator/fixtures/estimation_algorithm_testdata.json b/blocnote/apps/budgetSimulator/fixtures/estimation_algorithm_testdata.json new file mode 100644 index 0000000..742f09c --- /dev/null +++ b/blocnote/apps/budgetSimulator/fixtures/estimation_algorithm_testdata.json @@ -0,0 +1,26 @@ +[ + { + "model": "financialInputs.estimationalgorithm", + "pk": 6, + "fields": { + "algorithm": "Rough Estimation", + "building_id": 289 + } + }, + { + "model": "financialInputs.estimationalgorithm", + "pk": 15, + "fields": { + "algorithm": "Rough Estimation", + "building_id": 2002 + } + }, + { + "model": "financialInputs.estimationalgorithm", + "pk": 16, + "fields": { + "algorithm": "Rough Estimation", + "building_id": 2003 + } + } +] diff --git a/blocnote/apps/budgetSimulator/fixtures/financialInputs_views_testdata.json b/blocnote/apps/budgetSimulator/fixtures/financialInputs_views_testdata.json deleted file mode 100644 index a457b07..0000000 --- a/blocnote/apps/budgetSimulator/fixtures/financialInputs_views_testdata.json +++ /dev/null @@ -1,2409 +0,0 @@ -[ -{ - "model": "financialInputs.fund", - "pk": 1, - "fields": { - "Name": "Small Commercial Fund" - } -}, -{ - "model": "financialInputs.fund", - "pk": 2, - "fields": { - "Name": "Bronx Healthy Buildings Fund" - } -}, -{ - "model": "financialInputs.financingoverview", - "pk": 94, - "fields": { - "building_id": 289, - "fund": 1, - "required_noi_dscr": "0.00", - "requrired_cash_dscr": "0.00", - "pro_forma_start_date": "2014-01-01", - "pro_forma_duration": "25", - "analysis_date": "2017-05-18", - "anticipated_construction_start_date": "2017-05-03", - "anticipated_commissioning_date": "2017-07-07", - "anticipated_construction_period": "100" - } -}, -{ - "model": "financialInputs.financingoverview", - "pk": 95, - "fields": { - "building_id": 2001, - "fund": 1, - "required_noi_dscr": "0.00", - "requrired_cash_dscr": "0.00", - "pro_forma_start_date": "2014-01-01", - "pro_forma_duration": "25", - "analysis_date": "2017-06-05", - "anticipated_construction_start_date": "2017-07-01", - "anticipated_commissioning_date": "2017-08-01", - "anticipated_construction_period": "4" - } -}, -{ - "model": "financialInputs.financingoverview", - "pk": 96, - "fields": { - "building_id": 2002, - "fund": 1, - "required_noi_dscr": "1.15", - "requrired_cash_dscr": "1.15", - "pro_forma_start_date": "2014-01-01", - "pro_forma_duration": "25", - "analysis_date": "2017-06-05", - "anticipated_construction_start_date": "2017-07-01", - "anticipated_commissioning_date": "2017-08-01", - "anticipated_construction_period": "4" - } -}, -{ - "model": "financialInputs.financingoverview", - "pk": 97, - "fields": { - "building_id": 2003, - "fund": 1, - "required_noi_dscr": "1.15", - "requrired_cash_dscr": "1.15", - "pro_forma_start_date": "2014-01-01", - "pro_forma_duration": "25", - "analysis_date": "2017-06-05", - "anticipated_construction_start_date": "2017-07-01", - "anticipated_commissioning_date": "2017-08-01", - "anticipated_construction_period": "4" - } -}, -{ - "model": "financialInputs.bills", - "pk": 532, - "fields": { - "building_id": 289, - "date_from": "2017-02-22", - "date_to": "2017-03-23", - "utility_type": "electricity", - "usage": "25800.00", - "charge": "4509.82" - } -}, -{ - "model": "financialInputs.bills", - "pk": 533, - "fields": { - "building_id": 289, - "date_from": "2016-12-21", - "date_to": "2017-02-22", - "utility_type": "electricity", - "usage": "61800.00", - "charge": "10273.47" - } -}, -{ - "model": "financialInputs.bills", - "pk": 534, - "fields": { - "building_id": 289, - "date_from": "2016-11-18", - "date_to": "2016-12-21", - "utility_type": "electricity", - "usage": "33600.00", - "charge": "5594.74" - } -}, -{ - "model": "financialInputs.bills", - "pk": 535, - "fields": { - "building_id": 289, - "date_from": "2016-10-20", - "date_to": "2016-11-18", - "utility_type": "electricity", - "usage": "31800.00", - "charge": "5780.51" - } -}, -{ - "model": "financialInputs.bills", - "pk": 536, - "fields": { - "building_id": 289, - "date_from": "2016-09-20", - "date_to": "2016-10-20", - "utility_type": "electricity", - "usage": "37800.00", - "charge": "6412.98" - } -}, -{ - "model": "financialInputs.bills", - "pk": 537, - "fields": { - "building_id": 289, - "date_from": "2016-08-19", - "date_to": "2016-09-20", - "utility_type": "electricity", - "usage": "52200.00", - "charge": "8708.14" - } -}, -{ - "model": "financialInputs.bills", - "pk": 538, - "fields": { - "building_id": 289, - "date_from": "2016-07-21", - "date_to": "2016-08-19", - "utility_type": "electricity", - "usage": "52200.00", - "charge": "8845.57" - } -}, -{ - "model": "financialInputs.bills", - "pk": 539, - "fields": { - "building_id": 289, - "date_from": "2016-06-21", - "date_to": "2016-07-21", - "utility_type": "electricity", - "usage": "49800.00", - "charge": "8599.52" - } -}, -{ - "model": "financialInputs.bills", - "pk": 540, - "fields": { - "building_id": 289, - "date_from": "2016-05-20", - "date_to": "2016-06-21", - "utility_type": "electricity", - "usage": "48600.00", - "charge": "8688.43" - } -}, -{ - "model": "financialInputs.bills", - "pk": 541, - "fields": { - "building_id": 289, - "date_from": "2016-04-21", - "date_to": "2016-05-20", - "utility_type": "electricity", - "usage": "34800.00", - "charge": "5446.82" - } -}, -{ - "model": "financialInputs.bills", - "pk": 542, - "fields": { - "building_id": 289, - "date_from": "2016-03-23", - "date_to": "2016-04-21", - "utility_type": "electricity", - "usage": "31800.00", - "charge": "5424.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 543, - "fields": { - "building_id": 289, - "date_from": "2016-02-23", - "date_to": "2016-03-23", - "utility_type": "electricity", - "usage": "31200.00", - "charge": "5404.15" - } -}, -{ - "model": "financialInputs.bills", - "pk": 544, - "fields": { - "building_id": 289, - "date_from": "2016-01-22", - "date_to": "2016-02-23", - "utility_type": "electricity", - "usage": "33600.00", - "charge": "5376.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 545, - "fields": { - "building_id": 289, - "date_from": "2015-12-22", - "date_to": "2016-01-22", - "utility_type": "electricity", - "usage": "36600.00", - "charge": "6431.27" - } -}, -{ - "model": "financialInputs.bills", - "pk": 546, - "fields": { - "building_id": 289, - "date_from": "2015-11-19", - "date_to": "2015-12-22", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "5829.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 547, - "fields": { - "building_id": 289, - "date_from": "2015-10-21", - "date_to": "2015-11-19", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "6245.07" - } -}, -{ - "model": "financialInputs.bills", - "pk": 548, - "fields": { - "building_id": 289, - "date_from": "2015-09-21", - "date_to": "2015-10-21", - "utility_type": "electricity", - "usage": "36600.00", - "charge": "6303.98" - } -}, -{ - "model": "financialInputs.bills", - "pk": 549, - "fields": { - "building_id": 289, - "date_from": "2015-08-20", - "date_to": "2015-09-21", - "utility_type": "electricity", - "usage": "54000.00", - "charge": "9611.84" - } -}, -{ - "model": "financialInputs.bills", - "pk": 550, - "fields": { - "building_id": 289, - "date_from": "2015-07-22", - "date_to": "2015-08-20", - "utility_type": "electricity", - "usage": "51000.00", - "charge": "9320.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 551, - "fields": { - "building_id": 289, - "date_from": "2015-06-22", - "date_to": "2015-07-22", - "utility_type": "electricity", - "usage": "52800.00", - "charge": "10168.65" - } -}, -{ - "model": "financialInputs.bills", - "pk": 552, - "fields": { - "building_id": 289, - "date_from": "2015-05-21", - "date_to": "2015-06-22", - "utility_type": "electricity", - "usage": "49200.00", - "charge": "9277.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 553, - "fields": { - "building_id": 289, - "date_from": "2015-04-22", - "date_to": "2015-05-21", - "utility_type": "electricity", - "usage": "40200.00", - "charge": "7404.47" - } -}, -{ - "model": "financialInputs.bills", - "pk": 554, - "fields": { - "building_id": 289, - "date_from": "2015-03-24", - "date_to": "2015-04-22", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "5751.96" - } -}, -{ - "model": "financialInputs.bills", - "pk": 555, - "fields": { - "building_id": 289, - "date_from": "2017-02-15", - "date_to": "2017-03-16", - "utility_type": "gas", - "usage": "929.00", - "charge": "1059.41" - } -}, -{ - "model": "financialInputs.bills", - "pk": 556, - "fields": { - "building_id": 289, - "date_from": "2017-01-17", - "date_to": "2017-02-15", - "utility_type": "gas", - "usage": "1083.00", - "charge": "1238.53" - } -}, -{ - "model": "financialInputs.bills", - "pk": 557, - "fields": { - "building_id": 289, - "date_from": "2016-12-15", - "date_to": "2017-01-17", - "utility_type": "gas", - "usage": "1076.00", - "charge": "1092.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 558, - "fields": { - "building_id": 289, - "date_from": "2016-11-15", - "date_to": "2016-12-15", - "utility_type": "gas", - "usage": "678.00", - "charge": "602.64" - } -}, -{ - "model": "financialInputs.bills", - "pk": 559, - "fields": { - "building_id": 289, - "date_from": "2016-10-17", - "date_to": "2016-11-15", - "utility_type": "gas", - "usage": "552.00", - "charge": "441.53" - } -}, -{ - "model": "financialInputs.bills", - "pk": 560, - "fields": { - "building_id": 289, - "date_from": "2016-09-16", - "date_to": "2016-10-17", - "utility_type": "gas", - "usage": "232.00", - "charge": "179.35" - } -}, -{ - "model": "financialInputs.bills", - "pk": 561, - "fields": { - "building_id": 289, - "date_from": "2016-08-17", - "date_to": "2016-09-16", - "utility_type": "gas", - "usage": "103.00", - "charge": "86.60" - } -}, -{ - "model": "financialInputs.bills", - "pk": 562, - "fields": { - "building_id": 289, - "date_from": "2016-07-19", - "date_to": "2016-08-17", - "utility_type": "gas", - "usage": "113.00", - "charge": "101.15" - } -}, -{ - "model": "financialInputs.bills", - "pk": 563, - "fields": { - "building_id": 289, - "date_from": "2016-06-17", - "date_to": "2016-07-19", - "utility_type": "gas", - "usage": "224.00", - "charge": "204.29" - } -}, -{ - "model": "financialInputs.bills", - "pk": 564, - "fields": { - "building_id": 289, - "date_from": "2016-05-20", - "date_to": "2016-06-17", - "utility_type": "gas", - "usage": "244.00", - "charge": "220.37" - } -}, -{ - "model": "financialInputs.bills", - "pk": 565, - "fields": { - "building_id": 289, - "date_from": "2016-04-18", - "date_to": "2016-05-20", - "utility_type": "gas", - "usage": "674.00", - "charge": "552.46" - } -}, -{ - "model": "financialInputs.bills", - "pk": 566, - "fields": { - "building_id": 289, - "date_from": "2016-03-16", - "date_to": "2016-04-18", - "utility_type": "gas", - "usage": "986.00", - "charge": "804.96" - } -}, -{ - "model": "financialInputs.bills", - "pk": 567, - "fields": { - "building_id": 289, - "date_from": "2016-02-16", - "date_to": "2016-03-16", - "utility_type": "gas", - "usage": "1017.00", - "charge": "898.21" - } -}, -{ - "model": "financialInputs.bills", - "pk": 568, - "fields": { - "building_id": 289, - "date_from": "2016-01-15", - "date_to": "2016-02-16", - "utility_type": "gas", - "usage": "1422.00", - "charge": "1243.22" - } -}, -{ - "model": "financialInputs.bills", - "pk": 569, - "fields": { - "building_id": 289, - "date_from": "2015-12-15", - "date_to": "2016-01-15", - "utility_type": "gas", - "usage": "1096.00", - "charge": "1042.92" - } -}, -{ - "model": "financialInputs.bills", - "pk": 570, - "fields": { - "building_id": 289, - "date_from": "2015-11-13", - "date_to": "2015-12-15", - "utility_type": "gas", - "usage": "934.00", - "charge": "865.51" - } -}, -{ - "model": "financialInputs.bills", - "pk": 571, - "fields": { - "building_id": 289, - "date_from": "2015-10-15", - "date_to": "2015-11-13", - "utility_type": "gas", - "usage": "563.00", - "charge": "487.05" - } -}, -{ - "model": "financialInputs.bills", - "pk": 572, - "fields": { - "building_id": 289, - "date_from": "2015-09-16", - "date_to": "2015-10-15", - "utility_type": "gas", - "usage": "329.00", - "charge": "275.92" - } -}, -{ - "model": "financialInputs.bills", - "pk": 701, - "fields": { - "building_id": 2003, - "date_from": "2017-02-22", - "date_to": "2017-03-23", - "utility_type": "electricity", - "usage": "25800.00", - "charge": "4509.82" - } -}, -{ - "model": "financialInputs.bills", - "pk": 702, - "fields": { - "building_id": 2003, - "date_from": "2016-12-21", - "date_to": "2017-02-22", - "utility_type": "electricity", - "usage": "61800.00", - "charge": "10273.47" - } -}, -{ - "model": "financialInputs.bills", - "pk": 703, - "fields": { - "building_id": 2003, - "date_from": "2016-11-18", - "date_to": "2016-12-21", - "utility_type": "electricity", - "usage": "33600.00", - "charge": "5594.74" - } -}, -{ - "model": "financialInputs.bills", - "pk": 704, - "fields": { - "building_id": 2003, - "date_from": "2016-10-20", - "date_to": "2016-11-18", - "utility_type": "electricity", - "usage": "31800.00", - "charge": "5780.51" - } -}, -{ - "model": "financialInputs.bills", - "pk": 705, - "fields": { - "building_id": 2003, - "date_from": "2016-09-20", - "date_to": "2016-10-20", - "utility_type": "electricity", - "usage": "37800.00", - "charge": "6412.98" - } -}, -{ - "model": "financialInputs.bills", - "pk": 706, - "fields": { - "building_id": 2003, - "date_from": "2016-08-19", - "date_to": "2016-09-20", - "utility_type": "electricity", - "usage": "52200.00", - "charge": "8708.14" - } -}, -{ - "model": "financialInputs.bills", - "pk": 707, - "fields": { - "building_id": 2003, - "date_from": "2016-07-21", - "date_to": "2016-08-19", - "utility_type": "electricity", - "usage": "52200.00", - "charge": "8845.57" - } -}, -{ - "model": "financialInputs.bills", - "pk": 708, - "fields": { - "building_id": 2003, - "date_from": "2016-06-21", - "date_to": "2016-07-21", - "utility_type": "electricity", - "usage": "49800.00", - "charge": "8599.52" - } -}, -{ - "model": "financialInputs.bills", - "pk": 709, - "fields": { - "building_id": 2003, - "date_from": "2016-05-20", - "date_to": "2016-06-21", - "utility_type": "electricity", - "usage": "48600.00", - "charge": "8688.43" - } -}, -{ - "model": "financialInputs.bills", - "pk": 710, - "fields": { - "building_id": 2003, - "date_from": "2016-04-21", - "date_to": "2016-05-20", - "utility_type": "electricity", - "usage": "34800.00", - "charge": "5446.82" - } -}, -{ - "model": "financialInputs.bills", - "pk": 711, - "fields": { - "building_id": 2003, - "date_from": "2016-03-23", - "date_to": "2016-04-21", - "utility_type": "electricity", - "usage": "31800.00", - "charge": "5424.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 712, - "fields": { - "building_id": 2003, - "date_from": "2016-02-23", - "date_to": "2016-03-23", - "utility_type": "electricity", - "usage": "31200.00", - "charge": "5404.15" - } -}, -{ - "model": "financialInputs.bills", - "pk": 713, - "fields": { - "building_id": 2003, - "date_from": "2016-01-22", - "date_to": "2016-02-23", - "utility_type": "electricity", - "usage": "33600.00", - "charge": "5376.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 714, - "fields": { - "building_id": 2003, - "date_from": "2015-12-22", - "date_to": "2016-01-22", - "utility_type": "electricity", - "usage": "36600.00", - "charge": "6431.27" - } -}, -{ - "model": "financialInputs.bills", - "pk": 715, - "fields": { - "building_id": 2003, - "date_from": "2015-11-19", - "date_to": "2015-12-22", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "5829.68" - } -}, -{ - "model": "financialInputs.bills", - "pk": 716, - "fields": { - "building_id": 2003, - "date_from": "2015-10-21", - "date_to": "2015-11-19", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "6245.07" - } -}, -{ - "model": "financialInputs.bills", - "pk": 717, - "fields": { - "building_id": 2003, - "date_from": "2015-09-21", - "date_to": "2015-10-21", - "utility_type": "electricity", - "usage": "36600.00", - "charge": "6303.98" - } -}, -{ - "model": "financialInputs.bills", - "pk": 718, - "fields": { - "building_id": 2003, - "date_from": "2015-08-20", - "date_to": "2015-09-21", - "utility_type": "electricity", - "usage": "54000.00", - "charge": "9611.84" - } -}, -{ - "model": "financialInputs.bills", - "pk": 719, - "fields": { - "building_id": 2003, - "date_from": "2015-07-22", - "date_to": "2015-08-20", - "utility_type": "electricity", - "usage": "51000.00", - "charge": "9320.90" - } -}, -{ - "model": "financialInputs.bills", - "pk": 720, - "fields": { - "building_id": 2003, - "date_from": "2015-06-22", - "date_to": "2015-07-22", - "utility_type": "electricity", - "usage": "52800.00", - "charge": "10168.65" - } -}, -{ - "model": "financialInputs.bills", - "pk": 721, - "fields": { - "building_id": 2003, - "date_from": "2015-05-21", - "date_to": "2015-06-22", - "utility_type": "electricity", - "usage": "49200.00", - "charge": "9277.00" - } -}, -{ - "model": "financialInputs.bills", - "pk": 722, - "fields": { - "building_id": 2003, - "date_from": "2015-04-22", - "date_to": "2015-05-21", - "utility_type": "electricity", - "usage": "40200.00", - "charge": "7404.47" - } -}, -{ - "model": "financialInputs.bills", - "pk": 723, - "fields": { - "building_id": 2003, - "date_from": "2015-03-24", - "date_to": "2015-04-22", - "utility_type": "electricity", - "usage": "36000.00", - "charge": "5751.96" - } -}, -{ - "model": "financialInputs.estimationalgorithm", - "pk": 6, - "fields": { - "algorithm": "Rough Estimation", - "building_id": 289 - } -}, -{ - "model": "financialInputs.estimationalgorithm", - "pk": 15, - "fields": { - "algorithm": "Rough Estimation", - "building_id": 2002 - } -}, -{ - "model": "financialInputs.estimationalgorithm", - "pk": 16, - "fields": { - "algorithm": "Rough Estimation", - "building_id": 2003 - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2410, - "fields": { - "building_id": 289, - "year": "2014", - "electricity": "82473.13", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "6686.16", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2411, - "fields": { - "building_id": 289, - "year": "2015", - "electricity": "83108.87", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": "18000.00", - "oil_is_user_input": true, - "gas": "6748.39", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2412, - "fields": { - "building_id": 289, - "year": "2016", - "electricity": "83839.67", - "electricity_is_user_input": false, - "water": "2000.00", - "water_is_user_input": true, - "oil": "20000.00", - "oil_is_user_input": true, - "gas": "6797.83", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2413, - "fields": { - "building_id": 289, - "year": "2017", - "electricity": "85516.56", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "6927.36", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2414, - "fields": { - "building_id": 289, - "year": "2018", - "electricity": "87650.14", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "7098.94", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2415, - "fields": { - "building_id": 289, - "year": "2019", - "electricity": "89797.71", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "7274.48", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2416, - "fields": { - "building_id": 289, - "year": "2020", - "electricity": "91900.16", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "7444.99", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2417, - "fields": { - "building_id": 289, - "year": "2021", - "electricity": "93851.39", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "7605.94", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2418, - "fields": { - "building_id": 289, - "year": "2022", - "electricity": "95627.40", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "7750.85", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2419, - "fields": { - "building_id": 289, - "year": "2023", - "electricity": "97371.86", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "7892.45", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2420, - "fields": { - "building_id": 289, - "year": "2024", - "electricity": "99155.59", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "8036.75", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2421, - "fields": { - "building_id": 289, - "year": "2025", - "electricity": "100999.33", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "8186.00", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2422, - "fields": { - "building_id": 289, - "year": "2026", - "electricity": "102987.98", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "8345.65", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2423, - "fields": { - "building_id": 289, - "year": "2027", - "electricity": "105128.49", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "8518.62", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2424, - "fields": { - "building_id": 289, - "year": "2028", - "electricity": "107321.71", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "8696.60", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2425, - "fields": { - "building_id": 289, - "year": "2029", - "electricity": "109516.91", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "8874.94", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2426, - "fields": { - "building_id": 289, - "year": "2030", - "electricity": "111712.78", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "9053.20", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2427, - "fields": { - "building_id": 289, - "year": "2031", - "electricity": "113915.17", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "9232.00", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2428, - "fields": { - "building_id": 289, - "year": "2032", - "electricity": "116143.70", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "9412.61", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2429, - "fields": { - "building_id": 289, - "year": "2033", - "electricity": "118423.26", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "9597.24", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2430, - "fields": { - "building_id": 289, - "year": "2034", - "electricity": "120763.97", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "9786.78", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2431, - "fields": { - "building_id": 289, - "year": "2035", - "electricity": "123168.44", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "9981.49", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2432, - "fields": { - "building_id": 289, - "year": "2036", - "electricity": "125636.99", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "10181.41", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2433, - "fields": { - "building_id": 289, - "year": "2037", - "electricity": "128159.45", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "10385.87", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2434, - "fields": { - "building_id": 289, - "year": "2038", - "electricity": "130723.50", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": "10593.76", - "gas_is_user_input": false - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2485, - "fields": { - "building_id": 2002, - "year": "2014", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2486, - "fields": { - "building_id": 2002, - "year": "2015", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2487, - "fields": { - "building_id": 2002, - "year": "2016", - "electricity": "1000.00", - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": "1100.00", - "oil_is_user_input": true, - "gas": "2000.00", - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2488, - "fields": { - "building_id": 2002, - "year": "2017", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2489, - "fields": { - "building_id": 2002, - "year": "2018", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2490, - "fields": { - "building_id": 2002, - "year": "2019", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2491, - "fields": { - "building_id": 2002, - "year": "2020", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2492, - "fields": { - "building_id": 2002, - "year": "2021", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2493, - "fields": { - "building_id": 2002, - "year": "2022", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2494, - "fields": { - "building_id": 2002, - "year": "2023", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2495, - "fields": { - "building_id": 2002, - "year": "2024", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2496, - "fields": { - "building_id": 2002, - "year": "2025", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2497, - "fields": { - "building_id": 2002, - "year": "2026", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2498, - "fields": { - "building_id": 2002, - "year": "2027", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2499, - "fields": { - "building_id": 2002, - "year": "2028", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2500, - "fields": { - "building_id": 2002, - "year": "2029", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2501, - "fields": { - "building_id": 2002, - "year": "2030", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2502, - "fields": { - "building_id": 2002, - "year": "2031", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2503, - "fields": { - "building_id": 2002, - "year": "2032", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2504, - "fields": { - "building_id": 2002, - "year": "2033", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2505, - "fields": { - "building_id": 2002, - "year": "2034", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2506, - "fields": { - "building_id": 2002, - "year": "2035", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2507, - "fields": { - "building_id": 2002, - "year": "2036", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2508, - "fields": { - "building_id": 2002, - "year": "2037", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2509, - "fields": { - "building_id": 2002, - "year": "2038", - "electricity": null, - "electricity_is_user_input": true, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2510, - "fields": { - "building_id": 2003, - "year": "2014", - "electricity": "82473.13", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2511, - "fields": { - "building_id": 2003, - "year": "2015", - "electricity": "83108.87", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2512, - "fields": { - "building_id": 2003, - "year": "2016", - "electricity": "83839.67", - "electricity_is_user_input": false, - "water": "20000.00", - "water_is_user_input": true, - "oil": "40000.00", - "oil_is_user_input": true, - "gas": "75000.00", - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2513, - "fields": { - "building_id": 2003, - "year": "2017", - "electricity": "85516.56", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2514, - "fields": { - "building_id": 2003, - "year": "2018", - "electricity": "87650.14", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2515, - "fields": { - "building_id": 2003, - "year": "2019", - "electricity": "89797.71", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2516, - "fields": { - "building_id": 2003, - "year": "2020", - "electricity": "91900.16", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2517, - "fields": { - "building_id": 2003, - "year": "2021", - "electricity": "93851.39", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2518, - "fields": { - "building_id": 2003, - "year": "2022", - "electricity": "95627.40", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2519, - "fields": { - "building_id": 2003, - "year": "2023", - "electricity": "97371.86", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2520, - "fields": { - "building_id": 2003, - "year": "2024", - "electricity": "99155.59", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2521, - "fields": { - "building_id": 2003, - "year": "2025", - "electricity": "100999.33", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2522, - "fields": { - "building_id": 2003, - "year": "2026", - "electricity": "102987.98", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2523, - "fields": { - "building_id": 2003, - "year": "2027", - "electricity": "105128.49", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2524, - "fields": { - "building_id": 2003, - "year": "2028", - "electricity": "107321.71", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2525, - "fields": { - "building_id": 2003, - "year": "2029", - "electricity": "109516.91", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2526, - "fields": { - "building_id": 2003, - "year": "2030", - "electricity": "111712.78", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2527, - "fields": { - "building_id": 2003, - "year": "2031", - "electricity": "113915.17", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2528, - "fields": { - "building_id": 2003, - "year": "2032", - "electricity": "116143.70", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2529, - "fields": { - "building_id": 2003, - "year": "2033", - "electricity": "118423.26", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2530, - "fields": { - "building_id": 2003, - "year": "2034", - "electricity": "120763.97", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2531, - "fields": { - "building_id": 2003, - "year": "2035", - "electricity": "123168.44", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2532, - "fields": { - "building_id": 2003, - "year": "2036", - "electricity": "125636.99", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2533, - "fields": { - "building_id": 2003, - "year": "2037", - "electricity": "128159.45", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.billsoverview", - "pk": 2534, - "fields": { - "building_id": 2003, - "year": "2038", - "electricity": "130723.50", - "electricity_is_user_input": false, - "water": null, - "water_is_user_input": true, - "oil": null, - "oil_is_user_input": true, - "gas": null, - "gas_is_user_input": true - } -}, -{ - "model": "financialInputs.customerpreference", - "pk": 5, - "fields": { - "building_id": 289, - "downpayment": "50000.00", - "expected_payback": "12", - "expected_net_noi_dscr": "1.15" - } -}, -{ - "model": "financialInputs.customerpreference", - "pk": 12, - "fields": { - "building_id": 2002, - "downpayment": "0.00", - "expected_payback": "120", - "expected_net_noi_dscr": "1.15" - } -}, -{ - "model": "financialInputs.customerpreference", - "pk": 13, - "fields": { - "building_id": 2003, - "downpayment": "0.00", - "expected_payback": "120", - "expected_net_noi_dscr": "1.15" - } -}, -{ - "model": "financialInputs.liabilities", - "pk": 54, - "fields": { - "building_id": 289, - "input_date": "2017-05-11", - "lender": "Adarsh Murthy", - "monthly_service": "120.00", - "remaining_term": "100" - } -}, -{ - "model": "financialInputs.cashbalance", - "pk": 73, - "fields": { - "building_id": 289, - "statement_date": "2016-12-21", - "is_from_balance_sheet": true, - "balance_amount": "50000.00" - } -}, -{ - "model": "financialInputs.cashbalance", - "pk": 75, - "fields": { - "building_id": 2002, - "statement_date": "2016-12-01", - "is_from_balance_sheet": true, - "balance_amount": "25000.00" - } -}, -{ - "model": "financialInputs.cashbalance", - "pk": 76, - "fields": { - "building_id": 2003, - "statement_date": "2015-12-10", - "is_from_balance_sheet": true, - "balance_amount": "25000.00" - } -}, -{ - "model": "financialInputs.incomestatement", - "pk": 587, - "fields": { - "building_id": 289, - "year": "2014", - "revenue": "200000.00", - "utility_expense": "94000.00", - "other_utility_expense": "-14159.29", - "non_utility_operating_expense": "50000.00" - } -}, -{ - "model": "financialInputs.incomestatement", - "pk": 588, - "fields": { - "building_id": 289, - "year": "2015", - "revenue": "210000.00", - "utility_expense": "95000.00", - "other_utility_expense": "-12857.26", - "non_utility_operating_expense": "55000.00" - } -}, -{ - "model": "financialInputs.incomestatement", - "pk": 589, - "fields": { - "building_id": 289, - "year": "2016", - "revenue": "213000.00", - "utility_expense": "96000.00", - "other_utility_expense": "-14637.50", - "non_utility_operating_expense": "60000.00" - } -}, -{ - "model": "financialInputs.incomestatement", - "pk": 590, - "fields": { - "building_id": 2002, - "year": "2014", - "revenue": "200000.00", - "utility_expense": "100000.00", - "other_utility_expense": "93700.00", - "non_utility_operating_expense": "50000.00" - } -}, -{ - "model": "financialInputs.incomestatement", - "pk": 591, - "fields": { - "building_id": 2002, - "year": "2015", - "revenue": "201000.00", - "utility_expense": "105000.00", - "other_utility_expense": "98700.00", - "non_utility_operating_expense": "58000.00" - } -}, -{ - "model": "financialInputs.incomestatement", - "pk": 592, - "fields": { - "building_id": 2002, - "year": "2016", - "revenue": "202000.00", - "utility_expense": "110000.00", - "other_utility_expense": "103700.00", - "non_utility_operating_expense": "62000.00" - } -}, -{ - "model": "financialInputs.incomestatement", - "pk": 593, - "fields": { - "building_id": 2003, - "year": "2014", - "revenue": "210000.00", - "utility_expense": "90000.00", - "other_utility_expense": "-127473.13", - "non_utility_operating_expense": "40000.00" - } -}, -{ - "model": "financialInputs.incomestatement", - "pk": 594, - "fields": { - "building_id": 2003, - "year": "2015", - "revenue": "214000.00", - "utility_expense": "99000.00", - "other_utility_expense": "-119108.87", - "non_utility_operating_expense": "44000.00" - } -}, -{ - "model": "financialInputs.incomestatement", - "pk": 595, - "fields": { - "building_id": 2003, - "year": "2016", - "revenue": "219000.00", - "utility_expense": "108000.00", - "other_utility_expense": "-110839.67", - "non_utility_operating_expense": "50000.00" - } -}, -{ - "model": "financialInputs.lender", - "pk": 1, - "fields": { - "name": "NYCEEC" - } -}, -{ - "model": "financialInputs.lender", - "pk": 2, - "fields": { - "name": "Green Bank" - } -}, -{ - "model": "financialInputs.lender", - "pk": 3, - "fields": { - "name": "Deutsche Bank" - } -}, -{ - "model": "financialInputs.lender", - "pk": 4, - "fields": { - "name": "Goldman Sachs" - } -}, -{ - "model": "financialInputs.lender", - "pk": 5, - "fields": { - "name": "HPN" - } -}, -{ - "model": "financialInputs.defaultloan", - "pk": 1, - "fields": { - "lender": 1, - "fund": 1, - "interest_rate": "7.000", - "duration": "84", - "max_loan_amount": "5000000.00" - } -}, -{ - "model": "financialInputs.defaultloan", - "pk": 2, - "fields": { - "lender": 2, - "fund": 1, - "interest_rate": "8.000", - "duration": "96", - "max_loan_amount": "7000000.00" - } -}, -{ - "model": "financialInputs.defaultloan", - "pk": 3, - "fields": { - "lender": 3, - "fund": 1, - "interest_rate": "10.000", - "duration": "72", - "max_loan_amount": "10000000.00" - } -}, -{ - "model": "financialInputs.defaultloan", - "pk": 4, - "fields": { - "lender": 4, - "fund": 2, - "interest_rate": "4.500", - "duration": "120", - "max_loan_amount": "8000000.00" - } -}, -{ - "model": "financialInputs.defaultloan", - "pk": 5, - "fields": { - "lender": 5, - "fund": 2, - "interest_rate": "4.500", - "duration": "120", - "max_loan_amount": "2000000.00" - } -}, -{ - "model": "financialInputs.defaultloan", - "pk": 6, - "fields": { - "lender": 2, - "fund": 2, - "interest_rate": "7.000", - "duration": "84", - "max_loan_amount": "2000000.00" - } -}, -{ - "model": "financialInputs.loanoptions", - "pk": 49, - "fields": { - "building_id": 289, - "lender": 2, - "interest_rate": "8.000", - "duration": "120", - "max_loan_amount": "7000000.00" - } -}, -{ - "model": "financialInputs.loanoptions", - "pk": 50, - "fields": { - "building_id": 2002, - "lender": 1, - "interest_rate": "7.000", - "duration": "84", - "max_loan_amount": "5000000.00" - } -}, -{ - "model": "financialInputs.loanoptions", - "pk": 51, - "fields": { - "building_id": 2003, - "lender": 1, - "interest_rate": "7.000", - "duration": "84", - "max_loan_amount": "5000000.00" - } -}, -{ - "model": "financialInputs.growthrate", - "pk": 170, - "fields": { - "building_id": 289, - "growth_rate": "0.10" - } -}, -{ - "model": "financialInputs.growthrate", - "pk": 175, - "fields": { - "building_id": 2002, - "growth_rate": "-2.00" - } -}, -{ - "model": "financialInputs.growthrate", - "pk": 176, - "fields": { - "building_id": 2003, - "growth_rate": "-2.00" - } -} -] diff --git a/blocnote/apps/budgetSimulator/fixtures/financing_overview_testdata.json b/blocnote/apps/budgetSimulator/fixtures/financing_overview_testdata.json new file mode 100644 index 0000000..bb57e2f --- /dev/null +++ b/blocnote/apps/budgetSimulator/fixtures/financing_overview_testdata.json @@ -0,0 +1,82 @@ +[ + { + "model": "financialInputs.financingoverview", + "pk": 1, + "fields": { + "building_id": 100, + "fund": 1, + "required_noi_dscr": "0.00", + "requrired_cash_dscr": "0.00", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "25", + "analysis_date": "2017-05-18", + "anticipated_construction_start_date": "2017-07-01", + "anticipated_commissioning_date": "2017-08-01", + "anticipated_construction_period": "100" + } + }, + { + "model": "financialInputs.financingoverview", + "pk": 94, + "fields": { + "building_id": 289, + "fund": 1, + "required_noi_dscr": "0.00", + "requrired_cash_dscr": "0.00", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "25", + "analysis_date": "2017-05-18", + "anticipated_construction_start_date": "2017-05-03", + "anticipated_commissioning_date": "2017-07-07", + "anticipated_construction_period": "100" + } + }, + { + "model": "financialInputs.financingoverview", + "pk": 95, + "fields": { + "building_id": 2001, + "fund": 1, + "required_noi_dscr": "0.00", + "requrired_cash_dscr": "0.00", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "25", + "analysis_date": "2017-06-05", + "anticipated_construction_start_date": "2017-07-01", + "anticipated_commissioning_date": "2017-08-01", + "anticipated_construction_period": "4" + } + }, + { + "model": "financialInputs.financingoverview", + "pk": 96, + "fields": { + "building_id": 2002, + "fund": 1, + "required_noi_dscr": "1.15", + "requrired_cash_dscr": "1.15", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "25", + "analysis_date": "2017-06-05", + "anticipated_construction_start_date": "2017-07-01", + "anticipated_commissioning_date": "2017-08-01", + "anticipated_construction_period": "4" + } + }, + { + "model": "financialInputs.financingoverview", + "pk": 97, + "fields": { + "building_id": 2003, + "fund": 1, + "required_noi_dscr": "1.15", + "requrired_cash_dscr": "1.15", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "25", + "analysis_date": "2017-06-05", + "anticipated_construction_start_date": "2017-07-01", + "anticipated_commissioning_date": "2017-08-01", + "anticipated_construction_period": "4" + } + } +] diff --git a/blocnote/apps/budgetSimulator/fixtures/funds_testdata.json b/blocnote/apps/budgetSimulator/fixtures/funds_testdata.json new file mode 100644 index 0000000..e3d3dd2 --- /dev/null +++ b/blocnote/apps/budgetSimulator/fixtures/funds_testdata.json @@ -0,0 +1,16 @@ +[ + { + "model": "financialInputs.fund", + "pk": 1, + "fields": { + "Name": "Small Commercial Fund" + } + }, + { + "model": "financialInputs.fund", + "pk": 2, + "fields": { + "Name": "Bronx Healthy Buildings Fund" + } + } +] diff --git a/blocnote/apps/budgetSimulator/fixtures/growth_rate_testdata.json b/blocnote/apps/budgetSimulator/fixtures/growth_rate_testdata.json new file mode 100644 index 0000000..2fc5b2b --- /dev/null +++ b/blocnote/apps/budgetSimulator/fixtures/growth_rate_testdata.json @@ -0,0 +1,34 @@ +[ + { + "model": "financialInputs.growthrate", + "pk": 1, + "fields": { + "building_id": 100, + "growth_rate": "1" + } + }, + { + "model": "financialInputs.growthrate", + "pk": 170, + "fields": { + "building_id": 289, + "growth_rate": "0.10" + } + }, + { + "model": "financialInputs.growthrate", + "pk": 175, + "fields": { + "building_id": 2002, + "growth_rate": "-2.00" + } + }, + { + "model": "financialInputs.growthrate", + "pk": 176, + "fields": { + "building_id": 2003, + "growth_rate": "-2.00" + } + } +] diff --git a/blocnote/apps/budgetSimulator/fixtures/income_statement_testdata.json b/blocnote/apps/budgetSimulator/fixtures/income_statement_testdata.json new file mode 100644 index 0000000..87ba174 --- /dev/null +++ b/blocnote/apps/budgetSimulator/fixtures/income_statement_testdata.json @@ -0,0 +1,146 @@ +[ + { + "model": "financialInputs.incomestatement", + "pk": 1, + "fields": { + "building_id": 100, + "year": "2014", + "revenue": "200000.00", + "utility_expense": "90000.00", + "other_utility_expense": "80000.00", + "non_utility_operating_expense": "50000.00" + } + }, + { + "model": "financialInputs.incomestatement", + "pk": 2, + "fields": { + "building_id": 100, + "year": "2015", + "revenue": "205000.00", + "utility_expense": "92000.00", + "other_utility_expense": "83000.00", + "non_utility_operating_expense": "55000.00" + } + }, + { + "model": "financialInputs.incomestatement", + "pk": 3, + "fields": { + "building_id": 100, + "year": "2016", + "revenue": "210000.00", + "utility_expense": "94000.00", + "other_utility_expense": "86000.00", + "non_utility_operating_expense": "57000.00" + } + }, + { + "model": "financialInputs.incomestatement", + "pk": 587, + "fields": { + "building_id": 289, + "year": "2014", + "revenue": "200000.00", + "utility_expense": "94000.00", + "other_utility_expense": "-14159.29", + "non_utility_operating_expense": "50000.00" + } + }, + { + "model": "financialInputs.incomestatement", + "pk": 588, + "fields": { + "building_id": 289, + "year": "2015", + "revenue": "210000.00", + "utility_expense": "95000.00", + "other_utility_expense": "-12857.26", + "non_utility_operating_expense": "55000.00" + } + }, + { + "model": "financialInputs.incomestatement", + "pk": 589, + "fields": { + "building_id": 289, + "year": "2016", + "revenue": "213000.00", + "utility_expense": "96000.00", + "other_utility_expense": "-14637.50", + "non_utility_operating_expense": "60000.00" + } + }, + { + "model": "financialInputs.incomestatement", + "pk": 590, + "fields": { + "building_id": 2002, + "year": "2014", + "revenue": "200000.00", + "utility_expense": "100000.00", + "other_utility_expense": "93700.00", + "non_utility_operating_expense": "50000.00" + } + }, + { + "model": "financialInputs.incomestatement", + "pk": 591, + "fields": { + "building_id": 2002, + "year": "2015", + "revenue": "201000.00", + "utility_expense": "105000.00", + "other_utility_expense": "98700.00", + "non_utility_operating_expense": "58000.00" + } + }, + { + "model": "financialInputs.incomestatement", + "pk": 592, + "fields": { + "building_id": 2002, + "year": "2016", + "revenue": "202000.00", + "utility_expense": "110000.00", + "other_utility_expense": "103700.00", + "non_utility_operating_expense": "62000.00" + } + }, + { + "model": "financialInputs.incomestatement", + "pk": 593, + "fields": { + "building_id": 2003, + "year": "2014", + "revenue": "210000.00", + "utility_expense": "90000.00", + "other_utility_expense": "-127473.13", + "non_utility_operating_expense": "40000.00" + } + }, + { + "model": "financialInputs.incomestatement", + "pk": 594, + "fields": { + "building_id": 2003, + "year": "2015", + "revenue": "214000.00", + "utility_expense": "99000.00", + "other_utility_expense": "-119108.87", + "non_utility_operating_expense": "44000.00" + } + }, + { + "model": "financialInputs.incomestatement", + "pk": 595, + "fields": { + "building_id": 2003, + "year": "2016", + "revenue": "219000.00", + "utility_expense": "108000.00", + "other_utility_expense": "-110839.67", + "non_utility_operating_expense": "50000.00" + } + } +] diff --git a/blocnote/apps/budgetSimulator/fixtures/lender_testdata.json b/blocnote/apps/budgetSimulator/fixtures/lender_testdata.json new file mode 100644 index 0000000..07d8973 --- /dev/null +++ b/blocnote/apps/budgetSimulator/fixtures/lender_testdata.json @@ -0,0 +1,37 @@ +[ + { + "model": "financialInputs.lender", + "pk": 1, + "fields": { + "name": "NYCEEC" + } + }, + { + "model": "financialInputs.lender", + "pk": 2, + "fields": { + "name": "Green Bank" + } + }, + { + "model": "financialInputs.lender", + "pk": 3, + "fields": { + "name": "Deutsche Bank" + } + }, + { + "model": "financialInputs.lender", + "pk": 4, + "fields": { + "name": "Goldman Sachs" + } + }, + { + "model": "financialInputs.lender", + "pk": 5, + "fields": { + "name": "HPN" + } + } +] diff --git a/blocnote/apps/budgetSimulator/fixtures/liabilities_testdata.json b/blocnote/apps/budgetSimulator/fixtures/liabilities_testdata.json new file mode 100644 index 0000000..3062465 --- /dev/null +++ b/blocnote/apps/budgetSimulator/fixtures/liabilities_testdata.json @@ -0,0 +1,46 @@ +[ + { + "model": "financialInputs.liabilities", + "pk": 1, + "fields": { + "building_id": 100, + "input_date": "2016-01-01", + "lender": "Adarsh", + "monthly_service": "300.00", + "remaining_term": "120" + } + }, + { + "model": "financialInputs.liabilities", + "pk": 2, + "fields": { + "building_id": 101, + "input_date": "2016-01-01", + "lender": "Adarsh", + "monthly_service": "300.00", + "remaining_term": "120" + } + }, + { + "model": "financialInputs.liabilities", + "pk": 3, + "fields": { + "building_id": 101, + "input_date": "2015-01-01", + "lender": "Tom", + "monthly_service": "250.00", + "remaining_term": "100" + } + }, + { + "model": "financialInputs.liabilities", + "pk": 54, + "fields": { + "building_id": 289, + "input_date": "2017-05-11", + "lender": "Adarsh Murthy", + "monthly_service": "120.00", + "remaining_term": "100" + } + } +] diff --git a/blocnote/apps/budgetSimulator/fixtures/loan_options_testdata.json b/blocnote/apps/budgetSimulator/fixtures/loan_options_testdata.json new file mode 100644 index 0000000..170bf92 --- /dev/null +++ b/blocnote/apps/budgetSimulator/fixtures/loan_options_testdata.json @@ -0,0 +1,46 @@ +[ + { + "model": "financialInputs.loanoptions", + "pk": 1, + "fields": { + "building_id": 100, + "lender": 2, + "interest_rate": "8.000", + "duration": "100", + "max_loan_amount": "1000000.00" + } + }, + { + "model": "financialInputs.loanoptions", + "pk": 49, + "fields": { + "building_id": 289, + "lender": 2, + "interest_rate": "8.000", + "duration": "120", + "max_loan_amount": "7000000.00" + } + }, + { + "model": "financialInputs.loanoptions", + "pk": 50, + "fields": { + "building_id": 2002, + "lender": 1, + "interest_rate": "7.000", + "duration": "84", + "max_loan_amount": "5000000.00" + } + }, + { + "model": "financialInputs.loanoptions", + "pk": 51, + "fields": { + "building_id": 2003, + "lender": 1, + "interest_rate": "7.000", + "duration": "84", + "max_loan_amount": "5000000.00" + } + } +] -- GitLab From 3f8e740b52d3a46ccba4ad199e59e1eff14714a0 Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Wed, 7 Jun 2017 13:46:23 -0400 Subject: [PATCH 16/31] Add django-nose to settings. Coverage is run automatically to show summary. --- blocnote/settings.py | 10 ++++++++++ requirements-dev.txt | 1 + 2 files changed, 11 insertions(+) diff --git a/blocnote/settings.py b/blocnote/settings.py index 6b0fe09..bed7ab2 100644 --- a/blocnote/settings.py +++ b/blocnote/settings.py @@ -45,6 +45,7 @@ INSTALLED_APPS = [ 'blocnote.apps.preliminaryFinance', 'blocnote.apps.budgetSimulator', 'blocnote.apps.landingPage', + 'django_nose', ] MIDDLEWARE = [ @@ -75,6 +76,15 @@ TEMPLATES = [ }, ] +# Use nose to run all tests +TEST_RUNNER = 'django_nose.NoseTestSuiteRunner' + +# Tell nose to measure coverage on the 'foo' and 'bar' apps +NOSE_ARGS = [ + '--with-coverage', + '--cover-package=blocnote.apps.budgetSimulator', +] + WSGI_APPLICATION = 'blocnote.wsgi.application' diff --git a/requirements-dev.txt b/requirements-dev.txt index aa70cb5..d6e8853 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -4,3 +4,4 @@ pydocstyle==1.0.0 pylint>=1.5.6 pylint-django>=0.7.2 yapf>=0.16.1 +django-nose -- GitLab From 9a7cf701a62c673b4414cde249b69b39f59759ef Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Wed, 7 Jun 2017 13:46:44 -0400 Subject: [PATCH 17/31] Update admin and models to be empty. --- blocnote/apps/budgetSimulator/admin.py | 3 --- blocnote/apps/budgetSimulator/models.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/blocnote/apps/budgetSimulator/admin.py b/blocnote/apps/budgetSimulator/admin.py index 8c38f3f..e69de29 100644 --- a/blocnote/apps/budgetSimulator/admin.py +++ b/blocnote/apps/budgetSimulator/admin.py @@ -1,3 +0,0 @@ -from django.contrib import admin - -# Register your models here. diff --git a/blocnote/apps/budgetSimulator/models.py b/blocnote/apps/budgetSimulator/models.py index 71a8362..e69de29 100644 --- a/blocnote/apps/budgetSimulator/models.py +++ b/blocnote/apps/budgetSimulator/models.py @@ -1,3 +0,0 @@ -from django.db import models - -# Create your models here. -- GitLab From 80fc084b45f5f3ab89045e49462f1c9c7acf9a44 Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Wed, 7 Jun 2017 13:47:14 -0400 Subject: [PATCH 18/31] Remove unnecessary for loop. --- .coverage | 1 + .editorconfig | 33 ++++++++++++++++++++++++++ blocnote/apps/budgetSimulator/views.py | 7 ------ logs/budget_test_1.txt | 14 +++++++++++ 4 files changed, 48 insertions(+), 7 deletions(-) create mode 100644 .coverage create mode 100644 .editorconfig create mode 100644 logs/budget_test_1.txt diff --git a/.coverage b/.coverage new file mode 100644 index 0000000..b843cba --- /dev/null +++ b/.coverage @@ -0,0 +1 @@ +!coverage.py: This is a private format, don't read it directly!{"lines":{"/Users/adarshmurthy/Desktop/work/dev/blocnote/manage.py":[2,3,5,6,7,8,22],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/__init__.py":[1],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/settings.py":[11,13,14],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/urls.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/wsgi.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/__init__.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/budgetSimulator/__init__.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/budgetSimulator/admin.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/budgetSimulator/apps.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/budgetSimulator/models.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/budgetSimulator/tests.py":[1,2,3,5,6,8,10,11,12,13,14,15,16,17,18,19,22,23,25,27,32,34,40,42,43,45,48,49,51,53,58,60,62,63,64,67,68,70,72,77,79,81,83,84,85,87,90,91,93,95,100,102,104,105,106,109,110,112,114,119,120,122,127,129,131,133,138,140,141,143,146,147,149,151,156,158,163,165,167,169,174,176,177,179,182,183,185,187,192,194,199,202,203,204,205,208,211,212,214,216,221,223,228,231,232,233,236,237,238,241,242,243,246,249,250,252,254,259,261,262,263,264,266,268,273,276,278,279,280,282,284,289,292,293,294,296,297,298,300,302,307,310,313,315,316,318,320,325,328,331,334,336,338,340,345,348,349,350,353,354,357,359,361,364,365,367,369,374,375,377,382,384,385,386,387,388,389,392,394,399,402,403,404,405,406,409,410,411,412,413,416,418,423,426,427,428,429,430,433,434,435,436,437,440,441,442,443,444,447,448,449,450,451,454,457,458,460,465,466,467,468,471,472,475,476,477,478,479,480,481,482,483,484,485,486,487,490,495,496,498,504,505,507,508,509,511,512,513,514,515,516,517,518,519,520,521,522,524,525,526,527,528,530,535,536,538,544,545,546,547,548,549,551,557,558,560,561,562,564,565,566,567,568,569,570,571,572,573,574,575,577,578,579,580,581],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/budgetSimulator/urls.py":[1,3,5,7,8],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/budgetSimulator/views.py":[1,2,3,4,6,8,9,12,14,15,17,18,21,24,26,27,28,30,33,35,36,37,39,40,41,43,45,48,51,52,53,54,56,57,58,59,60,63,64,65,66,67,68,69,71,72,73,74,75,76,77,80,82,84,85,86,89,90,91,94,95,96,99,100,101,104,105,106,107,109,111,112,113,114,116,118,119,120,121,123,125,126,127,128,130,131,134,144,145,146,147,148,149,150,151,152,153,155,158,167,168,169,171,174,198,199,200,201,202,203,204,205,206,207,208,209,210,213,226,227,228,229,230,231,233,236,246,247,248,249,251,252,253,254,256,257,259,262,263,265,268,270,273,274,277,284,285,286,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,326,327,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,355,356,358],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/budgetSimulator/migrations/__init__.py":[1],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/__init__.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/admin.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/apps.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/models.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/tests.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/urls.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/views.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/migrations/0001_initial.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/migrations/0002_incomestatement.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/migrations/0003_auto_20170503_2200.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/migrations/0004_growthrate.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/migrations/0005_auto_20170522_1842.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/migrations/__init__.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/landingPage/__init__.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/landingPage/admin.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/landingPage/apps.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/landingPage/models.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/landingPage/tests.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/landingPage/urls.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/landingPage/views.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/landingPage/migrations/__init__.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/preliminaryFinance/__init__.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/preliminaryFinance/admin.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/preliminaryFinance/apps.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/preliminaryFinance/models.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/preliminaryFinance/tests.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/preliminaryFinance/urls.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/preliminaryFinance/views.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/preliminaryFinance/migrations/0001_initial.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/preliminaryFinance/migrations/__init__.py":[]}} \ No newline at end of file diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..4358a08 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,33 @@ +# EditorConfig is awesome: http://EditorConfig.org + +# top-most EditorConfig file +root = true + +# Unix-style newlines with a newline ending every file +[*] +end_of_line = lf +insert_final_newline = true + +# Matches multiple files with brace expansion notation +# Set default charset +[*.{js,py}] +charset = utf-8 + +# 4 space indentation +[*.py] +indent_style = space +indent_size = 4 + +# Tab indentation (no size specified) +[Makefile] +indent_style = tab + +# Indentation override for all JS under lib directory +[lib/**.js] +indent_style = space +indent_size = 2 + +# Matches the exact files either package.json or .travis.yml +[{package.json,.travis.yml}] +indent_style = space +indent_size = 2 diff --git a/blocnote/apps/budgetSimulator/views.py b/blocnote/apps/budgetSimulator/views.py index 21de3ed..c23523c 100644 --- a/blocnote/apps/budgetSimulator/views.py +++ b/blocnote/apps/budgetSimulator/views.py @@ -293,13 +293,6 @@ class Budget(View): customer_preference = get_customer_preference(building_id) raw_bills = get_raw_bill(building_id) annual_bills = get_annual_bills(building_id) - bills = {} - for utility in raw_bills: - bills[utility] = raw_bills[utility] - for utility in annual_bills: - bills[utility] = annual_bills[utility] - if not bills: - raise ValueError("No bills or entered values were found for this building id.") raw_income_statement = get_raw_income_statement(building_id) growth_rate = get_growth_rate(building_id) liabilities = get_liability(building_id) diff --git a/logs/budget_test_1.txt b/logs/budget_test_1.txt new file mode 100644 index 0000000..f3d730c --- /dev/null +++ b/logs/budget_test_1.txt @@ -0,0 +1,14 @@ +...F.............................. +====================================================================== +FAIL: test_budget_view_4 (blocnote.apps.budgetSimulator.tests.BudgetSimulatorBudgetView) +Test budget view for building with id 2002 with all inputs but water utility empty stored. +---------------------------------------------------------------------- +Traceback (most recent call last): + File "/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/budgetSimulator/tests.py", line 767, in test_budget_view_4 + self.assertEqual(response.status_code, 200) +AssertionError: 400 != 200 + +---------------------------------------------------------------------- +Ran 34 tests in 0.705s + +FAILED (failures=1) -- GitLab From 03cbd0042517821a82b777d5b861e8111bcf4fae Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Wed, 7 Jun 2017 13:49:39 -0400 Subject: [PATCH 19/31] Reorder import statements in test file. --- blocnote/apps/budgetSimulator/tests.py | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-) diff --git a/blocnote/apps/budgetSimulator/tests.py b/blocnote/apps/budgetSimulator/tests.py index 631adbc..66be2a4 100644 --- a/blocnote/apps/budgetSimulator/tests.py +++ b/blocnote/apps/budgetSimulator/tests.py @@ -2,21 +2,10 @@ from datetime import date from django.test import TestCase -from blocnote.apps.financialInputs.models import Fund, FinancingOverview, CustomerPreference, GrowthRate, Liabilities -from blocnote.apps.financialInputs.models import CashBalance, LoanOptions, Lender, IncomeStatement, BillsOverview, Bills - from bpfin.back_end_call.back_end_budget import budget_simulation -from .views import get_analysis_date -from .views import get_commissioning_date -from .views import get_customer_preference -from .views import get_growth_rate -from .views import get_liability -from .views import get_cash_balance -from .views import get_loan_input -from .views import get_raw_income_statement -from .views import get_annual_bills -from .views import get_raw_bill +from .views import get_analysis_date, get_commissioning_date, get_customer_preference, get_growth_rate, get_liability +from .views import get_cash_balance, get_loan_input, get_raw_income_statement, get_annual_bills, get_raw_bill class GetAnalysisDateTest(TestCase): -- GitLab From ff8fc920d2540a70e761a72994b42df54110c1e5 Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Wed, 7 Jun 2017 13:59:21 -0400 Subject: [PATCH 20/31] Modify lines of code to use map() instead of forEach. --- .../budgetSimulator/static/budgetSimulator/scripts/app.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/blocnote/apps/budgetSimulator/static/budgetSimulator/scripts/app.js b/blocnote/apps/budgetSimulator/static/budgetSimulator/scripts/app.js index 25aa698..90f04ae 100644 --- a/blocnote/apps/budgetSimulator/static/budgetSimulator/scripts/app.js +++ b/blocnote/apps/budgetSimulator/static/budgetSimulator/scripts/app.js @@ -100,11 +100,7 @@ function getBudgetData() { if (!res.err) { const tables = res.payload.instance.tables; const savingsPotentialList = res.payload.instance.saving_potential_list; - const budgets = []; - Object.keys(tables).forEach((tableName) => { - const budgetRow = tables[tableName][0].slice(1, ); - budgets.push(budgetRow); - }); + const budgets = Object.keys(tables).map(tableName => tables[tableName][0].slice(1,)); generateGraph(budgets, savingsPotentialList); fillTables(tables, savingsPotentialList); } else { -- GitLab From 7f3f6f2c68870a8f2f97c03fe29a98eef4924d6e Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Wed, 7 Jun 2017 14:05:15 -0400 Subject: [PATCH 21/31] Add comments to fillTables function in app.js --- .../budgetSimulator/static/budgetSimulator/scripts/app.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/blocnote/apps/budgetSimulator/static/budgetSimulator/scripts/app.js b/blocnote/apps/budgetSimulator/static/budgetSimulator/scripts/app.js index 90f04ae..dc3fc76 100644 --- a/blocnote/apps/budgetSimulator/static/budgetSimulator/scripts/app.js +++ b/blocnote/apps/budgetSimulator/static/budgetSimulator/scripts/app.js @@ -61,9 +61,13 @@ function generateGraph(budgets, savingPotentialList) { * @param {any} savingsPotentialList : List of table headings. */ function fillTables(tables, savingsPotentialList) { + // Go over the keys in the tables dictionary. Object.keys(tables).forEach((tableName) => { + // For each table, get its head and body. const head = document.querySelector(`#${tableName} thead`); const body = document.querySelector(`#${tableName} tbody`); + + // The following lines get the heading row to insert the headings received from backend. const headingRowCount = head.rows.length; const headingRow = head.insertRow(headingRowCount); let cell = headingRow.insertCell(0); @@ -73,6 +77,8 @@ function fillTables(tables, savingsPotentialList) { cell = headingRow.insertCell(cellIndex); cell.innerHTML = ` ${Number(savingsPotentialList[cellIndex - 1]) * 100} %`; } + + // The following fills in the row data for each table. const table = tables[tableName]; table.forEach((rowData) => { const rowCount = body.rows.length; -- GitLab From bbcf0a85e8202f656d8064b377b1fc92c9c6b280 Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Wed, 7 Jun 2017 14:17:58 -0400 Subject: [PATCH 22/31] Remove .coverage file. --- .coverage | 1 - .gitignore | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100644 .coverage diff --git a/.coverage b/.coverage deleted file mode 100644 index b843cba..0000000 --- a/.coverage +++ /dev/null @@ -1 +0,0 @@ -!coverage.py: This is a private format, don't read it directly!{"lines":{"/Users/adarshmurthy/Desktop/work/dev/blocnote/manage.py":[2,3,5,6,7,8,22],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/__init__.py":[1],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/settings.py":[11,13,14],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/urls.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/wsgi.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/__init__.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/budgetSimulator/__init__.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/budgetSimulator/admin.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/budgetSimulator/apps.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/budgetSimulator/models.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/budgetSimulator/tests.py":[1,2,3,5,6,8,10,11,12,13,14,15,16,17,18,19,22,23,25,27,32,34,40,42,43,45,48,49,51,53,58,60,62,63,64,67,68,70,72,77,79,81,83,84,85,87,90,91,93,95,100,102,104,105,106,109,110,112,114,119,120,122,127,129,131,133,138,140,141,143,146,147,149,151,156,158,163,165,167,169,174,176,177,179,182,183,185,187,192,194,199,202,203,204,205,208,211,212,214,216,221,223,228,231,232,233,236,237,238,241,242,243,246,249,250,252,254,259,261,262,263,264,266,268,273,276,278,279,280,282,284,289,292,293,294,296,297,298,300,302,307,310,313,315,316,318,320,325,328,331,334,336,338,340,345,348,349,350,353,354,357,359,361,364,365,367,369,374,375,377,382,384,385,386,387,388,389,392,394,399,402,403,404,405,406,409,410,411,412,413,416,418,423,426,427,428,429,430,433,434,435,436,437,440,441,442,443,444,447,448,449,450,451,454,457,458,460,465,466,467,468,471,472,475,476,477,478,479,480,481,482,483,484,485,486,487,490,495,496,498,504,505,507,508,509,511,512,513,514,515,516,517,518,519,520,521,522,524,525,526,527,528,530,535,536,538,544,545,546,547,548,549,551,557,558,560,561,562,564,565,566,567,568,569,570,571,572,573,574,575,577,578,579,580,581],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/budgetSimulator/urls.py":[1,3,5,7,8],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/budgetSimulator/views.py":[1,2,3,4,6,8,9,12,14,15,17,18,21,24,26,27,28,30,33,35,36,37,39,40,41,43,45,48,51,52,53,54,56,57,58,59,60,63,64,65,66,67,68,69,71,72,73,74,75,76,77,80,82,84,85,86,89,90,91,94,95,96,99,100,101,104,105,106,107,109,111,112,113,114,116,118,119,120,121,123,125,126,127,128,130,131,134,144,145,146,147,148,149,150,151,152,153,155,158,167,168,169,171,174,198,199,200,201,202,203,204,205,206,207,208,209,210,213,226,227,228,229,230,231,233,236,246,247,248,249,251,252,253,254,256,257,259,262,263,265,268,270,273,274,277,284,285,286,290,291,292,293,294,295,296,297,298,299,300,301,302,303,304,305,306,307,308,309,310,311,312,313,314,315,316,317,318,319,320,321,322,323,324,326,327,329,330,331,332,333,334,335,336,337,338,339,340,341,342,343,344,345,346,347,348,349,350,351,352,355,356,358],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/budgetSimulator/migrations/__init__.py":[1],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/__init__.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/admin.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/apps.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/models.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/tests.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/urls.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/views.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/migrations/0001_initial.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/migrations/0002_incomestatement.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/migrations/0003_auto_20170503_2200.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/migrations/0004_growthrate.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/migrations/0005_auto_20170522_1842.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/financialInputs/migrations/__init__.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/landingPage/__init__.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/landingPage/admin.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/landingPage/apps.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/landingPage/models.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/landingPage/tests.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/landingPage/urls.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/landingPage/views.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/landingPage/migrations/__init__.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/preliminaryFinance/__init__.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/preliminaryFinance/admin.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/preliminaryFinance/apps.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/preliminaryFinance/models.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/preliminaryFinance/tests.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/preliminaryFinance/urls.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/preliminaryFinance/views.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/preliminaryFinance/migrations/0001_initial.py":[],"/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/preliminaryFinance/migrations/__init__.py":[]}} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 84017a2..4db2aa8 100644 --- a/.gitignore +++ b/.gitignore @@ -17,3 +17,4 @@ node_modules .idea .vscode/ /static +.coverage -- GitLab From c15c289d214bd4367d8580185548e0bcae4b9c38 Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Wed, 7 Jun 2017 14:22:28 -0400 Subject: [PATCH 23/31] Fetch analysis and commissioning date in one function with just one call to the database. --- blocnote/apps/budgetSimulator/tests.py | 51 ++++++++------------------ blocnote/apps/budgetSimulator/views.py | 19 +++------- 2 files changed, 21 insertions(+), 49 deletions(-) diff --git a/blocnote/apps/budgetSimulator/tests.py b/blocnote/apps/budgetSimulator/tests.py index 66be2a4..eab21a6 100644 --- a/blocnote/apps/budgetSimulator/tests.py +++ b/blocnote/apps/budgetSimulator/tests.py @@ -4,52 +4,31 @@ from django.test import TestCase from bpfin.back_end_call.back_end_budget import budget_simulation -from .views import get_analysis_date, get_commissioning_date, get_customer_preference, get_growth_rate, get_liability +from .views import get_analysis_commissioning_dates, get_customer_preference, get_growth_rate, get_liability from .views import get_cash_balance, get_loan_input, get_raw_income_statement, get_annual_bills, get_raw_bill -class GetAnalysisDateTest(TestCase): - """Test get_analysis_date function.""" +class GetAnalysisCommissioningDatesTest(TestCase): + """Test get_analysis_commissioning_dates function.""" fixtures = ['funds_testdata.json', 'financing_overview_testdata.json'] - def test_analysis_date_1(self): - """Fetch analysis date for a building with no data in database. + def test_analysis_commissioning_date_1(self): + """Fetch analysis date and commissioning date for a building with no data in database. Building with id 233 does not have financing overview records stored. This should raise an attribute error. """ - self.assertRaises(AttributeError, get_analysis_date, 233) + self.assertRaises(AttributeError, get_analysis_commissioning_dates, 233) - def test_analysis_date_2(self): - """Create and Fetch analysis date. - - Building with id 233 has nothing initially. Create financiang overview model with building id 233 and test - get_analysis_date function for 233 and check if the values match. - """ - analysis_date = get_analysis_date(100) + def test_analysis_commissioning_date_2(self): + """Fetch analysis date and commissioning date for a building with data.""" + analysis_date, commissioning_date = get_analysis_commissioning_dates(100) expected_analysis_date = { 'proforma_start': date(2014, 1, 1), 'proforma_duration': 25, } - self.assertEqual(analysis_date, expected_analysis_date) - - -class GetCommissioningDateTest(TestCase): - """Test get_commissioning_date function.""" - - fixtures = ['funds_testdata.json', 'financing_overview_testdata.json'] - - def test_commissioning_date_1(self): - """Fetch commissioning date for building with no data in database. - - No financing over records exist for this building hence it should raise an attribute error. - """ - self.assertRaises(AttributeError, get_commissioning_date, 233) - - def test_commissioning_date_2(self): - """Create a financing overview record and test get_commissioning_date function.""" - commissioning_date = get_commissioning_date(100) expected_commissioning_date = date(2017, 8, 1) + self.assertEqual(analysis_date, expected_analysis_date) self.assertEqual(commissioning_date, expected_commissioning_date) @@ -497,9 +476,10 @@ class BudgetSimulatorBudgetView(TestCase): 'req_cash_dscr': 1.15, 'req_saving_dscr': 1.10, } + analysis_date, commissioning_date = get_analysis_commissioning_dates(289) result = budget_simulation( - get_analysis_date(289), - get_commissioning_date(289), + analysis_date, + commissioning_date, get_customer_preference(289), req_dscr, get_raw_bill(289), @@ -550,9 +530,10 @@ class BudgetSimulatorBudgetView(TestCase): 'req_cash_dscr': 1.15, 'req_saving_dscr': 1.10, } + analysis_date, commissioning_date = get_analysis_commissioning_dates(2003) result = budget_simulation( - get_analysis_date(2003), - get_commissioning_date(2003), + analysis_date, + commissioning_date, get_customer_preference(2003), req_dscr, get_raw_bill(2003), diff --git a/blocnote/apps/budgetSimulator/views.py b/blocnote/apps/budgetSimulator/views.py index c23523c..89dec3b 100644 --- a/blocnote/apps/budgetSimulator/views.py +++ b/blocnote/apps/budgetSimulator/views.py @@ -9,23 +9,15 @@ from blocnote.apps.financialInputs.models import FinancingOverview, Bills, Bills from blocnote.apps.financialInputs.models import Liabilities, CashBalance, CustomerPreference, LoanOptions -def get_analysis_date(building_id): - """Fetch analysis date from the database for the given building id.""" +def get_analysis_commissioning_dates(building_id): + """Fetch the proforma start date, proforma duration and commissioning date.""" financing_overview_objects = FinancingOverview.objects.filter(building_id=building_id) if financing_overview_objects: - return { + analysis_date = { 'proforma_start': financing_overview_objects[0].pro_forma_start_date, 'proforma_duration': int(financing_overview_objects[0].pro_forma_duration), } - else: - raise AttributeError("Could not find analysis date for given building id.") - - -def get_commissioning_date(building_id): - """Fetch commissioning date from the database for the given building id.""" - financing_overview_objects = FinancingOverview.objects.filter(building_id=building_id) - if financing_overview_objects: - return financing_overview_objects[0].anticipated_commissioning_date + return analysis_date, financing_overview_objects[0].anticipated_commissioning_date else: raise AttributeError("Could not find commissioning date for given building id.") @@ -288,8 +280,7 @@ class Budget(View): # Fetch values from the database needed to perform the budget simulation. try: - analysis_date = get_analysis_date(building_id) - commissioning_date = get_commissioning_date(building_id) + analysis_date, commissioning_date = get_analysis_commissioning_dates(building_id) customer_preference = get_customer_preference(building_id) raw_bills = get_raw_bill(building_id) annual_bills = get_annual_bills(building_id) -- GitLab From 440b25f41b51fea069901a14cc733c2ddb0709ef Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Wed, 7 Jun 2017 14:29:09 -0400 Subject: [PATCH 24/31] Remove logs. --- logs/budget_test_1.txt | 14 -------------- 1 file changed, 14 deletions(-) delete mode 100644 logs/budget_test_1.txt diff --git a/logs/budget_test_1.txt b/logs/budget_test_1.txt deleted file mode 100644 index f3d730c..0000000 --- a/logs/budget_test_1.txt +++ /dev/null @@ -1,14 +0,0 @@ -...F.............................. -====================================================================== -FAIL: test_budget_view_4 (blocnote.apps.budgetSimulator.tests.BudgetSimulatorBudgetView) -Test budget view for building with id 2002 with all inputs but water utility empty stored. ----------------------------------------------------------------------- -Traceback (most recent call last): - File "/Users/adarshmurthy/Desktop/work/dev/blocnote/blocnote/apps/budgetSimulator/tests.py", line 767, in test_budget_view_4 - self.assertEqual(response.status_code, 200) -AssertionError: 400 != 200 - ----------------------------------------------------------------------- -Ran 34 tests in 0.705s - -FAILED (failures=1) -- GitLab From 1690314a8f545ec6a68497a59d01dc823a9226f9 Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Wed, 7 Jun 2017 14:54:45 -0400 Subject: [PATCH 25/31] Update test to contain one more test case. This tests the budget view when bill exists but it does not cover 12 months worth of data. This should be an error. --- .../fixtures/bills_testdata.json | 12 +++++++ .../fixtures/cash_balance_testdata.json | 10 ++++++ .../customer_preference_testdata.json | 10 ++++++ .../estimation_algorithm_testdata.json | 8 +++++ .../fixtures/financing_overview_testdata.json | 16 +++++++++ .../fixtures/growth_rate_testdata.json | 8 +++++ .../fixtures/income_statement_testdata.json | 36 +++++++++++++++++++ .../fixtures/loan_options_testdata.json | 11 ++++++ blocnote/apps/budgetSimulator/tests.py | 7 ++++ 9 files changed, 118 insertions(+) diff --git a/blocnote/apps/budgetSimulator/fixtures/bills_testdata.json b/blocnote/apps/budgetSimulator/fixtures/bills_testdata.json index 347f9b7..15de025 100644 --- a/blocnote/apps/budgetSimulator/fixtures/bills_testdata.json +++ b/blocnote/apps/budgetSimulator/fixtures/bills_testdata.json @@ -898,5 +898,17 @@ "usage": "36000.00", "charge": "5751.96" } + }, + { + "model": "financialInputs.bills", + "pk": 724, + "fields": { + "building_id": 2004, + "date_from": "2015-03-24", + "date_to": "2015-04-22", + "utility_type": "electricity", + "usage": "36000.00", + "charge": "5751.96" + } } ] diff --git a/blocnote/apps/budgetSimulator/fixtures/cash_balance_testdata.json b/blocnote/apps/budgetSimulator/fixtures/cash_balance_testdata.json index b155e3c..d13a860 100644 --- a/blocnote/apps/budgetSimulator/fixtures/cash_balance_testdata.json +++ b/blocnote/apps/budgetSimulator/fixtures/cash_balance_testdata.json @@ -58,5 +58,15 @@ "is_from_balance_sheet": true, "balance_amount": "25000.00" } + }, + { + "model": "financialInputs.cashbalance", + "pk": 77, + "fields": { + "building_id": 2004, + "statement_date": "2015-12-10", + "is_from_balance_sheet": true, + "balance_amount": "25000.00" + } } ] diff --git a/blocnote/apps/budgetSimulator/fixtures/customer_preference_testdata.json b/blocnote/apps/budgetSimulator/fixtures/customer_preference_testdata.json index b93a33d..5a09c6a 100644 --- a/blocnote/apps/budgetSimulator/fixtures/customer_preference_testdata.json +++ b/blocnote/apps/budgetSimulator/fixtures/customer_preference_testdata.json @@ -38,5 +38,15 @@ "expected_payback": "120", "expected_net_noi_dscr": "1.15" } + }, + { + "model": "financialInputs.customerpreference", + "pk": 14, + "fields": { + "building_id": 2004, + "downpayment": "0.00", + "expected_payback": "120", + "expected_net_noi_dscr": "1.15" + } } ] diff --git a/blocnote/apps/budgetSimulator/fixtures/estimation_algorithm_testdata.json b/blocnote/apps/budgetSimulator/fixtures/estimation_algorithm_testdata.json index 742f09c..1939009 100644 --- a/blocnote/apps/budgetSimulator/fixtures/estimation_algorithm_testdata.json +++ b/blocnote/apps/budgetSimulator/fixtures/estimation_algorithm_testdata.json @@ -22,5 +22,13 @@ "algorithm": "Rough Estimation", "building_id": 2003 } + }, + { + "model": "financialInputs.estimationalgorithm", + "pk": 17, + "fields": { + "algorithm": "Rough Estimation", + "building_id": 2004 + } } ] diff --git a/blocnote/apps/budgetSimulator/fixtures/financing_overview_testdata.json b/blocnote/apps/budgetSimulator/fixtures/financing_overview_testdata.json index bb57e2f..f8ed326 100644 --- a/blocnote/apps/budgetSimulator/fixtures/financing_overview_testdata.json +++ b/blocnote/apps/budgetSimulator/fixtures/financing_overview_testdata.json @@ -78,5 +78,21 @@ "anticipated_commissioning_date": "2017-08-01", "anticipated_construction_period": "4" } + }, + { + "model": "financialInputs.financingoverview", + "pk": 98, + "fields": { + "building_id": 2004, + "fund": 1, + "required_noi_dscr": "1.15", + "requrired_cash_dscr": "1.15", + "pro_forma_start_date": "2014-01-01", + "pro_forma_duration": "25", + "analysis_date": "2017-06-05", + "anticipated_construction_start_date": "2017-07-01", + "anticipated_commissioning_date": "2017-08-01", + "anticipated_construction_period": "4" + } } ] diff --git a/blocnote/apps/budgetSimulator/fixtures/growth_rate_testdata.json b/blocnote/apps/budgetSimulator/fixtures/growth_rate_testdata.json index 2fc5b2b..894d2ac 100644 --- a/blocnote/apps/budgetSimulator/fixtures/growth_rate_testdata.json +++ b/blocnote/apps/budgetSimulator/fixtures/growth_rate_testdata.json @@ -30,5 +30,13 @@ "building_id": 2003, "growth_rate": "-2.00" } + }, + { + "model": "financialInputs.growthrate", + "pk": 177, + "fields": { + "building_id": 2004, + "growth_rate": "-2.00" + } } ] diff --git a/blocnote/apps/budgetSimulator/fixtures/income_statement_testdata.json b/blocnote/apps/budgetSimulator/fixtures/income_statement_testdata.json index 87ba174..815c307 100644 --- a/blocnote/apps/budgetSimulator/fixtures/income_statement_testdata.json +++ b/blocnote/apps/budgetSimulator/fixtures/income_statement_testdata.json @@ -142,5 +142,41 @@ "other_utility_expense": "-110839.67", "non_utility_operating_expense": "50000.00" } + }, + { + "model": "financialInputs.incomestatement", + "pk": 596, + "fields": { + "building_id": 2004, + "year": "2014", + "revenue": "210000.00", + "utility_expense": "90000.00", + "other_utility_expense": "-127473.13", + "non_utility_operating_expense": "40000.00" + } + }, + { + "model": "financialInputs.incomestatement", + "pk": 597, + "fields": { + "building_id": 2004, + "year": "2015", + "revenue": "214000.00", + "utility_expense": "99000.00", + "other_utility_expense": "-119108.87", + "non_utility_operating_expense": "44000.00" + } + }, + { + "model": "financialInputs.incomestatement", + "pk": 598, + "fields": { + "building_id": 2004, + "year": "2016", + "revenue": "219000.00", + "utility_expense": "108000.00", + "other_utility_expense": "-110839.67", + "non_utility_operating_expense": "50000.00" + } } ] diff --git a/blocnote/apps/budgetSimulator/fixtures/loan_options_testdata.json b/blocnote/apps/budgetSimulator/fixtures/loan_options_testdata.json index 170bf92..8d44d2a 100644 --- a/blocnote/apps/budgetSimulator/fixtures/loan_options_testdata.json +++ b/blocnote/apps/budgetSimulator/fixtures/loan_options_testdata.json @@ -42,5 +42,16 @@ "duration": "84", "max_loan_amount": "5000000.00" } + }, + { + "model": "financialInputs.loanoptions", + "pk": 54, + "fields": { + "building_id": 2004, + "lender": 1, + "interest_rate": "7.000", + "duration": "84", + "max_loan_amount": "5000000.00" + } } ] diff --git a/blocnote/apps/budgetSimulator/tests.py b/blocnote/apps/budgetSimulator/tests.py index eab21a6..da5db7c 100644 --- a/blocnote/apps/budgetSimulator/tests.py +++ b/blocnote/apps/budgetSimulator/tests.py @@ -549,3 +549,10 @@ class BudgetSimulatorBudgetView(TestCase): self.assertTrue('tables' in response_content['instance']) self.assertTrue('saving_potential_list' in response_content['instance']) self.assertEqual(len(result), 4) + + def test_budget_view_6(self): + """"Test budget view when electricity bill does not have 12 months data.""" + response = self.client.get('/buildings/2004/budget/budget-data/') + response_content = response.json() + self.assertEqual(response.status_code, 400) + self.assertTrue('error' in response_content) -- GitLab From cf6e6ae194a3b7c84d99dd27a67d2905e58dc081 Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Wed, 7 Jun 2017 16:11:31 -0400 Subject: [PATCH 26/31] Rename some fixtures as they are not testdata. --- .../{default_loan_testdata.json => default_loan.json} | 0 .../fixtures/{funds_testdata.json => funds.json} | 0 .../fixtures/{lender_testdata.json => lender.json} | 0 blocnote/apps/budgetSimulator/tests.py | 10 +++++----- 4 files changed, 5 insertions(+), 5 deletions(-) rename blocnote/apps/budgetSimulator/fixtures/{default_loan_testdata.json => default_loan.json} (100%) rename blocnote/apps/budgetSimulator/fixtures/{funds_testdata.json => funds.json} (100%) rename blocnote/apps/budgetSimulator/fixtures/{lender_testdata.json => lender.json} (100%) diff --git a/blocnote/apps/budgetSimulator/fixtures/default_loan_testdata.json b/blocnote/apps/budgetSimulator/fixtures/default_loan.json similarity index 100% rename from blocnote/apps/budgetSimulator/fixtures/default_loan_testdata.json rename to blocnote/apps/budgetSimulator/fixtures/default_loan.json diff --git a/blocnote/apps/budgetSimulator/fixtures/funds_testdata.json b/blocnote/apps/budgetSimulator/fixtures/funds.json similarity index 100% rename from blocnote/apps/budgetSimulator/fixtures/funds_testdata.json rename to blocnote/apps/budgetSimulator/fixtures/funds.json diff --git a/blocnote/apps/budgetSimulator/fixtures/lender_testdata.json b/blocnote/apps/budgetSimulator/fixtures/lender.json similarity index 100% rename from blocnote/apps/budgetSimulator/fixtures/lender_testdata.json rename to blocnote/apps/budgetSimulator/fixtures/lender.json diff --git a/blocnote/apps/budgetSimulator/tests.py b/blocnote/apps/budgetSimulator/tests.py index da5db7c..73493e4 100644 --- a/blocnote/apps/budgetSimulator/tests.py +++ b/blocnote/apps/budgetSimulator/tests.py @@ -11,7 +11,7 @@ from .views import get_cash_balance, get_loan_input, get_raw_income_statement, g class GetAnalysisCommissioningDatesTest(TestCase): """Test get_analysis_commissioning_dates function.""" - fixtures = ['funds_testdata.json', 'financing_overview_testdata.json'] + fixtures = ['funds.json', 'financing_overview_testdata.json'] def test_analysis_commissioning_date_1(self): """Fetch analysis date and commissioning date for a building with no data in database. @@ -150,7 +150,7 @@ class GetCashBalanceTest(TestCase): class GetLoanInputTest(TestCase): """Test get_loan_input function.""" - fixtures = ['lender_testdata.json', 'loan_options_testdata.json'] + fixtures = ['lender.json', 'loan_options_testdata.json'] def test_loan_input_1(self): """Test get_cash_balance for building with no data in database. @@ -440,7 +440,7 @@ class BudgetSimulatorBudgetView(TestCase): """Test the budget view of the budget endpoint.""" fixtures = [ - 'funds_testdata.json', + 'funds.json', 'financing_overview_testdata.json', 'bills_testdata.json', 'estimation_algorithm_testdata.json', @@ -449,10 +449,10 @@ class BudgetSimulatorBudgetView(TestCase): 'liabilities_testdata.json', 'cash_balance_testdata.json', 'income_statement_testdata.json', - 'default_loan_testdata.json', + 'default_loan.json', 'loan_options_testdata.json', 'growth_rate_testdata.json', - 'lender_testdata.json', + 'lender.json', ] def test_budget_view_1(self): -- GitLab From ce65e02ce75ef5e41c2041a20028f2873b18d6d3 Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Wed, 7 Jun 2017 17:00:58 -0400 Subject: [PATCH 27/31] Add coverage to requirements-dev. --- requirements-dev.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements-dev.txt b/requirements-dev.txt index d6e8853..9fa50a1 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -5,3 +5,4 @@ pylint>=1.5.6 pylint-django>=0.7.2 yapf>=0.16.1 django-nose +coverage -- GitLab From 1fd57cb604f1ff8f98cbd277c8107b47d6a39c90 Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Thu, 8 Jun 2017 12:38:15 -0400 Subject: [PATCH 28/31] Rewrite get_annual_bills. --- blocnote/apps/budgetSimulator/views.py | 61 +++++--------------------- 1 file changed, 12 insertions(+), 49 deletions(-) diff --git a/blocnote/apps/budgetSimulator/views.py b/blocnote/apps/budgetSimulator/views.py index 89dec3b..fe7234b 100644 --- a/blocnote/apps/budgetSimulator/views.py +++ b/blocnote/apps/budgetSimulator/views.py @@ -8,7 +8,6 @@ from bpfin.back_end_call.back_end_budget import budget_simulation from blocnote.apps.financialInputs.models import FinancingOverview, Bills, BillsOverview, IncomeStatement, GrowthRate from blocnote.apps.financialInputs.models import Liabilities, CashBalance, CustomerPreference, LoanOptions - def get_analysis_commissioning_dates(building_id): """Fetch the proforma start date, proforma duration and commissioning date.""" financing_overview_objects = FinancingOverview.objects.filter(building_id=building_id) @@ -72,54 +71,18 @@ def get_raw_bill(building_id): def get_annual_bills(building_id): """Fetch manually input annual values from the database.""" annual_bills = {} - - electricity_objs = BillsOverview.objects.filter( - building_id=building_id, - electricity_is_user_input=True, - ) - - gas_objs = BillsOverview.objects.filter( - building_id=building_id, - gas_is_user_input=True, - ) - - oil_objs = BillsOverview.objects.filter( - building_id=building_id, - oil_is_user_input=True, - ) - - water_objs = BillsOverview.objects.filter( - building_id=building_id, - water_is_user_input=True, - ) - - if electricity_objs: - annual_bills['electricity'] = {} - for obj in electricity_objs: - annual_bills['electricity'][obj.year] = float(obj.electricity) if obj.electricity else None - else: - annual_bills['electricity'] = None - - if gas_objs: - annual_bills['gas'] = {} - for obj in gas_objs: - annual_bills['gas'][obj.year] = float(obj.gas) if obj.gas else None - else: - annual_bills['gas'] = None - - if oil_objs: - annual_bills['oil'] = {} - for obj in oil_objs: - annual_bills['oil'][obj.year] = float(obj.oil) if obj.oil else None - else: - annual_bills['oil'] = None - - if water_objs: - annual_bills['water'] = {} - for obj in water_objs: - annual_bills['water'][obj.year] = float(obj.water) if obj.water else None - else: - annual_bills['water'] = None + utilities = ['electricity', 'gas', 'oil', 'water'] + bills_overview_objs = BillsOverview.objects.filter(building_id=building_id) + for obj in bills_overview_objs: + for utility in utilities: + if obj.__dict__[utility+'_is_user_input']: + if utility not in annual_bills: + annual_bills[utility] = {} + value = float(obj.__dict__[utility]) if obj.__dict__[utility] else None + annual_bills[utility][obj.__dict__['year']] = value + for utility in utilities: + if utility not in annual_bills: + annual_bills[utility] = None return annual_bills -- GitLab From f38271768fe616320394ab7d91aac0ee56cdfa85 Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Thu, 8 Jun 2017 12:40:55 -0400 Subject: [PATCH 29/31] Rewrite get_liability. --- blocnote/apps/budgetSimulator/views.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/blocnote/apps/budgetSimulator/views.py b/blocnote/apps/budgetSimulator/views.py index fe7234b..2c8fcfb 100644 --- a/blocnote/apps/budgetSimulator/views.py +++ b/blocnote/apps/budgetSimulator/views.py @@ -153,10 +153,8 @@ def get_liability(building_id): liability_objs = Liabilities.objects.filter(building_id=building_id) liabilities_input = {} if liability_objs: - index = 1 - for obj in liability_objs: - key = 'debt'+str(index) - index += 1 + for index, obj in enumerate(liability_objs): + key = 'debt'+str(index + 1) liability = float(obj.monthly_service) lender = obj.lender remaining_term = int(obj.remaining_term) -- GitLab From 09f108cbe6e8cea33528139f8a7fffdccecc9288 Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Thu, 8 Jun 2017 14:07:04 -0400 Subject: [PATCH 30/31] Change to list comprehension in loan-options. --- blocnote/apps/budgetSimulator/views.py | 19 ++++++++----------- 1 file changed, 8 insertions(+), 11 deletions(-) diff --git a/blocnote/apps/budgetSimulator/views.py b/blocnote/apps/budgetSimulator/views.py index 2c8fcfb..e48f88d 100644 --- a/blocnote/apps/budgetSimulator/views.py +++ b/blocnote/apps/budgetSimulator/views.py @@ -153,8 +153,8 @@ def get_liability(building_id): liability_objs = Liabilities.objects.filter(building_id=building_id) liabilities_input = {} if liability_objs: - for index, obj in enumerate(liability_objs): - key = 'debt'+str(index + 1) + for index, obj in enumerate(liability_objs, 1): + key = 'debt'+str(index) liability = float(obj.monthly_service) lender = obj.lender remaining_term = int(obj.remaining_term) @@ -198,15 +198,12 @@ def get_loan_input(building_id): """ loan_options_objs = LoanOptions.objects.filter(building_id=building_id) if loan_options_objs: - loan_options = [] - for obj in loan_options_objs: - record = { - 'institute': obj.lender.name, - 'max_amount': float(obj.max_loan_amount), - 'interest': float(obj.interest_rate)/100, - 'duration': int(obj.duration), - } - loan_options.append(record) + loan_options = [{ + 'institute': obj.lender.name, + 'max_amount': float(obj.max_loan_amount), + 'interest': float(obj.interest_rate)/100, + 'duration': int(obj.duration), + } for obj in loan_options_objs] return loan_options else: raise AttributeError("Could not find Loan Options for this building id.") -- GitLab From f562cc4e0c40756b7021fc490f7756481665b99e Mon Sep 17 00:00:00 2001 From: Adarsh Murthy Date: Thu, 8 Jun 2017 14:16:06 -0400 Subject: [PATCH 31/31] Add blank line after import statements. --- blocnote/apps/budgetSimulator/views.py | 1 + 1 file changed, 1 insertion(+) diff --git a/blocnote/apps/budgetSimulator/views.py b/blocnote/apps/budgetSimulator/views.py index e48f88d..8d1c432 100644 --- a/blocnote/apps/budgetSimulator/views.py +++ b/blocnote/apps/budgetSimulator/views.py @@ -8,6 +8,7 @@ from bpfin.back_end_call.back_end_budget import budget_simulation from blocnote.apps.financialInputs.models import FinancingOverview, Bills, BillsOverview, IncomeStatement, GrowthRate from blocnote.apps.financialInputs.models import Liabilities, CashBalance, CustomerPreference, LoanOptions + def get_analysis_commissioning_dates(building_id): """Fetch the proforma start date, proforma duration and commissioning date.""" financing_overview_objects = FinancingOverview.objects.filter(building_id=building_id) -- GitLab