Skip to content

Semi-Monthly Feature (FINERACT-1322)#1884

Closed
Cadreia wants to merge 2 commits intoapache:developfrom
finscaleAI:semi-monthly
Closed

Semi-Monthly Feature (FINERACT-1322)#1884
Cadreia wants to merge 2 commits intoapache:developfrom
finscaleAI:semi-monthly

Conversation

@Cadreia
Copy link
Contributor

@Cadreia Cadreia commented Sep 27, 2021

Description

  • Implements the semi-monthly loan scheduler feature.
  • Details of this issue can be found on this Apache Fineract JIRA ticket.
  • An article has been written on this.
  • Corresponding UI change is here.

Checklist

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Write the commit message as per https://github.com/apache/fineract/#pull-requests

  • Acknowledge that we will not review PRs that are not passing the build ("green") - it is your responsibility to get a proposed PR to pass the build, not primarily the project's maintainers.

  • Create/update unit or integration tests for verifying the changes made.

  • Follow coding conventions at https://cwiki.apache.org/confluence/display/FINERACT/Coding+Conventions.

  • Add required Swagger annotation and update API documentation at fineract-provider/src/main/resources/static/api-docs/apiLive.htm with details of any API changes

  • Submission is not a "code dump". (Large changes can be made "in repository" via a branch. Ask on the developer mailing list for guidance, if required.)

FYI our guidelines for code reviews are at https://cwiki.apache.org/confluence/display/FINERACT/Code+Review+Guide.

Copy link
Contributor

@ptuomola ptuomola left a comment

Choose a reason for hiding this comment

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

Also have we tested what happens if one of the semi dates falls on a date which does not exist in every month - i.e. 31st? Does the logic work sensibly in that case as well?

productRelatedDetail.getRepayEvery(), productRelatedDetail.getRepaymentPeriodFrequencyType().getValue(),
newLoanApplication);
// this.fromApiJsonDeserializer.validateLoanTermAndRepaidEveryValues(newLoanApplication.getTermFrequency(),
// newLoanApplication.getTermPeriodFrequencyType(), productRelatedDetail.getNumberOfRepayments(),
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this validation commented out?

assertEquals(Float.parseFloat(period.get("totalOriginalDueForPeriod").toString()),
expectedRepaymentSchedule.getTotalOriginalDueForPeriod().floatValue(), 0.0f);
expectedRepaymentSchedule.getTotalOriginalDueForPeriod().floatValue(), 0.1f);

Copy link
Contributor

Choose a reason for hiding this comment

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

Why have these test results changed? I would not expect the existing integration tests to have to change when adding new products...

@BLasan
Copy link
Member

BLasan commented Oct 12, 2021

@Cadreia Please resolve merge conflicts and requested changes by @ptuomola

final Collection<CalendarData> calendarOptions = null;
final Collection<StaffData> loanOfficerOptions = null;

final EnumOptionData termPeriodFrequencyType = product.getRepaymentFrequencyType();
Copy link
Member

Choose a reason for hiding this comment

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

Any reassignments?

final Integer minimumGapBetweenInstallments, final Integer maximumGapBetweenInstallments,
final boolean syncExpectedWithDisbursementDate, final boolean canUseForTopup, final boolean isEqualAmortization,
Collection<RateData> rateOptions, Collection<RateData> rates, final boolean isRatesEnabled) {
Collection<RateData> rateOptions, Collection<RateData> rates, final boolean isRatesEnabled, final LocalDate firstDateForSemi,
Copy link
Member

Choose a reason for hiding this comment

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

Why rateOptions and rates are not final? Any reassignment?


assertEquals(period.get("dueDate").toString(), expectedRepaymentSchedule.getDueDate());
assertEquals(period.get("principalLoanBalanceOutstanding"), expectedRepaymentSchedule.getPrincipalLoanBalanceOutstanding());
assertEquals(Float.parseFloat(period.get("principalLoanBalanceOutstanding").toString()),
Copy link
Member

Choose a reason for hiding this comment

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

Why converted to a Float comparison?

@awasum
Copy link
Contributor

awasum commented Oct 13, 2021

@Cadreia , Please resolve merge conflicts here and address review comments above.

@github-actions
Copy link

This pull request seems to be stale. Are you still planning to work on it? We will automatically close it in 30 days.

@github-actions github-actions bot added the stale label Nov 13, 2021
@BLasan
Copy link
Member

BLasan commented Nov 13, 2021

@Cadreia Could you please address the review comments?

@github-actions github-actions bot removed the stale label Nov 14, 2021
@github-actions
Copy link

This pull request seems to be stale. Are you still planning to work on it? We will automatically close it in 30 days.

@github-actions github-actions bot added the stale label Dec 14, 2021
@github-actions github-actions bot closed this Jan 13, 2022
@awasum
Copy link
Contributor

awasum commented Jan 13, 2022

@Cadreia Please fix review comments and merge conflicts so this can be reviewed and merged. Important feature.

@awasum awasum reopened this Jan 13, 2022
@github-actions github-actions bot removed the stale label Jan 14, 2022
@github-actions
Copy link

This pull request seems to be stale. Are you still planning to work on it? We will automatically close it in 30 days.

@github-actions github-actions bot added the stale label Feb 13, 2022
@github-actions github-actions bot closed this Mar 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants