Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

NAMEDatatypeLengthRemarks
idBIGINT20PRIMARY KEY & AUTOINCREMENT
loanproduct_idBIGINT20FOREIGN KEY
category_idBIGINT20FOREIGN KEY
min_ageBIGINT20NOT NULL
max_ageBIGINT20NOT NULL
provision_percentageINT4DEFAULT 0
liability_accountBIGINT20NOT NULLFOREIGN KEY acc_gl_account.id
expense_accountBIGINT20NOT NULLFOREIGN KEY acc_gl_account.id
created_byVARCHARBIGINT100app user name20FOREIGN KEY m_appuser.id
created_onDATE  
modified_byVARCHAR100app user nameFOREIGN KEY m_appuser.id
modified_onDATE  

 

For any given tenant, the provision details for a particular loan product will look like below.

idloanproduct_idcategory_idmin_agemax_ageprovision_percentageliability_accountexpense_accountcreated_bycreated_onmodified_bymodified_by
1103451005abcd accountdcba accountNazeer10031-Dec-2014Vishwas20010-Jan-2015
2103452306020abcd accountdcba accountNazeer20031-Dec-2014Vishwas40010-Jan-2015
31034536018050abcd accountdcba accountNazeer40031-Dec-2014Vishwas50010-Jan-2015
410345418036090abcd accountdcba accountNazeer30031-Dec-2014Vishwas60010-Jan-2015

While editing the loan product, persisted provision details will be restored in the edit loan product screen

...

NameDatatypeLengthRemarks
idBIGINT20PRIMARY KEY and AUTOINCREMENT
currency_codeBIGINT20FOREIGN KEY m_currency.id
office_idBIGINT20FOREIGN KEY m_office.id
product_idBIGINT20FOREIGN KEY m_product_loan.id
category_idBIGINT20FOREIGN KEY m_provision_category.id
overdue_in_daysBIGINT20DEFAULT 0
amount_to_be_reservedBIGINT20DEFAULT 0
created_byBIGINT20FOREIGN KEY m_appuser.id
created_onDATE NOT NULL
modified_byBIGINT20FOREIGN KEY m_appuser.id
modified_onDATE  

 

Whenever the provision calculation is done, system is going to make an entry in the 'provision_history' table. The structure of the table is shown below

NameDatatypeLengthDescription
idBIGINT20PRIMARY KEY & AUTO INCREMENT
created_onDATE NOT NULL
journalentryjournal_entry_createdINT1DEFAULT 0
created_byBIGINT20 m_appuser_id or scheduler job dummy id
created_onDATE  

 

Changes required in existing Classes:

...