Merge remote-tracking branch 'origin/dev-latest' into feature/dds-agent-settlement-reports
# Conflicts: # src/app/core/shell/shell.component.html # src/app/organization/organization-routing.module.ts # src/environments/.env.ts
This commit is contained in:
@@ -1156,4 +1156,51 @@ export class OrganizationService {
|
||||
deleteLoanOriginator(originatorId: number): Observable<any> {
|
||||
return this.http.delete(`/loan-originators/${originatorId}`);
|
||||
}
|
||||
|
||||
// ── Institution Profile ──
|
||||
|
||||
/** @returns {Observable<any>} The bank's own profile (name, legal name, code, contact...). */
|
||||
getInstitutionProfile(): Observable<any> {
|
||||
return this.http.get('/institutionprofile');
|
||||
}
|
||||
|
||||
/** @returns {Observable<any>} */
|
||||
updateInstitutionProfile(payload: any): Observable<any> {
|
||||
return this.http.put('/institutionprofile', payload);
|
||||
}
|
||||
|
||||
// ── Branch Profile ──
|
||||
|
||||
/** @returns {Observable<any[]>} Every office joined with its branch profile fields, if any. */
|
||||
getBranchProfiles(): Observable<any> {
|
||||
return this.http.get('/branchprofile');
|
||||
}
|
||||
|
||||
/** @returns {Observable<any>} One office's branch profile, joined with its office fields. */
|
||||
getBranchProfile(officeId: number): Observable<any> {
|
||||
const params = new HttpParams().set('officeId', String(officeId));
|
||||
return this.http.get('/branchprofile', { params });
|
||||
}
|
||||
|
||||
/** @returns {Observable<any>} */
|
||||
updateBranchProfile(officeId: number, payload: any): Observable<any> {
|
||||
return this.http.put(`/branchprofile/${officeId}`, payload);
|
||||
}
|
||||
|
||||
// ── Clearing GL Configuration ──
|
||||
|
||||
/** @returns {Observable<any[]>} Every clearing role (CTS/NACH/RTGS...) and its mapped GL account, if any. */
|
||||
getClearingGlConfig(): Observable<any> {
|
||||
return this.http.get('/clearingglconfig');
|
||||
}
|
||||
|
||||
/** @returns {Observable<any>} Selectable GL accounts for mapping a clearing role. */
|
||||
getClearingGlConfigTemplate(): Observable<any> {
|
||||
return this.http.get('/clearingglconfig/template');
|
||||
}
|
||||
|
||||
/** @returns {Observable<any>} */
|
||||
updateClearingGlConfig(configKey: string, glAccountId: number | null): Observable<any> {
|
||||
return this.http.put(`/clearingglconfig/${configKey}`, { glAccountId });
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user