paulius-kazokas / Real-Estate-Bill-Generator

Project imitates users real estate monthly utility usage and bill generation.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

apache-common-codec apache-commons-collections apache-commons-lang joda-time mysql-connector-j org-json junit-jupiter-api mockito lombok slf4j-shield maven-compiler sonarqube-maven-scanner

jdk maven sonarqube

java xml json

Quality Gate Status Bugs Code Smells Duplicated Lines (%) Lines of Code Security Rating Vulnerabilities Coverage

Real Estate Bill Generator

27/11/2020

Code:

  • implemented unit price and pvm generation for each utility

13/11/2020

Code

  • implemented current monthly bill report when chosen all properties

12/10/2020

Code

  • implemented current month bill generation

11/11/2020

Code

  • implemented custom bill generation. User can choose all properties, utilities and date for each utility (with partial input validation)
  • moved bill related actions to separated class

11/10/2020

Github

  • updated sandbox_database.sql file
  • uploaded database schema photo

Code

  • fixed database schema
  • fixed getIndicatorsByProperty method to correctly get Indicator list
  • simplified DatabaseConfig
  • removed unused mothods
  • added bill generation by address

(updated Upcoming section)

Getting Started

CI/CD pipeline

  • Develop new feature from project board

  • Write tests

  • Sonar scan

    • Run mvn clean install sonar:sonar results will be located on SonarCloud

    Note. To scan locally run StartSonar.sh then run mvn clean install sonar:sonar -Dmaven.wagon.http.ssl.insecure=true -Dsonar.host.url=http://localhost:9000 and the results will be located on Local SonarQube

  • Commit and push changes

    • mvn clean install
    • git add --all
    • git commit -m ""
    • git push

Database schema

image


Upcoming

Fixed Indicators database table

Indicators table will have property ID. Property table will contain ID, type, address data only.

NEW Bill table

Bill table will include ID, personalcode, date, filtering cmd, json report for filtering cmd. Joined with User table

Filtering

Ability to choose utilities and dates for each properties. Save the following user input as filteringCmd

filteringCmd example: address+all+2020-08,2020-07,2020-04,2020-08,2020-07;another address+Electricity,Water+2020-09

ToDo

  • make a choice for user to pick all properties via input

  • make a choice for user to pick all utilities via input

Export bill

Generate bill name by chosen filter

User filtering history

Allow user to look which filters were used to generate bill reports. If entered filtering were used before, system will notify user and then will extract from database

Check user bills contains custom filter

Custom filter will include users custom filtering, by that the filter will be parsed and json report will be generated, inserted into Bill table ( this will enable user history and instead generating report the already existed report will be suggested and showsn from database )

Recheck calculations

~~Check when using filters if correct calculations are applied to calculate utility and total prices


Sources

Github ReadMe

LinkedIn StackOverflow

About

Project imitates users real estate monthly utility usage and bill generation.


Languages

Language:Java 100.0%