feat: add loan button (undo-approval) (#860)

Fixes: #858
This commit is contained in:
Benura Abeywardena
2020-06-11 01:18:12 +05:30
committed by GitHub
parent 8503dc6d97
commit fb52d3cf21
8 changed files with 113 additions and 2 deletions
+10
View File
@@ -145,5 +145,15 @@ export class LoansService {
return this.http.delete(`/datatables/${datatableName}/${loanId}`, { params: httpParams });
}
/*
* Undo Loan Approval.
* @param {string} loanId Loan Id.
* @param {any} data Data.
* @returns {Observable<any>}
*/
undoLoanApproval(loanId: string, data: any): Observable<any> {
const httpParams = new HttpParams().set('command', 'undoapproval');
return this.http.post(`/loans/${loanId}`, data, {params: httpParams});
}
}