Change declarations for enums and spell checks
Adding Saving account & product creation from UI Add state transitions for Saving accounts Approve saving account state patch partially done Approval of saving account Soft delete of saving account Add intereset calculation method for saving account Interest Posting functionality not completed yet Saving Interest Posting without interest calculation method
This commit is contained in:
@@ -1507,7 +1507,7 @@ CREATE TABLE `m_saving_account` (
|
||||
`lastmodified_date` datetime DEFAULT NULL,
|
||||
`lastmodifiedby_id` bigint(20) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `deposit_acc_external_id` (`external_id`),
|
||||
UNIQUE KEY `saving_acc_external_id` (`external_id`),
|
||||
KEY `FKSA0000000000001` (`client_id`),
|
||||
KEY `FKSA0000000000002` (`product_id`),
|
||||
CONSTRAINT `FKSA0000000000001` FOREIGN KEY (`client_id`) REFERENCES `m_client` (`id`),
|
||||
|
||||
@@ -1320,7 +1320,7 @@ CREATE TABLE `m_saving_account` (
|
||||
`lastmodified_date` datetime DEFAULT NULL,
|
||||
`lastmodifiedby_id` bigint(20) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
UNIQUE KEY `deposit_acc_external_id` (`external_id`),
|
||||
UNIQUE KEY `saving_acc_external_id` (`external_id`),
|
||||
KEY `FKSA0000000000001` (`client_id`),
|
||||
KEY `FKSA0000000000002` (`product_id`),
|
||||
CONSTRAINT `FKSA0000000000001` FOREIGN KEY (`client_id`) REFERENCES `m_client` (`id`),
|
||||
|
||||
@@ -0,0 +1,2 @@
|
||||
ALTER TABLE m_saving_account
|
||||
ADD COLUMN `deposit_every` bigint(20) DEFAULT NULL AFTER `tenure_type`;
|
||||
@@ -0,0 +1,4 @@
|
||||
ALTER TABLE m_note
|
||||
ADD COLUMN `saving_account_id` bigint(20) DEFAULT NULL AFTER `deposit_account_id`,
|
||||
ADD KEY `FK_m_note_m_saving_account` (`saving_account_id`),
|
||||
ADD CONSTRAINT `FK_m_note_m_saving_account` FOREIGN KEY (`saving_account_id`) REFERENCES `m_saving_account` (`id`);
|
||||
@@ -0,0 +1,21 @@
|
||||
DROP TABLE IF EXISTS `m_saving_account_transaction`;
|
||||
CREATE TABLE `m_saving_account_transaction` (
|
||||
`id` bigint(20) NOT NULL AUTO_INCREMENT,
|
||||
`saving_account_id` bigint(20) NOT NULL,
|
||||
`transaction_type_enum` smallint(5) NOT NULL,
|
||||
`contra_id` bigint(20) DEFAULT NULL,
|
||||
`transaction_date` date NOT NULL,
|
||||
`amount` decimal(19,6) NOT NULL,
|
||||
`createdby_id` bigint(20) DEFAULT NULL,
|
||||
`created_date` datetime DEFAULT NULL,
|
||||
`lastmodified_date` datetime DEFAULT NULL,
|
||||
`lastmodifiedby_id` bigint(20) DEFAULT NULL,
|
||||
PRIMARY KEY (`id`),
|
||||
KEY `FKSAT0000000001` (`saving_account_id`),
|
||||
KEY `FKSAT0000000002` (`contra_id`),
|
||||
CONSTRAINT `FKSAT0000000001` FOREIGN KEY (`saving_account_id`) REFERENCES `m_saving_account` (`id`),
|
||||
CONSTRAINT `FKSAT0000000002` FOREIGN KEY (`contra_id`) REFERENCES `m_saving_account_transaction` (`id`)
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
|
||||
|
||||
ALTER TABLE `m_saving_account`
|
||||
ADD COLUMN `outstanding_amount` decimal(19,6) NOT NULL AFTER `pre_closure_interest_rate`;
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
Alter TABLE `m_saving_account`
|
||||
add column `interest_posting_every` int(11) DEFAULT NULL AFTER `frequency`,
|
||||
add column `interest_posting_frequency` int(11) DEFAULT NULL AFTER `interest_posting_every`;
|
||||
@@ -0,0 +1,4 @@
|
||||
ALTER TABLE `m_saving_account`
|
||||
ADD COLUMN `interest_posted_amount` decimal(19,6) DEFAULT '0.000000' AFTER `outstanding_amount`,
|
||||
ADD COLUMN `last_interest_posted_date` date DEFAULT NULL AFTER `interest_posted_amount`,
|
||||
ADD COLUMN `next_interest_posting_date` date DEFAULT NULL AFTER `last_interest_posted_date`;
|
||||
Reference in New Issue
Block a user