feat: add loan action button (write_off) (#866)

Fixes: #847
This commit is contained in:
Benura Abeywardena
2020-06-14 19:33:44 +05:30
committed by GitHub
parent ae1d176d40
commit b464112ef2
8 changed files with 144 additions and 0 deletions
@@ -32,6 +32,8 @@ export class LoanActionButtonResolver implements Resolve<Object> {
// return this.loansService.getLoanActionTemplate(loanId, 'repayment');
} else if (loanActionButton === 'waive-interest') {
return this.loansService.getLoanActionTemplate(loanId, 'waiveinterest');
} else if (loanActionButton === 'write-off') {
return this.loansService.getLoanActionTemplate(loanId, 'writeoff');
} else {
return this.loansService.getLoanActionTemplate(loanId, 'prepayLoan');
}