Files
cbsnexora-backend/mifosng-db/patches-post-multi-tenant/patch-0006-add-derived-fields-on-loan-transaction.sql
T

13 lines
513 B
SQL

-- 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');