feat: add loan actions (loan-screen-reports) (#1143)

Fixes: #850
This commit is contained in:
Muskan Khedia
2020-07-19 21:50:58 +05:30
committed by GitHub
parent af6cdbaa9f
commit 7aa26c64b2
9 changed files with 203 additions and 2 deletions
+11
View File
@@ -154,6 +154,12 @@ export class LoansService {
return this.http.post(`/loans/${loanId}/transactions`, data, {params: httpParams});
}
getLoanScreenReportsData(): Observable<any> {
const httpParams = new HttpParams().set('entityId', '1')
.set('typeId', '0');
return this.http.get(`/templates`, {params: httpParams});
}
/**
* Get Loan Datatables
*/
@@ -331,4 +337,9 @@ export class LoansService {
return this.http.put(`/loans/${loanId}`, loanData);
}
getTemplateData(templateId: any, loanId: any): Observable<any> {
const httpParams = new HttpParams().set('loanId', loanId);
return this.http.post(`/templates/${templateId}`, {}, { params: httpParams, responseType: 'text'});
}
}