diff --git a/mifosng-provider/src/main/pentahoReports/GeneralLedgerReport.properties b/mifosng-provider/src/main/pentahoReports/GeneralLedgerReport.properties new file mode 100644 index 000000000..7c741016c --- /dev/null +++ b/mifosng-provider/src/main/pentahoReports/GeneralLedgerReport.properties @@ -0,0 +1,16 @@ +lable.detail.Vch_No_Unit=Vch No./Unit +lable.detail.AC.code=A/C Code +lable.detail.Account_Description=Account Description +lable.detail.Narration=Narration +lable.detail.Debits=Debits +lable.detail.Credits=Credits +lable.detail.Opening_Balance=BALANCE BROUGHT FORWARD (b/f) +lable.detail.Day_Total=Day Total +lable.detail.Closing_Balance=Closing Balance +lable.detail.date=Date +lable.detail.Cash_Book_From=Ledger Report +lable.detail.Run_Date=Run Date : +lable.detail.Cash_Code= Ledger Account : +lable.header=CARITAS NAIROBI +lable.page=Page No +lable.detail.AfterTxn=Balance \ No newline at end of file diff --git a/mifosng-provider/src/main/pentahoReports/GeneralLedgerReport.prpt b/mifosng-provider/src/main/pentahoReports/GeneralLedgerReport.prpt new file mode 100644 index 000000000..ec25794a9 Binary files /dev/null and b/mifosng-provider/src/main/pentahoReports/GeneralLedgerReport.prpt differ diff --git a/mifosng-provider/src/main/resources/sql/migrations/core_db/V254__General_Ledger_Report.sql b/mifosng-provider/src/main/resources/sql/migrations/core_db/V254__General_Ledger_Report.sql new file mode 100644 index 000000000..8f6205952 --- /dev/null +++ b/mifosng-provider/src/main/resources/sql/migrations/core_db/V254__General_Ledger_Report.sql @@ -0,0 +1,24 @@ +INSERT INTO `stretchy_report` (`report_name`, `report_type`, `report_subtype`, `report_category`, `report_sql`, `description`, `core_report`, `use_report`) VALUES ('GeneralLedgerReport', 'Pentaho', NULL, 'Accounting', NULL, NULL, 0, 1); + +INSERT INTO `stretchy_parameter` (`parameter_name`, `parameter_variable`, `parameter_label`, `parameter_displayType`, `parameter_FormatType`, `parameter_default`, `special`, `selectOne`, `selectAll`, `parameter_sql`, `parent_id`) VALUES ('SelectGLAccountNO', 'GLAccountNO', 'GLAccountNO', 'select', 'number', '0', NULL, NULL, NULL, '\r\n\r\n\r\n\r\n\r\n(select id aid,name aname\r\nfrom acc_gl_account)\r\nunion\r\n(select -1,\'ALL\') \r\norder by 1 ', NULL); + +INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES + ((select sr.id from stretchy_report sr where sr.report_name='GeneralLedgerReport'), + (select sp.id from stretchy_parameter sp where sp.parameter_name='SelectGLAccountNO'), + 'Account'); + + INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES + ((select sr.id from stretchy_report sr where sr.report_name='GeneralLedgerReport'), + (select sp.id from stretchy_parameter sp where sp.parameter_name='startDateselect'), + 'ondate'); + + INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES + ((select sr.id from stretchy_report sr where sr.report_name='GeneralLedgerReport'), + (select sp.id from stretchy_parameter sp where sp.parameter_name='endDateselect'), + 'todate'); + + INSERT INTO `stretchy_report_parameter` (`report_id`, `parameter_id`, `report_parameter_name`) VALUES + ((select sr.id from stretchy_report sr where sr.report_name='GeneralLedgerReport'), + (select sp.id from stretchy_parameter sp where sp.parameter_name='OfficeIdSelectOne'), + 'office'); + \ No newline at end of file