Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update changelog-tenant.xml #711

Merged
merged 3 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -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<Map<String, Object>> res = this.jdbcTemplate.queryForList(query,
new Object[] {prequalificationId});
if (!res.isEmpty()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,4 +150,5 @@
<include file="parts/0130_FBR_657_update_loan_additional_properties.xml" relativeToChangelogFile="true"/>
<include file="parts/0130_update_prequalifications_table.xml" relativeToChangelogFile="true"/>
<include file="parts/0131_FBR_648_Plan de Pago Grupal.xml" relativeToChangelogFile="true"/>
<include file="parts/0131_FBR_644_hard_policy_checks_updates_sql_updates.xml" relativeToChangelogFile="true"/>
</databaseChangeLog>
Original file line number Diff line number Diff line change
Expand Up @@ -707,7 +707,7 @@ WHEN prequalification_details.client_count > 0 THEN ''RED''
<changeSet id="19" author="fineract">
<sql>
<![CDATA[
INSERT INTO m_policy (name, label, description) VALUES('Percentage Of Clients To Be Recredited In The Group', 'label.perct.clients.recredited', 'No. De ciclos');
INSERT INTO m_policy (name, label, description) VALUES('Percentage Of Clients To Be Recredited In The Group', 'label.perct.clients.recredited', '% de clientes a re creditar del grupo');
INSERT INTO m_product_policy (policy_id, product_id, evaluation_type) VALUES((select id from m_policy where name = 'Percentage Of Clients To Be Recredited In The Group'), 2, 'GROUP');
INSERT INTO m_product_policy (policy_id, product_id, evaluation_type) VALUES((select id from m_policy where name = 'Percentage Of Clients To Be Recredited In The Group'), 4, 'GROUP');
INSERT INTO m_product_policy (policy_id, product_id, evaluation_type) VALUES((select id from m_policy where name = 'Percentage Of Clients To Be Recredited In The Group'), 5, 'GROUP');
Expand Down Expand Up @@ -753,7 +753,7 @@ VALUES('Percentage Of Clients To Be Recredited In The Group Policy Check', 'Tabl
<changeSet id="20" author="fineract">
<sql>
<![CDATA[
INSERT INTO m_policy (name, label, description) VALUES('Clients In Arrears', 'label.perct.clients.recredited', 'No. De ciclos');
INSERT INTO m_policy (name, label, description) VALUES('Clients In Arrears', 'label.perct.clients.recredited', 'Clientas en mora');
INSERT INTO m_product_policy (policy_id, product_id, evaluation_type) VALUES((select id from m_policy where name = 'Clients In Arrears'), 2, 'GROUP');
INSERT INTO m_product_policy (policy_id, product_id, evaluation_type) VALUES((select id from m_policy where name = 'Clients In Arrears'), 4, 'GROUP');
INSERT INTO m_product_policy (policy_id, product_id, evaluation_type) VALUES((select id from m_policy where name = 'Clients In Arrears'), 5, 'GROUP');
Expand All @@ -763,9 +763,9 @@ VALUES('Percentage Of Clients To Be Recredited In The Group Policy Check', 'Tabl
(report_name, report_type, report_subtype, report_category, report_sql, description, core_report, use_report, self_service_user_report)
VALUES('Clients In Arrears Policy Check', 'Table', NULL, 'Prequalification', 'SELECT overdue_loans.loan_count, recredit_loans.loan_count,
CASE
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'
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 (
Expand Down
Loading