Documents and Notes for Clients, Loans and Clients (#1632)

Co-authored-by: Jose Alberto Hernandez <alberto@MacBook-Pro.local>
This commit is contained in:
José Alberto Hernández
2023-01-05 03:19:41 -06:00
committed by GitHub
co-authored by Jose Alberto Hernandez
parent 28d5d7595f
commit cafe8fa73d
57 changed files with 1119 additions and 468 deletions
+4
View File
@@ -322,6 +322,10 @@ export class LoansService {
return this.http.get(`/loans/${loanId}/documents`);
}
downloadLoanDocument(parentEntityId: string, documentId: string) {
return this.http.get(`/loans/${parentEntityId}/documents/${documentId}/attachment`, { responseType: 'blob' });
}
deleteLoanDocument(loanId: any, documentId: any): Observable<any> {
return this.http.delete(`/loans/${loanId}/documents/${documentId}`);
}