Você está na página 1de 2

//----------------------------------------------------------------------------------------------------------------FAO/GTZ MicroBanking System 2000, System Specification Document

Document Name:
BuildLnT
Created Date/By:
2000/01/28, 04:56 AM rch
Path:
C\MBWin\Docs\Spec
Program Name:
BuildLnTran
Descriptions:
Builds a loan transaction in the database
Other unit/functions used:

Input parameters:

Global var used:

Global var updated:

System var used:

Tables/Field read:

Tables/Field written

Return value:

Updated Date/By:
2000-04-27 rch
Changes No/Date/By/Desc:
rch
//---------------------------------------------------------------------------------------------------------------Tables and fields to be updated
The following tables need to be updated for the respective loan transactions:
Transaction Type:
Loan opening
Disbursement/debit
Repayment/credit
Cancel repayment/debit
Cancel disbursement/credit
Loan closing

LnAcc
yes
yes
yes
yes
yes
yes

LnRsn
yes
yes
no
no
yes
no

LnInst
yes
no
yes
yes
no
yes

TrnP
no
can be
can be
no
no
can be

TrnDaily
yes
yes
yes
yes
yes
yes

LnInst
Single

TrnP
no
Single
Single

TrnDaily
Single
Single
Single
Single
Single
Single

The table below shows single/multiple appends


Transaction Type:
Loan opening
Disbursement/debit
Repayment/credit
Cancel repayment/debit
Cancel disbursement/credit
Loan closing

LnAcc
Single

LnRsn
Multi
Multi

The loan opening will not be processed by the BuildLnTran() function.

Single

Update of LnInst for a loan credit


The LnInst table is updated as follows for a loan credit:
Acc
Chd
DueDate
Status
PaidDate
PriAmt

CumIntPdAmt
InstSeq
NorIntAmt
OrigPriAmt
BfBalAmt
ChargesAmt
LnAcrIntAmt
LnAcrPenAmt
LnOduePriAmt
Hash

Not updated
Not updated
Not updated
Updated if PriAmt reaches zero, with gCurrRunDate, otherwise not
updated
Updated with gCurrRunDate when PriAmt reaches zero, otherwise
not updates
Reduced as per the amount TrnPriAmt (amount of principal repaid),
after first having been applied to previous (earlier) installments.
When PriAmt reaches zero, the remaining TrnPriAmt is applied to
the next installment IF DUE, otherwise the remainder is stored to
LnAcc.OduePriAmt (as a negative amount)
Not updated
Not updated
Not updated
Not updated
Not updated
Not updated
Not updated
Not updated
Not updated
Updated with HashGen()

//--------------------------------------------------end of file--------------------------------------------------

Você também pode gostar