Subversion Repositories SmartDukaan

Rev

Rev 36543 | Rev 36922 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 36543 Rev 36885
Line 214... Line 214...
214
                <div>
214
                <div>
215
                    <h6 class=" yellow p-1 m-0">Active Loans</h6>
215
                    <h6 class=" yellow p-1 m-0">Active Loans</h6>
216
                    <table class="table  table-sm raised">
216
                    <table class="table  table-sm raised">
217
                        <tbody>
217
                        <tbody>
218
                        <tr>
218
                        <tr>
-
 
219
                            <th>#</th>
219
                            <th>Loan Id</th>
220
                            <th>Loan Id</th>
220
                            <th>Interest Rate(%)</th>
221
                            <th>Interest Rate(%)</th>
221
                            <th>Initial Amount</th>
222
                            <th>Principal Amount</th>
222
                            <th>Pending Amount</th>
223
                            <th>Pending Principal</th>
223
                            <th>Interest Accrued</th>
224
                            <th>Pending Interest</th>
224
                            <th>Interest Paid</th>
225
                            <th>Total Pending</th>
225
                            <th>Opening Date</th>
226
                            <th>Opening Date</th>
226
                            <th>Due Date</th>
227
                            <th>Due Date</th>
227
                        </tr>
228
                        </tr>
228
 
229
 
229
                            #foreach($ls in $loans)
230
                            #foreach($ls in $loans)
230
 
231
 
231
                            <tr>
232
                            <tr>
232
 
233
 
-
 
234
                                <td>$foreach.count</td>
233
                                <td>$ls.getId()</td>
235
                                <td>$ls.getId()</td>
234
                                <td>$ls.getInterestRate().setScale(2,$ru)</td>
236
                                <td>$ls.getInterestRate().setScale(2,$ru)</td>
235
                                <td>$ls.getIntialAmount().setScale(2,$ru)</td>
237
                                <td>$ls.getIntialAmount().setScale(2,$ru)</td>
236
                                <td>$ls.getPendingAmount().setScale(2,$ru)</td>
238
                                <td>$ls.getPendingAmount().setScale(2,$ru)</td>
237
                                <td>$ls.getInterestAccrued().setScale(2,$ru)</td>
239
                                <td>$ls.getInterestAccrued().subtract($ls.getInterestPaid()).setScale(2,$ru)</td>
238
 
-
 
239
                                <td>$ls.getInterestPaid().setScale(2,$ru)</td>
240
                                <td>$ls.getPendingAmount().add($ls.getInterestAccrued()).subtract($ls.getInterestPaid()).setScale(2,$ru)</td>
240
                                <td>$ls.getCreatedOn().format($dateTimeFormatter)</td>
241
                                <td>$ls.getCreatedOn().format($dateTimeFormatter)</td>
241
                                <td>$ls.getDueDate().format($dateTimeFormatter)</td>
242
                                <td>$ls.getDueDate().format($dateTimeFormatter)</td>
242
                            </tr>
243
                            </tr>
243
                            #end
244
                            #end
244
                        <tr>
245
                        <tr>
245
                            <td colspan="2" style="text-align: right;">Total</td>
246
                            <td colspan="2" style="text-align: right;">Total</td>
-
 
247
                            <td>-</td>
246
                            <td>$totalInitialAmount.setScale(2,$ru)</td>
248
                            <td>$totalInitialAmount.setScale(2,$ru)</td>
247
                            <td>$totalPendingAmount.setScale(2,$ru)</td>
249
                            <td>$totalPendingAmount.setScale(2,$ru)</td>
248
                            <td>$totalInterestAccured.setScale(2,$ru)</td>
250
                            <td>$totalInterestAccured.subtract($totalInterestPaid).setScale(2,$ru)</td>
249
                            <td>$totalInterestPaid.setScale(2,$ru)</td>
251
                            <td>$totalPendingAmount.add($totalInterestAccured).subtract($totalInterestPaid).setScale(2,$ru)</td>
250
                            <td>-</td>
252
                            <td>-</td>
251
                            <td>-</td>
253
                            <td>-</td>
252
                        </tr>
254
                        </tr>
253
 
255
 
254
 
256