From 21013749f43a39ab7fbf94ca1f1f1932ff09d478 Mon Sep 17 00:00:00 2001 From: Jose Alberto Hernandez Date: Tue, 17 Jan 2023 13:31:10 -0600 Subject: [PATCH] FINERACT-1853: General accounting summary table reports --- .../db/changelog/tenant/changelog-tenant.xml | 1 + ...4_add_general_accounting_table_reports.xml | 128 ++++++++++++++++++ .../integrationtests/client/ReportsTest.java | 2 +- 3 files changed, 130 insertions(+), 1 deletion(-) create mode 100644 fineract-provider/src/main/resources/db/changelog/tenant/parts/0084_add_general_accounting_table_reports.xml 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 c7eb5a792..932f1fec5 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 @@ -103,4 +103,5 @@ + diff --git a/fineract-provider/src/main/resources/db/changelog/tenant/parts/0084_add_general_accounting_table_reports.xml b/fineract-provider/src/main/resources/db/changelog/tenant/parts/0084_add_general_accounting_table_reports.xml new file mode 100644 index 000000000..07854d7da --- /dev/null +++ b/fineract-provider/src/main/resources/db/changelog/tenant/parts/0084_add_general_accounting_table_reports.xml @@ -0,0 +1,128 @@ + + + + + + + + + + + + + + + + + + + INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name) VALUES + ((SELECT id FROM stretchy_report WHERE report_name = 'Trial Balance Summary Report'), 5, 'officeId'); + + + INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name) VALUES + ((SELECT id FROM stretchy_report WHERE report_name = 'Trial Balance Summary Report'), 2, 'endDate'); + + + + + + + + + + + + + + + + + + + INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name) VALUES + ((SELECT id FROM stretchy_report WHERE report_name = 'Transaction Summary Report'), 5, 'officeId'); + + + INSERT INTO stretchy_report_parameter (report_id, parameter_id, report_parameter_name) VALUES + ((SELECT id FROM stretchy_report WHERE report_name = 'Transaction Summary Report'), 2, 'endDate'); + + + diff --git a/integration-tests/src/test/java/org/apache/fineract/integrationtests/client/ReportsTest.java b/integration-tests/src/test/java/org/apache/fineract/integrationtests/client/ReportsTest.java index 9430ac556..72bfcef1d 100644 --- a/integration-tests/src/test/java/org/apache/fineract/integrationtests/client/ReportsTest.java +++ b/integration-tests/src/test/java/org/apache/fineract/integrationtests/client/ReportsTest.java @@ -42,7 +42,7 @@ public class ReportsTest extends IntegrationTest { @Test void listReports() { - assertThat(ok(fineract().reports.retrieveReportList())).hasSize(124); + assertThat(ok(fineract().reports.retrieveReportList())).hasSize(126); } @Test