Fix for client activation withing a group and JLG loan 500 error
This commit is contained in:
+1
-1
@@ -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,
|
||||
|
||||
+1
-3
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user