Merge branch 'MIFOSX-1809' of git://github.com/chandrikamohith/mifosx into chandrikamohith-MIFOSX-1809

This commit is contained in:
Vishwas Babu A J
2015-01-07 22:56:28 -08:00
4 changed files with 4 additions and 2 deletions
@@ -22,6 +22,7 @@ public class GroupingTypesApiConstants {
public static final String GROUP_ROLE_NAME = "GROUPROLE";
public static final String GROUP_CLOSURE_REASON = "GroupClosureReason";
public static final String CENTER_CLOSURE_REASON = "CenterClosureReason";
public static final String roleParamName = "role";
public static final String groupIdParamName = "groupId";
@@ -504,7 +504,7 @@ public class CenterReadPlatformServiceImpl implements CenterReadPlatformService
@Override
public CenterData retrieveCenterWithClosureReasons() {
final List<CodeValueData> closureReasons = new ArrayList<>(
this.codeValueReadPlatformService.retrieveCodeValuesByCode(GroupingTypesApiConstants.GROUP_CLOSURE_REASON));
this.codeValueReadPlatformService.retrieveCodeValuesByCode(GroupingTypesApiConstants.CENTER_CLOSURE_REASON));
return CenterData.withClosureReasons(closureReasons);
}
@@ -589,7 +589,7 @@ public class GroupingTypesWritePlatformServiceJpaRepositoryImpl implements Group
final Long closureReasonId = command.longValueOfParameterNamed(GroupingTypesApiConstants.closureReasonIdParamName);
final CodeValue closureReason = this.codeValueRepository.findOneByCodeNameAndIdWithNotFoundDetection(
GroupingTypesApiConstants.GROUP_CLOSURE_REASON, closureReasonId);
GroupingTypesApiConstants.CENTER_CLOSURE_REASON, closureReasonId);
final AppUser currentUser = this.context.authenticatedUser();
@@ -0,0 +1 @@
INSERT INTO `m_code` (`code_name`,`is_system_defined`) VALUES('CenterClosureReason',1);