This is an automated email from the ASF dual-hosted git repository.
adamsaghy pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/fineract.git
The following commit(s) were added to refs/heads/develop by this push:
new 4b5a79532 FINERACT-1801: Configuration for Arrears and Delinquency
Display
4b5a79532 is described below
commit 4b5a795327648f2e25f452a98b8bcc18b72447a3
Author: Jose Alberto Hernandez <[email protected]>
AuthorDate: Thu Mar 9 23:06:21 2023 -0600
FINERACT-1801: Configuration for Arrears and Delinquency Display
---
.../db/changelog/tenant/changelog-tenant.xml | 1 +
...linquency_and_arrears_display_configuration.xml | 37 ++++++++++++++++++++++
.../common/GlobalConfigurationHelper.java | 14 ++++++--
3 files changed, 49 insertions(+), 3 deletions(-)
diff --git
a/fineract-provider/src/main/resources/db/changelog/tenant/changelog-tenant.xml
b/fineract-provider/src/main/resources/db/changelog/tenant/changelog-tenant.xml
index 7e1fd751b..f5b28655a 100644
---
a/fineract-provider/src/main/resources/db/changelog/tenant/changelog-tenant.xml
+++
b/fineract-provider/src/main/resources/db/changelog/tenant/changelog-tenant.xml
@@ -114,4 +114,5 @@
<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/0094_add_external_event_default_configuration.xml"
relativeToChangelogFile="true" />
+ <include
file="parts/0095_add_delinquency_and_arrears_display_configuration.xml"
relativeToChangelogFile="true" />
</databaseChangeLog>
diff --git
a/fineract-provider/src/main/resources/db/changelog/tenant/parts/0095_add_delinquency_and_arrears_display_configuration.xml
b/fineract-provider/src/main/resources/db/changelog/tenant/parts/0095_add_delinquency_and_arrears_display_configuration.xml
new file mode 100644
index 000000000..0adb278e6
--- /dev/null
+++
b/fineract-provider/src/main/resources/db/changelog/tenant/parts/0095_add_delinquency_and_arrears_display_configuration.xml
@@ -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>
diff --git
a/integration-tests/src/test/java/org/apache/fineract/integrationtests/common/GlobalConfigurationHelper.java
b/integration-tests/src/test/java/org/apache/fineract/integrationtests/common/GlobalConfigurationHelper.java
index 6ba54e4c7..9981ab436 100644
---
a/integration-tests/src/test/java/org/apache/fineract/integrationtests/common/GlobalConfigurationHelper.java
+++
b/integration-tests/src/test/java/org/apache/fineract/integrationtests/common/GlobalConfigurationHelper.java
@@ -119,9 +119,9 @@ public class GlobalConfigurationHelper {
ArrayList<HashMap> expectedGlobalConfigurations =
getAllDefaultGlobalConfigurations();
ArrayList<HashMap> actualGlobalConfigurations =
getAllGlobalConfigurations(requestSpec, responseSpec);
- // There are currently 49 global configurations.
- Assertions.assertEquals(49, expectedGlobalConfigurations.size());
- Assertions.assertEquals(49, actualGlobalConfigurations.size());
+ // There are currently 50 global configurations.
+ Assertions.assertEquals(50, expectedGlobalConfigurations.size());
+ Assertions.assertEquals(50, actualGlobalConfigurations.size());
for (int i = 0; i < expectedGlobalConfigurations.size(); i++) {
@@ -548,6 +548,14 @@ public class GlobalConfigurationHelper {
reportExportS3FolderName.put("enabled", false);
reportExportS3FolderName.put("trapDoor", false);
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;
}