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

fix/FSF-28 #1026

Merged
merged 7 commits into from
Aug 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1024,4 +1024,8 @@ public Integer getMeetingStart() {
public Integer getMeetingEnd() {
return meetingEnd;
}

public void updateOffice(Office office) {
this.office = office;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -1117,6 +1117,7 @@ public CommandProcessingResult transferGroup(JsonCommand command) {
group.updateMeetingDay(newCenter.getMeetingDay());
group.updateMeetingStart(newCenter.getMeetingStart());
group.updateMeetingEnd(newCenter.getMeetingEnd());
group.updateOffice(newCenter.getOffice());
this.groupRepository.saveAndFlush(group);
return new CommandProcessingResultBuilder() //
.withCommandId(command.commandId()) //
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,12 @@ private BigDecimal generateInstallmentFeeRate(Charge charge, JsonObject loanChar
if (charge.isInstallmentFeeCharge() && charge.isAddOnInstallmentFeeType() && loanApplicationTermsCharges != null) {
if (ChargeCalculationType.fromInt(charge.getChargeCalculation()).isPercentageBased()) {
// update rate
LocalDate repaymentStartFromDate = loanApplicationTermsCharges.getRepaymentStartFromDate()!=null?
loanApplicationTermsCharges.getRepaymentStartFromDate():
loanApplicationTermsCharges.getCalculatedRepaymentsStartingFromLocalDate();

Pair<Integer, BigDecimal> addOnDaysAndRate = charge.getAddOnDisbursementChargeRate(
loanApplicationTermsCharges.getExpectedDisbursementDate(), loanApplicationTermsCharges.getRepaymentStartFromDate());
loanApplicationTermsCharges.getExpectedDisbursementDate(), repaymentStartFromDate);
rate = addOnDaysAndRate.getRight();
loanChargeElement.add("amount", new JsonPrimitive(rate));
}
Expand Down
Loading