feat: update TDS config, RBI reserve returns, current products, and dormancy reports
This commit is contained in:
@@ -13,6 +13,7 @@ import { Observable, map } from 'rxjs';
|
||||
|
||||
/** Custom Helpers */
|
||||
import { toIsoDate } from '../core/utils/api-date';
|
||||
import { configuredFys } from '../letter-mgmt/certificates/form-15gh/tds-15gh.compute';
|
||||
import { TdsDeductee } from './tds-reports-data';
|
||||
|
||||
/**
|
||||
@@ -77,14 +78,11 @@ export class TdsReportsService {
|
||||
return {};
|
||||
}
|
||||
const out: Record<string, any> = {};
|
||||
// Applied to the years the reports can show. Without an acceptance date on the record the
|
||||
// declaration is treated as operative from the start of each year rather than mid-year.
|
||||
for (const year of [
|
||||
2025,
|
||||
2026
|
||||
]) {
|
||||
const fy = `FY ${year}-${String(year + 1).slice(2)}`;
|
||||
out[fy] = { kind, acceptedOn: `${year}-04-01`, fy };
|
||||
// Applied to every configured year. Without an acceptance date on the record the declaration is
|
||||
// treated as operative from the start of each year rather than mid-year. Keyed '2026-27', the
|
||||
// form the computation looks it up by - an 'FY 2026-27' key was never found.
|
||||
for (const fy of configuredFys()) {
|
||||
out[fy] = { kind, acceptedOn: `${fy.slice(0, 4)}-04-01`, fy };
|
||||
}
|
||||
return out;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user