feat: add loan action button (approve) (#1148)
Fixes: #829 Co-authored-by: Benura Abeywardena <benuraab@gmail.com>
This commit is contained in:
co-authored by
Benura Abeywardena
parent
1587dcfe5d
commit
f618bb3cda
@@ -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 });
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user