Loan Repayment Schedule edition to have variations (#1608)
Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
25ca2b7bb0
commit
6431ede355
@@ -53,15 +53,16 @@ export class LoansViewComponent implements OnInit {
|
||||
ngOnInit() {
|
||||
this.recalculateInterest = this.loanDetailsData.recalculateInterest || true;
|
||||
this.status = this.loanDetailsData.status.value;
|
||||
this.setConditionalButtons();
|
||||
|
||||
if (this.loanDetailsData.multiDisburseLoan) {
|
||||
this.loanDetailsData.transactions.forEach((tranaction: any) => {
|
||||
if (tranaction.type.disbursement) {
|
||||
this.disburseTransactionNo++;
|
||||
}
|
||||
});
|
||||
if (this.loanDetailsData.status.active && this.loanDetailsData.multiDisburseLoan) {
|
||||
if (this.loanDetailsData) {
|
||||
this.loanDetailsData.transactions.forEach((transaction: any) => {
|
||||
if (transaction.type.disbursement) {
|
||||
this.disburseTransactionNo++;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
this.setConditionalButtons();
|
||||
if (this.router.url.includes('clients')) {
|
||||
this.entityType = 'Client';
|
||||
} else if (this.router.url.includes('groups')) {
|
||||
|
||||
Reference in New Issue
Block a user