WEB-277: Collection sheet and Productive collection sheet part I

This commit is contained in:
Jose Alberto Hernandez
2025-09-02 21:36:31 -05:00
parent f1adfaf9e1
commit dbf551fcd1
25 changed files with 412 additions and 21 deletions
+5 -16
View File
@@ -14,22 +14,6 @@ import { Observable } from 'rxjs';
export class CollectionsService {
constructor(private http: HttpClient) {}
/**
* Returns all the offices
*/
getOffices(): Observable<any> {
return this.http.get(`/offices`);
}
/**
* Returns the loan officer(staffs) for the particular office
* @param {officeId} OfficeId any
*/
getStaffs(officeId: any): Observable<any> {
const httpParams = new HttpParams().set('officeId', officeId).set('status', 'all');
return this.http.get(`/staff`, { params: httpParams });
}
/**
* Retrieves the Collection Sheet Data
* @param {data} data any
@@ -39,6 +23,11 @@ export class CollectionsService {
return this.http.post(`/collectionsheet`, data, { params: httpParams });
}
generateCollectionSheetData(centerId: number, data: any): Observable<any> {
const httpParams = new HttpParams().set('command', 'generateCollectionSheet');
return this.http.post(`/centers/${centerId}`, data, { params: httpParams });
}
/**
* Executes the Save Collection Sheet Data
* @param {data} data any