This commit is contained in:
Audrey Ndum 2024-06-12 18:55:41 +00:00 committed by GitHub
commit 893a9e1b2d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 9 additions and 0 deletions

View File

@ -405,6 +405,11 @@
]
};
}
if (!data.canDisburse){
scope.showNetDisbursal = true;
}
scope.netDisbursal = data.repaymentSchedule.totalPrincipalDisbursed - data.repaymentSchedule.totalFeeChargesCharged;
resourceFactory.standingInstructionTemplateResource.get({fromClientId: scope.loandetails.clientId,fromAccountType: 1,fromAccountId: routeParams.id},function (response) {
scope.standinginstruction = response;

View File

@ -120,6 +120,10 @@
<th class="table-bold-loan">{{'label.heading.externalid' | translate}}</th>
<td><span class="padded-td">{{loandetails.externalId}}</span><span ng-hide="loandetails.externalId">{{'label.heading.notprovided' | translate}}</span></td>
</tr>
<tr ng-show="showNetDisbursal">
<th class="table-bold-loan">{{'Net Disbursal Amount' | translate}}</th>
<td><span class="padded-td">{{netDisbursal | number}}</span></td>
</tr>
</table>
<div ng-show="loandetails.summary">
<h3>{{'label.heading.currentBalance' | translate}}: {{loandetails.currency.displaySymbol}} {{loandetails.summary.totalOutstanding | number}}</h3>