fineract-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m...@apache.org
Subject [21/52] [abbrv] [partial] incubator-fineract git commit: deleted initial code
Date Mon, 01 Feb 2016 09:43:04 GMT
http://git-wip-us.apache.org/repos/asf/incubator-fineract/blob/66cee785/fineract-db/multi-tenant-demo-backups/default-demo/extra-datatables-and-code-values.sql
----------------------------------------------------------------------
diff --git a/fineract-db/multi-tenant-demo-backups/default-demo/extra-datatables-and-code-values.sql
b/fineract-db/multi-tenant-demo-backups/default-demo/extra-datatables-and-code-values.sql
deleted file mode 100644
index 7c13cb3..0000000
--- a/fineract-db/multi-tenant-demo-backups/default-demo/extra-datatables-and-code-values.sql
+++ /dev/null
@@ -1,221 +0,0 @@
--- add code and code values for datatables dropdowns
-
-INSERT INTO `m_code_value`(`code_id`,`code_value`,`order_position`)
-select mc.id, 'option.Male', ifnull(max(mv.id), 1)
-from m_code mc
-join m_code_value mv on mv.code_id = mc.id
-where mc.`code_name` = "Gender";
-
-INSERT INTO `m_code_value`(`code_id`,`code_value`,`order_position`)
-select mc.id, 'option.Female', ifnull(max(mv.id), 1)
-from m_code mc
-join m_code_value mv on mv.code_id = mc.id
-where mc.`code_name` = "Gender";
-
-INSERT INTO `m_code_value`(`code_id`,`code_value`,`order_position`)
-select mc.id, 'option.Yes', ifnull(max(mv.id), 1)
-from m_code mc
-join m_code_value mv on mv.code_id = mc.id
-where mc.`code_name` = "YesNo";
-
-INSERT INTO `m_code_value`(`code_id`,`code_value`,`order_position`)
-select mc.id, 'option.No', ifnull(max(mv.id), 1)
-from m_code mc
-join m_code_value mv on mv.code_id = mc.id
-where mc.`code_name` = "YesNo";
-
-INSERT INTO `m_code`
-(`code_name`, `is_system_defined`) 
-VALUES 
-('Education',1);
-
-INSERT INTO `m_code_value`(`code_id`,`code_value`,`order_position`)
-select mc.id, 'Primary', ifnull(max(mv.id), 1)
-from m_code mc
-join m_code_value mv on mv.code_id = mc.id
-where mc.`code_name` = "Education";
-
-INSERT INTO `m_code_value`(`code_id`,`code_value`,`order_position`)
-select mc.id, 'Secondary', ifnull(max(mv.id), 1)
-from m_code mc
-join m_code_value mv on mv.code_id = mc.id
-where mc.`code_name` = "Education";
-
-INSERT INTO `m_code_value`(`code_id`,`code_value`,`order_position`)
-select mc.id, 'University', ifnull(max(mv.id), 1)
-from m_code mc
-join m_code_value mv on mv.code_id = mc.id
-where mc.`code_name` = "Education";
-
--- ========= datatables=======
-
-DROP TABLE IF EXISTS `extra_client_details`;
-CREATE TABLE `extra_client_details` (
-  `client_id` bigint(20) NOT NULL,
-  `Business Description` varchar(100) DEFAULT NULL,
-  `Years in Business` int(11) DEFAULT NULL,
-  `Gender_cd` int(11) DEFAULT NULL,
-  `Education_cv` varchar(60) DEFAULT NULL,
-  `Next Visit` date DEFAULT NULL,
-  `Highest Rate Paid` decimal(19,6) DEFAULT NULL,
-  `Comment` text,
-  PRIMARY KEY (`client_id`),
-  CONSTRAINT `FK_extra_client_details` FOREIGN KEY (`client_id`) REFERENCES `m_client` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-
-DROP TABLE IF EXISTS `extra_family_details`;
-CREATE TABLE `extra_family_details` (
-  `id` bigint(20) NOT NULL AUTO_INCREMENT,
-  `client_id` bigint(20) NOT NULL,
-  `Name` varchar(40) DEFAULT NULL,
-  `Date of Birth` date DEFAULT NULL,
-  `Points Score` int(11) DEFAULT NULL,
-  `Education_cd_Highest` int(11) DEFAULT NULL,
-  `Other Notes` text,
-  PRIMARY KEY (`id`),
-  KEY `FK_Extra Family Details Data_1` (`client_id`),
-  CONSTRAINT `FK_family_details` FOREIGN KEY (`client_id`) REFERENCES `m_client` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-
-DROP TABLE IF EXISTS `extra_loan_details`;
-CREATE TABLE `extra_loan_details` (
-  `loan_id` bigint(20) NOT NULL,
-  `Business Description` varchar(100) DEFAULT NULL,
-  `Years in Business` int(11) DEFAULT NULL,
-  `Gender_cd` int(11) DEFAULT NULL,
-  `Education_cv` varchar(60) DEFAULT NULL,
-  `Next Visit` date DEFAULT NULL,
-  `Highest Rate Paid` decimal(19,6) DEFAULT NULL,
-  `Comment` text,
-  PRIMARY KEY (`loan_id`),
-  CONSTRAINT `FK_extra_loan_details` FOREIGN KEY (`loan_id`) REFERENCES `m_loan` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
-
--- datatables mapping
-INSERT INTO `x_registered_table`
-(`registered_table_name`,`application_table_name`)
-VALUES
-('extra_client_details', 'm_client'),
-('extra_family_details', 'm_client'),
-('extra_loan_details', 'm_loan');
-
-
--- make sure permissions created for registered datatables
-/* add a create, read, update and delete permission for each registered datatable */
-insert into m_permission(grouping, `code`, entity_name, action_name)
-select 'datatable', concat('CREATE_', r.registered_table_name), r.registered_table_name,
'CREATE'
-from x_registered_table r;
-
-insert into m_permission(grouping, `code`, entity_name, action_name)
-select 'datatable', concat('READ_', r.registered_table_name), r.registered_table_name, 'READ'
-from x_registered_table r;
-
-insert into m_permission(grouping, `code`, entity_name, action_name)
-select 'datatable', concat('UPDATE_', r.registered_table_name), r.registered_table_name,
'UPDATE'
-from x_registered_table r;
-
-insert into m_permission(grouping, `code`, entity_name, action_name)
-select 'datatable', concat('DELETE_', r.registered_table_name), r.registered_table_name,
'DELETE'
-from x_registered_table r;
-
-
-
--- ==== Chart of Accounts =====
-truncate `acc_gl_account`;
-INSERT INTO `acc_gl_account` VALUES 
-(1,'Petty Cash Balances',NULL,'11100',0,1,2,1,NULL),
-(2,'Cash in Valut 1',NULL,'11101',0,1,1,1,NULL),
-(3,'Bank Balances',NULL,'11200',0,1,2,1,NULL),
-(4,'Centenary Opening Account',NULL,'11201',0,1,1,1,NULL),
-(5,'Centenary Expense Account',NULL,'11202',0,1,1,1,NULL),
-(6,'Centenary USD Account',NULL,'11203',0,1,1,1,NULL),
-(7,'Loans and Advances',NULL,'13100',0,1,2,1,NULL),
-(8,'Loans to Clients',NULL,'13101',0,1,1,1,NULL),
-(9,'Outstanding Interest',NULL,'13102',0,1,1,1,NULL),
-(10,'Outstanding Late Payment Interest',NULL,'13103',0,1,1,1,NULL),
-(11,'Outstanding Bank Fees to be collected',NULL,'13104',0,1,1,1,NULL),
-(12,'WriteOff Accounts',NULL,'13200',0,1,2,1,NULL),
-(13,'Write-offs (use for funds coming in)',NULL,'13201',0,1,1,1,NULL),
-(14,'Write-offs outstanding principal',NULL,'13202',0,1,1,1,NULL),
-(15,'Write-offs outstanding interest',NULL,'13203',0,1,1,1,NULL),
-(16,'Write-offs collected bank fees',NULL,'13204',0,1,1,1,NULL),
-(17,'Write-offs hardware/furniture',NULL,'13205',0,1,1,1,NULL),
-(18,'Fixed Assets',NULL,'14100',0,1,2,1,NULL),
-(19,'Office Equipment',NULL,'14101',0,1,1,1,NULL),
-(20,'Suspense Items (unidentified deposits)',NULL,'15000',0,1,2,1,NULL),
-(21,'Assets',NULL,'10000',0,1,2,1,NULL),
-(22,'Liabilities',NULL,'20000',0,1,2,2,NULL),
-(23,'Shares Account',NULL,'26100',0,1,2,2,NULL),
-(24,'Shares Captial',NULL,'26101',0,1,1,2,NULL),
-(25,'Donated Equity',NULL,'26300',0,1,2,2,NULL),
-(26,'Donated Equity Ameropa Foundation',NULL,'26301',0,1,1,2,NULL),
-(27,'Donated Equity e.h',NULL,'26302',0,1,1,2,NULL),
-(28,'Overpaid Amounts',NULL,'27000',0,1,2,2,NULL),
-(29,'Loss Provision',NULL,'28000',0,1,2,2,NULL),
-(30,'Provision Outstanding Principal',NULL,'28001',0,1,1,2,NULL),
-(31,'Provision Oustanding Interest',NULL,'28002',0,1,1,2,NULL),(32,'Income',NULL,'30000',0,1,2,4,NULL),
-(33,'Interest Income from Loans',NULL,'31100',0,1,2,4,NULL),
-(34,'Interest on Loans',NULL,'31101',0,1,1,4,NULL),
-(35,'Late Payment Interest',NULL,'31102',0,1,1,4,NULL),
-(36,'Income from Micro credit & Lending Activities',NULL,'31300',0,1,2,4,NULL),
-(37,'Collected Bank Fees Receivable',NULL,'6201',0,1,1,4,NULL),
-(38,'Deposits from Loans Write Off',NULL,'31400',0,1,2,4,NULL),
-(39,'Expenditure',NULL,'40000',0,1,2,5,NULL),
-(40,'Office Expenditure Account',NULL,'42100',0,1,2,5,NULL),
-(41,'Water Charges',NULL,'42102',0,1,1,5,NULL),
-(42,'Electricity Charges',NULL,'42103',0,1,1,5,NULL),
-(43,'Printing and Stationary',NULL,'42105',0,1,1,5,NULL),
-(44,'Office Rent',NULL,'42107',0,1,1,5,NULL),
-(45,'Marketing Expense',NULL,'42109',0,1,1,5,NULL),
-(46,'Office utilities',NULL,'42112',0,1,1,5,'(supplies, toiletries, kitchen)'),
-(47,'Furniture',NULL,'42113',0,1,1,5,NULL),
-(48,'CEDA Meeting Expense',NULL,'42114',0,1,1,5,NULL),
-(49,'Employee Personal Expsense Account',NULL,'42200',0,1,2,5,NULL),
-(50,'Salary Alice',NULL,'42201',0,1,1,5,NULL),
-(51,'Salary Irene',NULL,'42202',0,1,1,5,NULL),
-(52,'Salary Richard',NULL,'42203',0,1,1,5,NULL),
-(53,'Salary Loan Officer TBA',NULL,'42204',0,1,1,5,NULL),
-(54,'Medical Insurance Alice & Family',NULL,'42205',0,1,1,5,NULL),
-(55,'Medical Insurance Irene',NULL,'42206',0,1,1,5,NULL),
-(56,'Medical Insurance Richard',NULL,'42207',0,1,1,5,NULL),
-(57,'Medical Insurance Loan Officer TBA',NULL,'42208',0,1,1,5,NULL),
-(58,'PAYE all employees',NULL,'42209',0,1,1,5,NULL),
-(59,'NSSF all employees',NULL,'42210',0,1,1,5,NULL),
-(60,'Lunch Allowances all employees',NULL,'42211',0,1,1,5,NULL),
-(61,'IT software and maintenance',NULL,'42300',0,1,2,5,NULL),
-(62,'Mifos maintenance contract 12 months',NULL,'42301',0,1,1,5,NULL),
-(63,'VPS Contract 12 months',NULL,'42302',0,1,1,5,NULL),
-(64,'Bulk SMS Service',NULL,'42303',0,1,1,5,NULL),
-(65,'Support Accounting Software',NULL,'42304',0,1,1,5,NULL),
-(66,'Mifos Instance Setup',NULL,'42305',0,1,1,5,NULL),
-(67,'Misc support expense',NULL,'42306',0,1,1,5,NULL),
-(68,'Warid Mobile Line',NULL,'42307',0,1,1,5,NULL),
-(69,'Landline',NULL,'42308',0,1,1,5,NULL),
-(70,'Modem Alice',NULL,'42309',0,1,1,5,NULL),
-(71,'Modem Irene',NULL,'42310',0,1,1,5,NULL),
-(72,'Modem Richard',NULL,'42311',0,1,1,5,NULL),
-(73,'Repairs',NULL,'42312',0,1,1,5,NULL),
-(74,'Airtime Expenses',NULL,'42400',0,1,2,5,NULL),
-(75,'Airtime Alice',NULL,'42401',0,1,1,5,NULL),
-(76,'Airtime Richard',NULL,'42402',0,1,1,5,NULL),
-(77,'Airtime Loan Office TBA',NULL,'42403',0,1,1,5,NULL),
-(78,'Special Airtime Alice',NULL,'42404',0,1,1,5,NULL),
-(79,'Transportation',NULL,'42500',0,1,2,5,NULL),
-(80,'Flat monthly transportation cost',NULL,'42501',0,1,1,5,NULL),
-(81,'Faciliation cost for Richard',NULL,'42502',0,1,1,5,NULL),
-(82,'Faciliation cost for Loan Officer TBA',NULL,'42503',0,1,1,5,NULL),
-(83,'Consultancy Expenses',NULL,'42600',0,1,2,5,NULL),
-(84,'Audit Fees',NULL,'42601',0,1,1,5,NULL),
-(85,'Legal Fees',NULL,'42602',0,1,1,5,NULL),
-(86,'Miscellaneous Expenses Account',NULL,'42700',0,1,2,5,NULL),
-(87,'MFI License',NULL,'42703',0,1,1,5,NULL),
-(88,'Sundy Expenses',NULL,'42704',0,1,1,5,NULL),
-(89,'Bank Fees',NULL,'42800',0,1,2,5,NULL),
-(90,'Bank Charges Operating Account',NULL,'42801',0,1,1,5,NULL),
-(91,'Bank Charges Expense Account',NULL,'42802',0,1,1,5,NULL),
-(92,'E.H Account',NULL,'42900',0,1,2,5,NULL),
-(93,'Airtime',NULL,'42901',0,1,1,5,NULL),
-(94,'Modem',NULL,'42902',0,1,1,5,NULL),
-(95,'Meals',NULL,'42903',0,1,1,5,NULL),
-(96,'Transportation',NULL,'42904',0,1,1,5,NULL),
-(97,'Miscellaneous',NULL,'42905',0,1,1,5,NULL);
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-fineract/blob/66cee785/fineract-db/multi-tenant-demo-backups/gk-maarg/0001b-gk-datatables.sql
----------------------------------------------------------------------
diff --git a/fineract-db/multi-tenant-demo-backups/gk-maarg/0001b-gk-datatables.sql b/fineract-db/multi-tenant-demo-backups/gk-maarg/0001b-gk-datatables.sql
deleted file mode 100644
index 63d463b..0000000
--- a/fineract-db/multi-tenant-demo-backups/gk-maarg/0001b-gk-datatables.sql
+++ /dev/null
@@ -1,39 +0,0 @@
-DROP TABLE IF EXISTS `risk_analysis`;
-CREATE TABLE `risk_analysis` (
-  `client_id` bigint(20) NOT NULL,
-  `proposed_loan_amount` decimal(19,6) DEFAULT NULL,
-  `assets_cash` decimal(19,6) DEFAULT NULL,
-  `assets_bank_accounts` decimal(19,6) DEFAULT NULL,
-  `assets_accounts_receivable` decimal(19,6) DEFAULT NULL,
-  `assets_inventory` decimal(19,6) DEFAULT NULL,
-  `assets_total_fixed_business` decimal(19,6) DEFAULT NULL,
-  `assets_total_business` decimal(19,6) DEFAULT NULL,
-  `assets_total_household` decimal(19,6) DEFAULT NULL,
-  `liabilities_accounts_payable` decimal(19,6) DEFAULT NULL,
-  `liabilities_business_debts` decimal(19,6) DEFAULT NULL,
-  `liabilities_total_business` decimal(19,6) DEFAULT NULL,
-  `liabilities_equity_working_capital` decimal(19,6) DEFAULT NULL,
-  `liabilities_total_household` decimal(19,6) DEFAULT NULL,
-  `liabilities_household_equity` decimal(19,6) DEFAULT NULL,
-  `cashflow_cash_sales` decimal(19,6) DEFAULT NULL,
-  `cashflow_cash_sales2` decimal(19,6) DEFAULT NULL,
-  `cashflow_cost_goods_sold` decimal(19,6) DEFAULT NULL,
-  `cashflow_cost_goods_sold2` decimal(19,6) DEFAULT NULL,
-  `cashflow_gross_profit` decimal(19,6) DEFAULT NULL,
-  `cashflow_other_income1` decimal(19,6) DEFAULT NULL,
-  `cashflow_total_income2` decimal(19,6) DEFAULT NULL,
-  `cashflow_household_expense` decimal(19,6) DEFAULT NULL,
-  `cashflow_payments_to_savings` decimal(19,6) DEFAULT NULL,
-  `cashflow_operational_expenses` decimal(19,6) DEFAULT NULL,
-  `cashflow_disposable_income` decimal(19,6) DEFAULT NULL,
-  `cashflow_amount_loan_installment` decimal(19,6) DEFAULT NULL,
-  `cashflow_available_surplus` decimal(19,6) DEFAULT NULL,
-  `fi_inventory_turnover` decimal(19,6) DEFAULT NULL,
-  `fi_gross_margin` decimal(19,6) DEFAULT NULL,
-  `fi_indebtedness` decimal(19,6) DEFAULT NULL,
-  `fi_loan_recommendation` decimal(19,6) DEFAULT NULL,
-  `fi_roe` decimal(19,6) DEFAULT NULL,
-  `fi_repayment_capacity` decimal(19,6) DEFAULT NULL,
-  PRIMARY KEY (`client_id`),
-  CONSTRAINT `FK_risk_analysis_1` FOREIGN KEY (`client_id`) REFERENCES `m_client` (`id`)
-) ENGINE=InnoDB DEFAULT CHARSET=utf8;
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/incubator-fineract/blob/66cee785/fineract-db/multi-tenant-demo-backups/latam-demo/README.md
----------------------------------------------------------------------
diff --git a/fineract-db/multi-tenant-demo-backups/latam-demo/README.md b/fineract-db/multi-tenant-demo-backups/latam-demo/README.md
deleted file mode 100644
index f75fffe..0000000
--- a/fineract-db/multi-tenant-demo-backups/latam-demo/README.md
+++ /dev/null
@@ -1,16 +0,0 @@
-latam Demo
-======
-
-This demo database contains:
-
-- DDL of latest schema
-- Minimum reference data required for deployment of platform which is:
-  -  Its mandatory to have one selected currency so we default to several of latin-america
currencies
-  -  Its mandatory to have one root or head office, so we have one created by default called
a 'Latam HO'
-  -  Permissions supported/needed by latest release of software are setup
-  -  Its mandatory to have at least one role when creating new users so we have one role
created by default called 'Super user' which has the special permission 'Full Authorisation'.
Any user with this role can do anything in the system.
-  -  Its required to have at least one application user setup so remaining setup can be done
through ui so we have on application user created by default with username 'quipo' with a
password of 'quipo'. Application users must be associated with an office and a role so this
user is associated with 'Latam HO' and 'Super user' role allowing this user to do any operation
in any office(branch).
-- Configuration
-  - No 'additional data' through the 'datatables' approach is setup
-  - One 'code' is setup called 'Client Identifier' with default values of {'Passport number'}
- (required for Client Identity Document functionalty)
-  - Enable/Disable configuration has one entry named 'maker-checker' to allow people to enable
disable this feature at global level. It is off or disabled by default.
\ No newline at end of file


Mime
View raw message