feat: add loan action button (approve) (#1148)

Fixes: #829

Co-authored-by: Benura Abeywardena <benuraab@gmail.com>
This commit is contained in:
Muskan Khedia
2020-07-21 22:45:39 +05:30
committed by GitHub
co-authored by Benura Abeywardena
parent 1587dcfe5d
commit f618bb3cda
9 changed files with 207 additions and 3 deletions
+16
View File
@@ -105,6 +105,11 @@ export class LoansService {
return this.http.get(`/loans/${loanId}`, {params: httpParams});
}
getApproveAssociationsDetails(loanId: any) {
const httpParams = new HttpParams()
.set('associations', 'multiDisburseDetails');
return this.http.get(`/loans/${loanId}`, { params: httpParams });
}
/**
* @param loanId Loan Id
* @returns The notes for particular loan
@@ -342,4 +347,15 @@ export class LoansService {
return this.http.post(`/templates/${templateId}`, {}, { params: httpParams, responseType: 'text'});
}
/**
* Get Loan Charge Aproval template.
* @param {string} loanId Loan Id.
* @returns {Observable<any>}
*/
getLoanApprovalTemplate(loanId: string): Observable<any> {
const httpParams = new HttpParams()
.set('templateType', 'approval');
return this.http.get(`/loans/${loanId}/template`, { params: httpParams });
}
}