support flexible repayment strategies for loans.

This commit is contained in:
Keith Woodlock
2012-07-28 01:47:54 +01:00
parent ef12c864ab
commit 89230969ea
20 changed files with 1120 additions and 254 deletions
@@ -0,0 +1,12 @@
-- add derived fields for loan transactions and extra
ALTER TABLE `portfolio_loan_transaction`
ADD COLUMN `principal_portion_derived` decimal(19,6) NOT NULL DEFAULT 0,
ADD COLUMN `interest_portion_derived` decimal(19,6) NOT NULL DEFAULT 0,
ADD COLUMN `interest_waived_derived` decimal(19,6) NOT NULL DEFAULT 0;
ALTER TABLE `portfolio_loan_repayment_schedule`
ADD COLUMN `interest_waived_derived` decimal(19,6) NOT NULL DEFAULT 0;
INSERT INTO `ref_loan_status` (`id`,`display_name`) VALUES (700, 'Overpaid');