Clean up whitespace issues, only (FINERACT-1188)
This commit is contained in:
@@ -22,4 +22,4 @@ CREATE DATABASE IF NOT EXISTS `fineract_tenants`;
|
||||
CREATE DATABASE IF NOT EXISTS `fineract_default`;
|
||||
|
||||
# create root user and grant rights
|
||||
GRANT ALL ON *.* TO 'root'@'%';
|
||||
GRANT ALL ON *.* TO 'root'@'%';
|
||||
|
||||
@@ -116,7 +116,7 @@ CREATE TABLE `tenants` (
|
||||
|
||||
LOCK TABLES `tenants` WRITE;
|
||||
/*!40000 ALTER TABLE `tenants` DISABLE KEYS */;
|
||||
INSERT INTO `tenants` VALUES
|
||||
INSERT INTO `tenants` VALUES
|
||||
(1,'default','default','fineract_default','Asia/Kolkata',NULL,NULL,NULL,NULL,'localhost','3306','root','mysql',1,5,30000,1,60,1,50,1,40,20,10,60,34000,60000);
|
||||
/*!40000 ALTER TABLE `tenants` ENABLE KEYS */;
|
||||
UNLOCK TABLES;
|
||||
|
||||
@@ -6,4 +6,4 @@ This demo database contains:
|
||||
- DDL of latest schema
|
||||
- Minimum reference data required for deployment of platform
|
||||
- Customisatons for CEDA on m_code/m_code_value tables, extra datatables for client and loan data capture
|
||||
- Extra reports over and beyond core reports customisation for CEDA operations
|
||||
- Extra reports over and beyond core reports customisation for CEDA operations
|
||||
|
||||
@@ -264,7 +264,7 @@ from x_registered_table r;
|
||||
|
||||
-- ==== Chart of Accounts =====
|
||||
truncate `acc_gl_account`;
|
||||
INSERT INTO `acc_gl_account` VALUES
|
||||
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),
|
||||
@@ -360,4 +360,4 @@ INSERT INTO `acc_gl_account` VALUES
|
||||
(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);
|
||||
(97,'Miscellaneous',NULL,'42905',0,1,1,5,NULL);
|
||||
|
||||
@@ -46,7 +46,7 @@ INSERT INTO `m_appuser`
|
||||
`nonexpired_credentials`,
|
||||
`enabled`)
|
||||
VALUES
|
||||
(0, 1, 'keithwoodlock', 'Keith', 'Woodlock',
|
||||
(0, 1, 'keithwoodlock', 'Keith', 'Woodlock',
|
||||
'4f607e9b6cffbe7d3db92d4bfa3391c7aa751727b4ea29d08fddf9dd72e6e7e3', 'keithwoodlock@gmail.com', 0, 1, 1, 1, 1);
|
||||
|
||||
INSERT INTO `m_appuser_role`
|
||||
@@ -61,7 +61,7 @@ INSERT INTO `m_office`
|
||||
`external_id`,
|
||||
`name`,
|
||||
`opening_date`)
|
||||
VALUES
|
||||
VALUES
|
||||
(1, '.2.', 2, 'Uganda (Kampala)', '2009-01-01');
|
||||
|
||||
|
||||
@@ -114,10 +114,10 @@ INSERT INTO `m_product_loan`
|
||||
`accounting_type`,
|
||||
`loan_transaction_strategy_id`)
|
||||
VALUES
|
||||
('UGX', 2, 1000000.000000, 0, 1000000000000.000000, null , 'Kampala Product (with cash accounting)',
|
||||
'Typical Kampala loan product with cash accounting enabled for testing.', null ,
|
||||
('UGX', 2, 1000000.000000, 0, 1000000000000.000000, null , 'Kampala Product (with cash accounting)',
|
||||
'Typical Kampala loan product with cash accounting enabled for testing.', null ,
|
||||
24.000000, 3, 24.000000, 1, 1, 1, 2, 12, 1, 2, 2);
|
||||
|
||||
-- mapping of that loan product to GL Accounts
|
||||
INSERT INTO `acc_product_mapping`
|
||||
VALUES (1,4,1,1,1),(2,8,1,1,2),(3,34,1,1,3),(4,37,1,1,4),(5,35,1,1,5),(6,97,1,1,6);
|
||||
INSERT INTO `acc_product_mapping`
|
||||
VALUES (1,4,1,1,1),(2,8,1,1,2),(3,34,1,1,3),(4,37,1,1,4),(5,35,1,1,5),(6,97,1,1,6);
|
||||
|
||||
@@ -12,4 +12,4 @@ This demo database contains:
|
||||
- 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).
|
||||
|
||||
Minimum amount of data to support api-docs interaction.
|
||||
Minimum amount of data to support api-docs interaction.
|
||||
|
||||
+4
-4
@@ -44,8 +44,8 @@ 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
|
||||
(`code_name`, `is_system_defined`)
|
||||
VALUES
|
||||
('Education',1);
|
||||
|
||||
INSERT INTO `m_code_value`(`code_id`,`code_value`,`order_position`)
|
||||
@@ -141,7 +141,7 @@ from x_registered_table r;
|
||||
|
||||
-- ==== Chart of Accounts =====
|
||||
truncate `acc_gl_account`;
|
||||
INSERT INTO `acc_gl_account` VALUES
|
||||
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),
|
||||
@@ -237,4 +237,4 @@ INSERT INTO `acc_gl_account` VALUES
|
||||
(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);
|
||||
(97,'Miscellaneous',NULL,'42905',0,1,1,5,NULL);
|
||||
|
||||
@@ -55,4 +55,4 @@ CREATE TABLE `risk_analysis` (
|
||||
`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=UTF8MB4;
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
|
||||
|
||||
@@ -13,4 +13,4 @@ This demo database contains:
|
||||
- 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.
|
||||
- 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.
|
||||
|
||||
@@ -65,4 +65,4 @@ INSERT INTO `mifostenant-latam`.`m_code_value` (`code_id`, `code_value`, `order_
|
||||
|
||||
|
||||
INSERT INTO `mifostenant-latam`.`m_code` (`code_name`, `is_system_defined`) VALUES ('Education', 1);
|
||||
INSERT INTO `mifostenant-latam`.`m_code_value` (`code_id`, `code_value`, `order_position`) VALUES (3, 'Primary', 1); INSERT INTO `mifostenant-latam`.`m_code_value` (`code_id`, `code_value`, `order_position`) VALUES (3, 'Secondary', 2); INSERT INTO `mifostenant-latam`.`m_code_value` (`code_id`, `code_value`, `order_position`) VALUES (3, 'University', 3);
|
||||
INSERT INTO `mifostenant-latam`.`m_code_value` (`code_id`, `code_value`, `order_position`) VALUES (3, 'Primary', 1); INSERT INTO `mifostenant-latam`.`m_code_value` (`code_id`, `code_value`, `order_position`) VALUES (3, 'Secondary', 2); INSERT INTO `mifostenant-latam`.`m_code_value` (`code_id`, `code_value`, `order_position`) VALUES (3, 'University', 3);
|
||||
|
||||
@@ -613,27 +613,27 @@ CREATE TABLE `m_loan_arrears_aging` (
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
|
||||
|
||||
CREATE TABLE `m_guarantor` (
|
||||
`id` BIGINT NOT NULL AUTO_INCREMENT,
|
||||
`loan_id` BIGINT NOT NULL,
|
||||
`id` BIGINT NOT NULL AUTO_INCREMENT,
|
||||
`loan_id` BIGINT NOT NULL,
|
||||
`client_reln_cv_id` INT DEFAULT NULL,
|
||||
`type_enum` SMALLINT NOT NULL,
|
||||
`entity_id` BIGINT NULL DEFAULT NULL,
|
||||
`firstname` VARCHAR(50) NULL DEFAULT NULL,
|
||||
`lastname` VARCHAR(50) NULL DEFAULT NULL,
|
||||
`dob` DATE NULL DEFAULT NULL,
|
||||
`address_line_1` VARCHAR(500) NULL DEFAULT NULL,
|
||||
`address_line_2` VARCHAR(500) NULL DEFAULT NULL,
|
||||
`city` VARCHAR(50) NULL DEFAULT NULL,
|
||||
`state` VARCHAR(50) NULL DEFAULT NULL,
|
||||
`country` VARCHAR(50) NULL DEFAULT NULL,
|
||||
`zip` VARCHAR(20) NULL DEFAULT NULL,
|
||||
`house_phone_number` VARCHAR(20) NULL DEFAULT NULL,
|
||||
`mobile_number` VARCHAR(20) NULL DEFAULT NULL,
|
||||
`comment` VARCHAR(500) NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
INDEX `FK_m_guarantor_m_loan` (`loan_id`),
|
||||
`type_enum` SMALLINT NOT NULL,
|
||||
`entity_id` BIGINT NULL DEFAULT NULL,
|
||||
`firstname` VARCHAR(50) NULL DEFAULT NULL,
|
||||
`lastname` VARCHAR(50) NULL DEFAULT NULL,
|
||||
`dob` DATE NULL DEFAULT NULL,
|
||||
`address_line_1` VARCHAR(500) NULL DEFAULT NULL,
|
||||
`address_line_2` VARCHAR(500) NULL DEFAULT NULL,
|
||||
`city` VARCHAR(50) NULL DEFAULT NULL,
|
||||
`state` VARCHAR(50) NULL DEFAULT NULL,
|
||||
`country` VARCHAR(50) NULL DEFAULT NULL,
|
||||
`zip` VARCHAR(20) NULL DEFAULT NULL,
|
||||
`house_phone_number` VARCHAR(20) NULL DEFAULT NULL,
|
||||
`mobile_number` VARCHAR(20) NULL DEFAULT NULL,
|
||||
`comment` VARCHAR(500) NULL DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
INDEX `FK_m_guarantor_m_loan` (`loan_id`),
|
||||
CONSTRAINT `FK_m_guarantor_m_code_value` FOREIGN KEY (`client_reln_cv_id`) REFERENCES `m_code_value` (`id`)
|
||||
CONSTRAINT `FK_m_guarantor_m_loan` FOREIGN KEY (`loan_id`) REFERENCES `m_loan` (`id`)
|
||||
CONSTRAINT `FK_m_guarantor_m_loan` FOREIGN KEY (`loan_id`) REFERENCES `m_loan` (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
|
||||
|
||||
CREATE TABLE `m_loan_charge` (
|
||||
@@ -963,4 +963,4 @@ CREATE TABLE `stretchy_report_parameter` (
|
||||
PRIMARY KEY (`report_id`,`parameter_id`),
|
||||
UNIQUE KEY `report_id_name_UNIQUE` (`report_id`,`report_parameter_name`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=UTF8MB4;
|
||||
-- =========== end of reporting related tables ============
|
||||
-- =========== end of reporting related tables ============
|
||||
|
||||
@@ -29,11 +29,11 @@ VALUES
|
||||
|
||||
INSERT INTO `c_configuration`
|
||||
(`name`, `enabled`)
|
||||
VALUES
|
||||
VALUES
|
||||
('maker-checker', 0);
|
||||
|
||||
INSERT INTO `r_enum_value`
|
||||
VALUES
|
||||
INSERT INTO `r_enum_value`
|
||||
VALUES
|
||||
('amortization_method_enum',0,'Equal principle payments','Equal principle payments'),
|
||||
('amortization_method_enum',1,'Equal installments','Equal installments'),
|
||||
('interest_calculated_in_period_enum',0,'Daily','Daily'),
|
||||
@@ -67,42 +67,42 @@ VALUES
|
||||
('term_period_frequency_enum',2,'Months','Months'),
|
||||
('term_period_frequency_enum',3,'Years','Years');
|
||||
|
||||
INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
|
||||
INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
|
||||
VALUES ('transaction_type_enum', '1', 'Disbursement', 'Disbursement');
|
||||
|
||||
INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
|
||||
INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
|
||||
VALUES ('transaction_type_enum', '2', 'Repayment', 'Repayment');
|
||||
|
||||
INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
|
||||
INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
|
||||
VALUES ('transaction_type_enum', '3', 'Contra', 'Contra');
|
||||
|
||||
INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
|
||||
INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
|
||||
VALUES ('transaction_type_enum', '4', 'Waive Interest', 'Waive Interest');
|
||||
|
||||
INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
|
||||
INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
|
||||
VALUES ('transaction_type_enum', '5', 'Repayment At Disbursement', 'Repayment At Disbursement');
|
||||
|
||||
INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
|
||||
INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
|
||||
VALUES ('transaction_type_enum', '6', 'Write-Off', 'Write-Off');
|
||||
|
||||
INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
|
||||
INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
|
||||
VALUES ('transaction_type_enum', '7', 'Marked for Rescheduling', 'Marked for Rescheduling');
|
||||
|
||||
INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
|
||||
INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
|
||||
VALUES ('transaction_type_enum', '8', 'Recovery Repayment', 'Recovery Repayment');
|
||||
|
||||
INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
|
||||
INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
|
||||
VALUES ('transaction_type_enum', '9', 'Waive Charges', 'Waive Charges');
|
||||
|
||||
INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
|
||||
INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
|
||||
VALUES ('transaction_type_enum', '10', 'Apply Charges', 'Apply Charges');
|
||||
|
||||
INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
|
||||
INSERT INTO `r_enum_value` (`enum_name`, `enum_id`, `enum_message_property`, `enum_value`)
|
||||
VALUES ('transaction_type_enum', '11', 'Apply Interest', 'Apply Interest');
|
||||
|
||||
INSERT INTO `m_currency`
|
||||
(`id`,`code`,`decimal_places`,`display_symbol`,`name`, `internationalized_name_code`)
|
||||
VALUES
|
||||
VALUES
|
||||
(1,'AED',2,NULL,'UAE Dirham','currency.AED'),
|
||||
(2,'AFN',2,NULL,'Afghanistan Afghani','currency.AFN'),
|
||||
(3,'ALL',2,NULL,'Albanian Lek','currency.ALL'),
|
||||
@@ -268,24 +268,24 @@ VALUES
|
||||
(163,'ZWD',2,NULL,'Zimbabwe Dollar','currency.ZWD');
|
||||
-- ======== end of currencies ==
|
||||
|
||||
INSERT INTO `m_organisation_currency` (`id`, `code`, `decimal_places`, `name`, `display_symbol`, `internationalized_name_code`)
|
||||
INSERT INTO `m_organisation_currency` (`id`, `code`, `decimal_places`, `name`, `display_symbol`, `internationalized_name_code`)
|
||||
VALUES (21,'USD',2,'US Dollar','$','currency.USD');
|
||||
|
||||
INSERT INTO `m_office` (`id`, `parent_id`, `hierarchy`, `external_id`, `name`, `opening_date`)
|
||||
VALUES
|
||||
INSERT INTO `m_office` (`id`, `parent_id`, `hierarchy`, `external_id`, `name`, `opening_date`)
|
||||
VALUES
|
||||
(1,NULL,'.','1','Head Office','2009-01-01');
|
||||
|
||||
INSERT INTO `m_group_level` (`id`, `parent_id`, `super_parent`, `level_name`, `recursable`, `can_have_clients`)
|
||||
INSERT INTO `m_group_level` (`id`, `parent_id`, `super_parent`, `level_name`, `recursable`, `can_have_clients`)
|
||||
VALUES (1, NULL, 1, 'Center', 1, 0);
|
||||
INSERT INTO `m_group_level` (`id`, `parent_id`, `super_parent`, `level_name`, `recursable`, `can_have_clients`)
|
||||
INSERT INTO `m_group_level` (`id`, `parent_id`, `super_parent`, `level_name`, `recursable`, `can_have_clients`)
|
||||
VALUES (2, 1, 0, 'Group', 0, 1);
|
||||
|
||||
|
||||
|
||||
-- create single code and code value for client identifiers
|
||||
INSERT INTO `m_code`
|
||||
(`code_name`, `is_system_defined`)
|
||||
VALUES
|
||||
(`code_name`, `is_system_defined`)
|
||||
VALUES
|
||||
('Customer Identifier',1),
|
||||
('LoanCollateral',1),
|
||||
('LoanPurpose',1),
|
||||
@@ -314,27 +314,27 @@ from m_code mc
|
||||
where mc.`code_name` = "Customer Identifier";
|
||||
|
||||
-- Adding a few Default Guarantor Relationships
|
||||
insert into m_code_value (code_id,code_value,order_position)
|
||||
select id,"Spouse",0
|
||||
from m_code
|
||||
where m_code.code_name="GuarantorRelationship";
|
||||
insert into m_code_value (code_id,code_value,order_position)
|
||||
select id,"Spouse",0
|
||||
from m_code
|
||||
where m_code.code_name="GuarantorRelationship";
|
||||
|
||||
insert into m_code_value (code_id,code_value,order_position)
|
||||
select id,"Parent",0
|
||||
from m_code
|
||||
where m_code.code_name="GuarantorRelationship";
|
||||
insert into m_code_value (code_id,code_value,order_position)
|
||||
select id,"Parent",0
|
||||
from m_code
|
||||
where m_code.code_name="GuarantorRelationship";
|
||||
|
||||
insert into m_code_value (code_id,code_value,order_position)
|
||||
select id,"Sibling",0
|
||||
from m_code
|
||||
where m_code.code_name="GuarantorRelationship";
|
||||
insert into m_code_value (code_id,code_value,order_position)
|
||||
select id,"Sibling",0
|
||||
from m_code
|
||||
where m_code.code_name="GuarantorRelationship";
|
||||
|
||||
insert into m_code_value (code_id,code_value,order_position)
|
||||
select id,"Business Associate",0
|
||||
from m_code
|
||||
where m_code.code_name="GuarantorRelationship";
|
||||
insert into m_code_value (code_id,code_value,order_position)
|
||||
select id,"Business Associate",0
|
||||
from m_code
|
||||
where m_code.code_name="GuarantorRelationship";
|
||||
|
||||
insert into m_code_value (code_id,code_value,order_position)
|
||||
select id,"Other",0
|
||||
from m_code
|
||||
where m_code.code_name="GuarantorRelationship";
|
||||
insert into m_code_value (code_id,code_value,order_position)
|
||||
select id,"Other",0
|
||||
from m_code
|
||||
where m_code.code_name="GuarantorRelationship";
|
||||
|
||||
@@ -33,7 +33,7 @@ If you had other roles set up with specific permissions you will have to set up
|
||||
-- truncate `x_registered_table`;
|
||||
|
||||
INSERT INTO `m_permission`
|
||||
(`grouping`,`code`,`entity_name`,`action_name`,`can_maker_checker`) VALUES
|
||||
(`grouping`,`code`,`entity_name`,`action_name`,`can_maker_checker`) VALUES
|
||||
('special','ALL_FUNCTIONS',NULL,NULL,0),
|
||||
('special','ALL_FUNCTIONS_READ',NULL,NULL,0),
|
||||
('special', 'CHECKER_SUPER_USER', NULL, NULL, '0'),
|
||||
@@ -296,19 +296,19 @@ INSERT INTO `m_permission`
|
||||
('transaction_savings', 'CALCULATEINTEREST_SAVINGSACCOUNT_CHECKER', 'SAVINGSACCOUNT', 'CALCULATEINTEREST', '0');
|
||||
|
||||
-- == accounting related permissions
|
||||
INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES
|
||||
INSERT INTO `m_permission` (`grouping`, `code`, `entity_name`, `action_name`, `can_maker_checker`) VALUES
|
||||
('accounting', 'CREATE_GLACCOUNT', 'GLACCOUNT', 'CREATE', 1),
|
||||
('accounting', 'UPDATE_GLACCOUNT', 'GLACCOUNT', 'UPDATE', 1),
|
||||
('accounting', 'DELETE_GLACCOUNT', 'GLACCOUNT', 'DELETE', 1),
|
||||
('accounting', 'CREATE_GLCLOSURE', 'GLCLOSURE', 'CREATE', 1),
|
||||
('accounting', 'UPDATE_GLCLOSURE', 'GLCLOSURE', 'UPDATE', 1),
|
||||
('accounting', 'DELETE_GLCLOSURE', 'GLCLOSURE', 'DELETE', 1),
|
||||
('accounting', 'DELETE_GLCLOSURE', 'GLCLOSURE', 'DELETE', 1),
|
||||
('accounting', 'CREATE_JOURNALENTRY', 'JOURNALENTRY', 'CREATE', 1),
|
||||
('accounting', 'REVERSE_JOURNALENTRY', 'JOURNALENTRY', 'REVERSE', 1);
|
||||
|
||||
|
||||
INSERT INTO `m_role` (`id`, `name`, `description`)
|
||||
VALUES
|
||||
INSERT INTO `m_role` (`id`, `name`, `description`)
|
||||
VALUES
|
||||
(1,'Super user','This role provides all application permissions.');
|
||||
|
||||
/* role 1 is super user, give it ALL_FUNCTIONS */
|
||||
@@ -317,9 +317,9 @@ select 1, id
|
||||
from m_permission
|
||||
where code = 'ALL_FUNCTIONS';
|
||||
|
||||
INSERT INTO `m_appuser` (`id`, `office_id`, `username`, `firstname`, `lastname`, `password`, `email`,
|
||||
`firsttime_login_remaining`, `nonexpired`, `nonlocked`, `nonexpired_credentials`, `enabled`)
|
||||
VALUES
|
||||
INSERT INTO `m_appuser` (`id`, `office_id`, `username`, `firstname`, `lastname`, `password`, `email`,
|
||||
`firsttime_login_remaining`, `nonexpired`, `nonlocked`, `nonexpired_credentials`, `enabled`)
|
||||
VALUES
|
||||
(1,1,'mifos','App','Administrator','5787039480429368bf94732aacc771cd0a3ea02bcf504ffe1185ab94213bc63a','demomfi@mifos.org','\0','','','','');
|
||||
|
||||
|
||||
@@ -350,4 +350,4 @@ from x_registered_table r;
|
||||
/* regardless of inserted permission settings above, no permissions (transactions) are preselected as being part of the maker-checker process
|
||||
so, just set the flag to false... the end-user can decide which permissions should be maker-checkerable
|
||||
*/
|
||||
update m_permission set can_maker_checker = false;
|
||||
update m_permission set can_maker_checker = false;
|
||||
|
||||
@@ -28,4 +28,3 @@ INSERT INTO `stretchy_report_parameter` VALUES (1,5,NULL),(2,5,NULL),(2,6,NULL),
|
||||
insert into m_permission(grouping, `code`, entity_name, action_name, can_maker_checker)
|
||||
select 'report', concat('READ_', r.report_name), r.report_name, 'READ', false
|
||||
from stretchy_report r;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user