Merge branch 'loanConfig' of https://github.com/chandrikamohith/mifosx into chandrikamohith-loanConfig
Conflicts: mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanproduct/domain/LoanProduct.java mifosng-provider/src/main/java/org/mifosplatform/portfolio/loanproduct/serialization/LoanProductDataValidator.java
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
CREATE TABLE `m_product_loan_configurable_attributes` (
|
||||
`id` BIGINT(20) NOT NULL AUTO_INCREMENT,
|
||||
`loan_product_id` BIGINT NOT NULL,
|
||||
`amortization_method_enum` TINYINT NOT NULL DEFAULT '1',
|
||||
`interest_method_enum` TINYINT NOT NULL DEFAULT '1',
|
||||
`loan_transaction_strategy_id` TINYINT NOT NULL DEFAULT '1',
|
||||
`interest_calculated_in_period_enum` TINYINT NOT NULL DEFAULT '1',
|
||||
`arrearstolerance_amount` TINYINT NOT NULL DEFAULT '1',
|
||||
`repay_every` TINYINT NOT NULL DEFAULT '1',
|
||||
`moratorium` TINYINT NOT NULL DEFAULT '1',
|
||||
`grace_on_arrears_ageing` TINYINT NOT NULL DEFAULT '1',
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `fk_m_product_loan_configurable_attributes_0001` (`loan_product_id`),
|
||||
CONSTRAINT `fk_m_product_loan_configurable_attributes_0001` FOREIGN KEY (`loan_product_id`) REFERENCES `m_product_loan` (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
|
||||
INSERT into `m_product_loan_configurable_attributes`
|
||||
(loan_product_id,amortization_method_enum,interest_method_enum,loan_transaction_strategy_id,
|
||||
interest_calculated_in_period_enum,arrearstolerance_amount,repay_every,moratorium,grace_on_arrears_ageing)
|
||||
(select pl.id,'1','1','1','1','1','1','1','1' from `m_product_loan` pl );
|
||||
Reference in New Issue
Block a user