WEB-745: Fix unable to assign staff to active savings account (#3179)

This commit is contained in:
Krishna Mewara
2026-02-17 12:08:54 -06:00
committed by GitHub
parent d4be63c23b
commit aaace0f27b
17 changed files with 66 additions and 17 deletions
+8 -4
View File
@@ -720,12 +720,16 @@ export class OrganizationService {
return this.http.get(`/groups`, { params: httpParams });
}
/*
* @param {any} officeId ID of office to retrieve staff from.
/**
* @param {number | string} officeId ID of office to retrieve staff from.
* @param {boolean} [isLoanOfficer] Optional flag to filter by loan officer status.
* @returns {Observable<any>} Staff data.
*/
getStaff(officeId: any): Observable<any> {
const httpParams = new HttpParams().set('officeId', officeId.toString());
getStaff(officeId: number | string, isLoanOfficer?: boolean): Observable<any> {
let httpParams = new HttpParams().set('officeId', officeId.toString()).set('status', 'active');
if (isLoanOfficer !== undefined) {
httpParams = httpParams.set('isLoanOfficer', isLoanOfficer.toString());
}
return this.http.get('/staff', { params: httpParams });
}