MIFOSX-1667 Overriding loan product attributes by individual loan accounts.

This commit is contained in:
Chandrika
2015-04-01 15:27:46 -04:00
parent b46e9b66c9
commit d21385792a
16 changed files with 700 additions and 23 deletions
@@ -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 );