Skip to content

Commit

Permalink
Merge pull request #738 from tarun0/fix726
Browse files Browse the repository at this point in the history
fix: LoanTermFrequencyType overriding enabled
  • Loading branch information
therajanmaurya authored Aug 2, 2017
2 parents 381c181 + 0951713 commit 82a23f3
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -270,10 +270,10 @@ public void submit() {
loansPayload.setLoanPurposeId(loanPurposeId);
loansPayload.setLoanTermFrequency(
Integer.parseInt(etLoanTerm.getEditableText().toString()));
loansPayload.setLoanTermFrequencyType(loanTermFrequencyType);
loansPayload.setLoanTermFrequencyType(loanTermFrequency);

//loanTermFrequencyType and repaymentFrequencyType should be the same.
loansPayload.setRepaymentFrequencyType(loanTermFrequencyType);
loansPayload.setRepaymentFrequencyType(loanTermFrequency);
loansPayload.setRepaymentFrequencyDayOfWeekType(
repaymentFrequencyDayOfWeek != null ? repaymentFrequencyDayOfWeek : null);
loansPayload.setRepaymentFrequencyNthDayType(
Expand Down Expand Up @@ -718,7 +718,7 @@ private void showHideRepaidMonthSpinners(int visibility) {

private void showDefaultValues() {
interestRatePerPeriod = mLoanTemplate.getInterestRatePerPeriod();
loanTermFrequencyType = mLoanTemplate.getInterestRateFrequencyType().getId();
loanTermFrequency = mLoanTemplate.getTermPeriodFrequencyType().getId();
termFrequency = mLoanTemplate.getTermFrequency();
etPrincipal.setText(String.valueOf(mLoanTemplate.getPrincipal().toString()));
etNumberOfRepayments.setText(String.valueOf(
Expand Down

0 comments on commit 82a23f3

Please sign in to comment.