feat: add loan action (guarantors) (#1059)

- add view guarantor
 - add create guarantor
 - add view guarantor details
 - add delete guarantor
 - add recover from guarantor
 - add delete loan action

Fixes: #832, #246
This commit is contained in:
Muskan Khedia
2020-07-12 11:06:38 +05:30
committed by GitHub
parent e74fdcf27b
commit ff6ac7028e
30 changed files with 838 additions and 20 deletions
@@ -44,6 +44,10 @@ export class LoanActionButtonResolver implements Resolve<Object> {
return this.loansService.getLoanActionTemplate(loanId, 'prepayLoan');
} else if (loanActionButton === 'recovery-payment') {
return this.loansService.getLoanActionTemplate(loanId, 'recoverypayment');
} else if (loanActionButton === 'view-guarantors') {
return this.loansService.getLoanAccountResource(loanId, 'guarantors');
} else if (loanActionButton === 'create-guarantor') {
return this.loansService.getGuarantorTemplate(loanId);
} else {
return undefined;
}