From 4b32242e6362b31bb171fc9c61cb648d8830a172 Mon Sep 17 00:00:00 2001 From: Leonardo Hildt Date: Fri, 17 May 2024 11:43:27 -0300 Subject: [PATCH 1/3] Update changelog-tenant.xml --- .../src/main/resources/db/changelog/tenant/changelog-tenant.xml | 1 + 1 file changed, 1 insertion(+) 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 715e801e8fb..0c35399b258 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 @@ -150,4 +150,5 @@ + From db70e6a4cde4b0563b14b2b91ee94dff1986458c Mon Sep 17 00:00:00 2001 From: Faheem Ahmad Date: Fri, 17 May 2024 20:30:54 +0500 Subject: [PATCH 2/3] fixed typo in query --- ..._FBR_644_hard_policy_checks_updates_sql_updates.xml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/fineract-provider/src/main/resources/db/changelog/tenant/parts/0131_FBR_644_hard_policy_checks_updates_sql_updates.xml b/fineract-provider/src/main/resources/db/changelog/tenant/parts/0131_FBR_644_hard_policy_checks_updates_sql_updates.xml index a16bea14952..70203ec8c96 100644 --- a/fineract-provider/src/main/resources/db/changelog/tenant/parts/0131_FBR_644_hard_policy_checks_updates_sql_updates.xml +++ b/fineract-provider/src/main/resources/db/changelog/tenant/parts/0131_FBR_644_hard_policy_checks_updates_sql_updates.xml @@ -707,7 +707,7 @@ WHEN prequalification_details.client_count > 0 THEN ''RED'' 0 AND overdue_loans.loan_count = 0 THEN 'GREEN' - WHEN recredit_loans.loan_count > 0 AND overdue_loans.loan_count > 0 THEN 'RED' - WHEN recredit_loans.loan_count = 0 THEN 'GREEN' + WHEN recredit_loans.loan_count > 0 AND overdue_loans.loan_count = 0 THEN ''GREEN'' + WHEN recredit_loans.loan_count > 0 AND overdue_loans.loan_count > 0 THEN ''RED'' + WHEN recredit_loans.loan_count = 0 THEN ''GREEN'' END as color FROM m_prequalification_group mpg LEFT JOIN ( From 77de32329dda8c3723fec52cd3b57b79a6f62886 Mon Sep 17 00:00:00 2001 From: Faheem Ahmad Date: Fri, 17 May 2024 20:47:42 +0500 Subject: [PATCH 3/3] fixed table name in query --- .../PrequalificationChecklistWritePlatformServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fineract-provider/src/main/java/org/apache/fineract/organisation/prequalification/service/PrequalificationChecklistWritePlatformServiceImpl.java b/fineract-provider/src/main/java/org/apache/fineract/organisation/prequalification/service/PrequalificationChecklistWritePlatformServiceImpl.java index be41cd4cadd..63aca5a187c 100644 --- a/fineract-provider/src/main/java/org/apache/fineract/organisation/prequalification/service/PrequalificationChecklistWritePlatformServiceImpl.java +++ b/fineract-provider/src/main/java/org/apache/fineract/organisation/prequalification/service/PrequalificationChecklistWritePlatformServiceImpl.java @@ -733,7 +733,7 @@ SELECT COUNT(*) final Long documentCount = this.jdbcTemplate.queryForObject(documentCountSql, Long.class, params); String query = "Select categoria_fiador1, categoria_fiador2, cliente_activo_fiador1, cliente_activo_fiador2 " + - "from m_prequalification_group where id = ?"; + "from m_client_loan_additional_properties where id = ?"; List> res = this.jdbcTemplate.queryForList(query, new Object[] {prequalificationId}); if (!res.isEmpty()) {