feat: add loan action button (#874)

- add prepay loan action
- add repayment loan action

Fixes: #243
Fixes: #242
This commit is contained in:
Muskan Khedia
2020-06-13 17:54:26 +05:30
committed by GitHub
parent da609f0de4
commit 06fd5e793c
17 changed files with 504 additions and 32 deletions
@@ -65,7 +65,7 @@ export class LoansAccountCloseComponent implements OnInit {
const closeForm = this.closeLoanForm.value;
closeForm.locale = 'en';
closeForm.dateFormat = dateFormat;
this.loanService.closeAccount(this.loanId, closeForm)
this.loanService.submitLoanActionButton(this.loanId, closeForm, 'close')
.subscribe((response: any) => {
this.router.navigate(['../general'], { relativeTo: this.route });
});