Merge branch 'develop' of github.com:openMF/mifosx into develop

This commit is contained in:
Vishwas Babu A J
2014-11-13 14:56:20 +05:30
2 changed files with 2 additions and 4 deletions
@@ -581,7 +581,7 @@ public class ClientWritePlatformServiceJpaRepositoryImpl implements ClientWriteP
private void validateParentGroupRulesBeforeClientActivation(Client client) {
Integer minNumberOfClients = configurationDomainService.retrieveMinAllowedClientsInGroup();
Integer maxNumberOfClients = configurationDomainService.retrieveMaxAllowedClientsInGroup();
if (client.getGroups() != null) {
if (client.getGroups() != null && maxNumberOfClients != null) {
for (Group group : client.getGroups()) {
/**
* Since this Client has not yet been associated with the group,
@@ -181,14 +181,12 @@ public class LoanScheduleAssembler {
* be either same frequency or loan freq is multiple of center/group
* meeting freq multiples
*/
if (loanType.isJLGAccount()) {
if ((synchDisbursement != null && synchDisbursement.booleanValue())) {
if (loanType.isJLGAccount() && calendarId != null ) {
calendar = this.calendarRepository.findOne(calendarId);
if (calendar == null) { throw new CalendarNotFoundException(calendarId); }
final PeriodFrequencyType meetingPeriodFrequency = CalendarUtils.getMeetingPeriodFrequencyType(calendar.getRecurrence());
validateRepaymentFrequencyIsSameAsMeetingFrequency(meetingPeriodFrequency.getValue(), repaymentFrequencyType,
CalendarUtils.getInterval(calendar.getRecurrence()), repaymentEvery);
}
}
/*