fineract-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rajuan <>
Subject [GitHub] incubator-fineract pull request: adding organisation start in glob...
Date Mon, 29 Feb 2016 04:27:57 GMT
Github user rajuan commented on a diff in the pull request:
    --- Diff: fineract-provider/src/main/java/org/apache/fineract/portfolio/loanaccount/service/
    @@ -1566,15 +1571,20 @@ public LoanTermVariationsData mapRow(final ResultSet rs, @SuppressWarnings("unus
                     .append(" where ((ls.fee_charges_amount <> if(ls.accrual_fee_charges_derived
is null,0, ls.accrual_fee_charges_derived))")
                     .append(" or ( ls.penalty_charges_amount <> if(ls.accrual_penalty_charges_derived
is null,0,ls.accrual_penalty_charges_derived))")
                     .append(" or ( ls.interest_amount <> if(ls.accrual_interest_derived
is null,0,ls.accrual_interest_derived)))")
    -                .append("  and loan.loan_status_id=? and mpl.accounting_type=? and loan.is_npa=0
and ls.duedate <= CURDATE() order by,ls.duedate");
    -        return this.jdbcTemplate.query(sqlBuilder.toString(), mapper, new Object[] {
    -                AccountingRuleType.ACCRUAL_PERIODIC.getValue() });
    +                .append(" and ls.duedate > :organisationstartdate and loan.loan_status_id=:active
and mpl.accounting_type=:type and loan.is_npa=0 and ls.duedate <= CURDATE() order by,ls.duedate");
    +        Map<String, Object> paramMap = new HashMap<>(3);
    +        paramMap.put("active", LoanStatus.ACTIVE.getValue());
    +        paramMap.put("type", AccountingRuleType.ACCRUAL_PERIODIC.getValue());
    +        paramMap.put("organisationstartdate", formatter.print(new LocalDate(organisationStartDate)));
    --- End diff --
    what happens when organisationStartDate is disabled?

If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at or file a JIRA ticket
with INFRA.

View raw message