FINERACT-1801: Configuration for Arrears and Delinquency Display
This commit is contained in:
committed by
Adam Saghy
parent
55e7f5e48c
commit
4b5a795327
@@ -114,4 +114,5 @@
|
|||||||
<include file="parts/0092_add_periodic_accrual_entries_business_step.xml" relativeToChangelogFile="true" />
|
<include file="parts/0092_add_periodic_accrual_entries_business_step.xml" relativeToChangelogFile="true" />
|
||||||
<include file="parts/0093_update_general_accounting_table_reports.xml" relativeToChangelogFile="true" />
|
<include file="parts/0093_update_general_accounting_table_reports.xml" relativeToChangelogFile="true" />
|
||||||
<include file="parts/0094_add_external_event_default_configuration.xml" relativeToChangelogFile="true" />
|
<include file="parts/0094_add_external_event_default_configuration.xml" relativeToChangelogFile="true" />
|
||||||
|
<include file="parts/0095_add_delinquency_and_arrears_display_configuration.xml" relativeToChangelogFile="true" />
|
||||||
</databaseChangeLog>
|
</databaseChangeLog>
|
||||||
|
|||||||
+37
@@ -0,0 +1,37 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!--
|
||||||
|
|
||||||
|
Licensed to the Apache Software Foundation (ASF) under one
|
||||||
|
or more contributor license agreements. See the NOTICE file
|
||||||
|
distributed with this work for additional information
|
||||||
|
regarding copyright ownership. The ASF licenses this file
|
||||||
|
to you under the Apache License, Version 2.0 (the
|
||||||
|
"License"); you may not use this file except in compliance
|
||||||
|
with the License. You may obtain a copy of the License at
|
||||||
|
|
||||||
|
http://www.apache.org/licenses/LICENSE-2.0
|
||||||
|
|
||||||
|
Unless required by applicable law or agreed to in writing,
|
||||||
|
software distributed under the License is distributed on an
|
||||||
|
"AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
||||||
|
KIND, either express or implied. See the License for the
|
||||||
|
specific language governing permissions and limitations
|
||||||
|
under the License.
|
||||||
|
|
||||||
|
-->
|
||||||
|
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.3.xsd">
|
||||||
|
<changeSet author="fineract" id="1">
|
||||||
|
<insert tableName="c_configuration">
|
||||||
|
<column name="id" valueNumeric="55"/>
|
||||||
|
<column name="name" value="loan-arrears-delinquency-display-data"/>
|
||||||
|
<column name="value" value="0"/>
|
||||||
|
<column name="date_value"/>
|
||||||
|
<column name="string_value"/>
|
||||||
|
<column name="enabled" valueBoolean="true"/>
|
||||||
|
<column name="is_trap_door" valueBoolean="false"/>
|
||||||
|
<column name="description" value="0 - Both, 1 - Arrears, 2- Delinquency"/>
|
||||||
|
</insert>
|
||||||
|
</changeSet>
|
||||||
|
</databaseChangeLog>
|
||||||
+11
-3
@@ -119,9 +119,9 @@ public class GlobalConfigurationHelper {
|
|||||||
ArrayList<HashMap> expectedGlobalConfigurations = getAllDefaultGlobalConfigurations();
|
ArrayList<HashMap> expectedGlobalConfigurations = getAllDefaultGlobalConfigurations();
|
||||||
ArrayList<HashMap> actualGlobalConfigurations = getAllGlobalConfigurations(requestSpec, responseSpec);
|
ArrayList<HashMap> actualGlobalConfigurations = getAllGlobalConfigurations(requestSpec, responseSpec);
|
||||||
|
|
||||||
// There are currently 49 global configurations.
|
// There are currently 50 global configurations.
|
||||||
Assertions.assertEquals(49, expectedGlobalConfigurations.size());
|
Assertions.assertEquals(50, expectedGlobalConfigurations.size());
|
||||||
Assertions.assertEquals(49, actualGlobalConfigurations.size());
|
Assertions.assertEquals(50, actualGlobalConfigurations.size());
|
||||||
|
|
||||||
for (int i = 0; i < expectedGlobalConfigurations.size(); i++) {
|
for (int i = 0; i < expectedGlobalConfigurations.size(); i++) {
|
||||||
|
|
||||||
@@ -548,6 +548,14 @@ public class GlobalConfigurationHelper {
|
|||||||
reportExportS3FolderName.put("enabled", false);
|
reportExportS3FolderName.put("enabled", false);
|
||||||
reportExportS3FolderName.put("trapDoor", false);
|
reportExportS3FolderName.put("trapDoor", false);
|
||||||
defaults.add(reportExportS3FolderName);
|
defaults.add(reportExportS3FolderName);
|
||||||
|
|
||||||
|
HashMap<String, Object> loanArrearsDelinquencyDisplayData = new HashMap<>();
|
||||||
|
loanArrearsDelinquencyDisplayData.put("id", 55);
|
||||||
|
loanArrearsDelinquencyDisplayData.put("name", "loan-arrears-delinquency-display-data");
|
||||||
|
loanArrearsDelinquencyDisplayData.put("value", 0);
|
||||||
|
loanArrearsDelinquencyDisplayData.put("enabled", true);
|
||||||
|
loanArrearsDelinquencyDisplayData.put("trapDoor", false);
|
||||||
|
defaults.add(loanArrearsDelinquencyDisplayData);
|
||||||
return defaults;
|
return defaults;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user