feat: update RBI reserve return form 1 & 9 UI and FD accounting mapping
This commit is contained in:
@@ -121,6 +121,47 @@ export class RbiCircularsService {
|
||||
return this.http.get('/ossreturn/oss2', { params: this.ossParams(quarterEndDate, officeId) });
|
||||
}
|
||||
|
||||
// ── Saved returns ──
|
||||
|
||||
/**
|
||||
* Returns saved earlier, newest first. A saved return is served from the snapshot taken when it
|
||||
* was saved, never recomputed — a backdated entry or a changed mapping would otherwise produce a
|
||||
* different statement from the one that was reviewed.
|
||||
*/
|
||||
getSavedReturns(formCode?: string): Observable<any> {
|
||||
let params = new HttpParams();
|
||||
if (formCode) {
|
||||
params = params.set('formCode', formCode);
|
||||
}
|
||||
return this.http.get('/rbiformafiling', { params });
|
||||
}
|
||||
|
||||
/** One saved return, with the stored snapshot, so the screen renders what was saved. */
|
||||
getSavedReturn(filingId: number): Observable<any> {
|
||||
return this.http.get(`/rbiformafiling/${filingId}`);
|
||||
}
|
||||
|
||||
/** Keeps the return currently on screen. Re-saving the same form and date replaces it. */
|
||||
saveReturn(formCode: string, reportingDate: string, report: any, remarks?: string): Observable<any> {
|
||||
return this.http.post('/rbiformafiling', {
|
||||
formCode,
|
||||
reportingDate,
|
||||
report,
|
||||
remarks,
|
||||
locale: 'en',
|
||||
dateFormat: 'yyyy-MM-dd'
|
||||
});
|
||||
}
|
||||
|
||||
/** Moves a saved return along its filing lifecycle; the snapshot itself is untouched. */
|
||||
updateSavedReturnStatus(filingId: number, status: string, remarks?: string): Observable<any> {
|
||||
return this.http.post(`/rbiformafiling/${filingId}/status`, { status, remarks });
|
||||
}
|
||||
|
||||
deleteSavedReturn(filingId: number): Observable<any> {
|
||||
return this.http.delete(`/rbiformafiling/${filingId}`);
|
||||
}
|
||||
|
||||
private ossParams(quarterEndDate?: string, officeId?: number): HttpParams {
|
||||
let params = new HttpParams();
|
||||
if (quarterEndDate) {
|
||||
|
||||
Reference in New Issue
Block a user