From 1947031aca456b5ee82ddd896b42eaf10ff332b4 Mon Sep 17 00:00:00 2001 From: venkatconflux Date: Thu, 4 Jun 2015 09:47:00 +0530 Subject: [PATCH] MIFOSX-2061 : charges for savings are specific for branch --- .../portfolio/charge/service/ChargeReadPlatformServiceImpl.java | 1 + 1 file changed, 1 insertion(+) diff --git a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/charge/service/ChargeReadPlatformServiceImpl.java b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/charge/service/ChargeReadPlatformServiceImpl.java index 2eed617a9..ada5b668d 100755 --- a/mifosng-provider/src/main/java/org/mifosplatform/portfolio/charge/service/ChargeReadPlatformServiceImpl.java +++ b/mifosng-provider/src/main/java/org/mifosplatform/portfolio/charge/service/ChargeReadPlatformServiceImpl.java @@ -353,6 +353,7 @@ public class ChargeReadPlatformServiceImpl implements ChargeReadPlatformService String sql = "select " + rm.chargeSchema() + " join m_savings_account sa on sa.currency_code = c.currency_code" + " where c.is_deleted=0 and c.is_active=1 and c.charge_applies_to_enum=? " + " and sa.account_no = ?"; + sql += addInClauseToSQL_toLimitChargesMappedToOffice_ifOfficeSpecificProductsEnabled(); return this.jdbcTemplate.query(sql, rm, new Object[] { ChargeAppliesTo.SAVINGS.getValue(), savingsAccountId });