morg59jeep
Technical User
- Jun 21, 2006
- 23
I have to setup a system to track our loans. Need it to work like a bank would handle the loans. Here is what I have so far.
Tables
LotInfo
LotID(primarykey)
LotLoanRef
LotID(primarykey)
LoanID(primarykey)
LoanInfo
LoanID(primarykey)
LoanType
Bank
LoanNumber
Interest Rate
CurrentBalance
LoanType
LoanTypeID(primarykey)
LoanType
LoanTransInfo
LoanTransID(primarykey)
TransDate
TransType
TransAmount
TransPrincipal
TransInterest
TransType
TransTypeID(primarykey)
TransType
So how do I keep track of the current balance on the loan once payments are applied. Also.. other things to note. The interest rate on the loan can change as well. Also… A loan can have more that one lot on it sometimes and a lot can have more than one loan sometimes. That is why I setup the LotLoanRef table.
There are TransTypes that need to do different things. If the Trans Type is a payment I need to calculate the interest since the last payment and deduct that from the payment and then apply the difference towards principal. I have no idea how I would do this.
Tables
LotInfo
LotID(primarykey)
LotLoanRef
LotID(primarykey)
LoanID(primarykey)
LoanInfo
LoanID(primarykey)
LoanType
Bank
LoanNumber
Interest Rate
CurrentBalance
LoanType
LoanTypeID(primarykey)
LoanType
LoanTransInfo
LoanTransID(primarykey)
TransDate
TransType
TransAmount
TransPrincipal
TransInterest
TransType
TransTypeID(primarykey)
TransType
So how do I keep track of the current balance on the loan once payments are applied. Also.. other things to note. The interest rate on the loan can change as well. Also… A loan can have more that one lot on it sometimes and a lot can have more than one loan sometimes. That is why I setup the LotLoanRef table.
There are TransTypes that need to do different things. If the Trans Type is a payment I need to calculate the interest since the last payment and deduct that from the payment and then apply the difference towards principal. I have no idea how I would do this.