Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add datafields into Loan class #124

Merged

Conversation

Kelly9373
Copy link
Collaborator

For issue: #103

@Kelly9373 Kelly9373 added this to the v1.3 milestone Oct 23, 2018
@coveralls
Copy link

coveralls commented Oct 23, 2018

Pull Request Test Coverage Report for Build 402

  • 141 of 142 (99.3%) changed or added relevant lines in 8 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.9%) to 92.572%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/main/java/seedu/address/model/loan/Loan.java 26 27 96.3%
Totals Coverage Status
Change from base Build 384: 0.9%
Covered Lines: 1832
Relevant Lines: 1979

💛 - Coveralls

Copy link
Collaborator

@OrangeJuice7 OrangeJuice7 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can update the javadoc for Loan.isSameLoan() to say "Returns true if both loans have the same customer name, NRIC, bike, and at least one other field (Email, Phone, LoanRate, LoanTime)."

Otherwise quite alright. I'll open an issue for the parts which create a new Bike on the spot.

@Kelly9373 Kelly9373 merged commit 7378906 into CS2103-AY1819S1-F10-2:master Oct 24, 2018
+ PREFIX_PHONE + "PHONE "
+ PREFIX_EMAIL + "EMAIL "
+ PREFIX_ADDRESS + "ADDRESS "
+ PREFIX_BIKE + "BIKE "
+ PREFIX_LOANRATE + "LOANRATE "
+ PREFIX_LOANTIME + "LOANTIME "
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not correct. Loan start time is NOT a parameter when adding a loan!
The start time based on when the loan was created.

+ "[" + PREFIX_PHONE + "PHONE] "
+ "[" + PREFIX_EMAIL + "EMAIL] "
+ "[" + PREFIX_ADDRESS + "ADDRESS] "
+ "[" + PREFIX_BIKE + "BIKE] "
+ "[" + PREFIX_LOANRATE + "LOANRATE] "
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LoanTime is not supposed to be editable.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies, I referenced the wrong line. This comment references line 56, which is 1 line below.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants