Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
B
blocnote
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 9
    • Issues 9
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 2
    • Merge Requests 2
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

and though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here

  • Confidential and Proprietary
  • BlocPower
  • blocnote
  • Merge Requests
  • !18

Merged
Opened May 09, 2017 by Tillie Kottmann@deletescapeOwner

Preliminary finance endpoint

  • Overview 0
  • Commits 12
  • Changes 19

Created by: adarsh-murthy

There are changes in both financial-inputs and preliminary-finance.

  1. financial-inputs:
  • Add growth rate model and store growth rate
  • Update frontend to show warning message about changing fund when cursor is over the fund.
  • Update frontend to make sure to reload the loan options table only is fund is changed.
  1. preliminary-finance:
  • Create endpoint.
  • Create Scenario, CostEstimation and SavingsEstimation models.
  • Frontend displays a tab asking scenario name. Display cost and savings estimation tables.
  • Save scenario triggers preliminary analysis.
  • Backend fetches all relevant data from database and calls BP Fin code to perform preliminary analysis and sends the Project Economics and graph data to frontend.
  • Frontend shows the Project Economics table and the Energy Expense Savings graph.

Notes:

  • Scenario and it's details in the tab currently not being saved. Once all components of this table is complete, those components have to be done for multiple tabs. Will be developed later.
  • Currently, scenario can be saved without filling out all the details on financial-inputs. This will be modified to be disabled later.
  • After merging this PR, a lot of refactoring of existing code will take place so don't be too critical with this one.

To test:

  • RUN python manage.py migrate.
  • RUN python manage.py runserver.
  • go to http://127.0.0.1:8000/buildings/<building_id>/financial-inputs/ and fill out all the forms and save them.
  • go to http://127.0.0.1:8000/buildings/<building_id>/preliminary-finance/ and input scenario name and fill cost and saving estimation tables and save to see the output table and graph.
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Reference: exconfidential/blocpower/blocnote!18
Source branch: preliminary-finance-endpoint