feat: updates for cashier, tds reports, rbi reserve and dashboard
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
}
|
||||
} @else {
|
||||
<span class="rrc-rate-now__value rrc-rate-now__value--none">Not set</span>
|
||||
<span class="rrc-rate-now__since">{{ type === 'CRR' ? 'Form 1' : 'Form 9' }} cannot compute</span>
|
||||
<span class="rrc-rate-now__since">{{ type === 'CRR' ? 'Form 1 Part B' : 'Form 1 Part C' }} cannot compute</span>
|
||||
}
|
||||
</div>
|
||||
}
|
||||
@@ -62,8 +62,10 @@
|
||||
<mat-form-field appearance="outline" subscriptSizing="dynamic" class="rrc-rate-form__type">
|
||||
<mat-label>Rate</mat-label>
|
||||
<mat-select [(ngModel)]="newRate.rateType">
|
||||
<mat-option value="CRR">CRR — Form 1</mat-option>
|
||||
<mat-option value="SLR">SLR — Form 9</mat-option>
|
||||
<!-- Both ratios are Form 1's. Part B charges section 18 on the base, Part C section
|
||||
24 on the same base - one form, two parts, not two returns. -->
|
||||
<mat-option value="CRR">CRR — Form 1 Part B</mat-option>
|
||||
<mat-option value="SLR">SLR — Form 1 Part C</mat-option>
|
||||
<!-- Not a reserve ratio, but set by RBI and effective-dated the same way: the share of
|
||||
savings balances that counts as a demand liability, the rest being time. -->
|
||||
<mat-option value="SAVINGS_DEMAND">Savings — demand share</mat-option>
|
||||
|
||||
@@ -23,8 +23,11 @@ export interface ReserveMapping {
|
||||
}
|
||||
|
||||
/**
|
||||
* Configuration behind RBI Form 1 (CRR) and Form 9 (SLR): the percentages RBI sets, and which GL
|
||||
* accounts the returns read their figures from.
|
||||
* Configuration behind RBI Form 1: the percentages RBI sets, and which GL accounts the return reads
|
||||
* its figures from.
|
||||
*
|
||||
* One form settles both ratios. Part B is section 18 (the cash reserve) and Part C is section 24
|
||||
* (the liquid assets), charged on the same base, so CRR and SLR are configured together here.
|
||||
*
|
||||
* Both halves sit on one screen because they are one decision. A percentage applies to a base, and
|
||||
* an administrator who sets the rate but never maps the accounts produces a return that looks
|
||||
@@ -47,8 +50,8 @@ export class RbiReserveConfigComponent implements OnInit {
|
||||
private organizationService = inject(OrganizationService);
|
||||
|
||||
/**
|
||||
* Which return's roles this screen configures, as the backend groups them: 'RESERVE' for Form 1
|
||||
* and Form 9, 'OSS1', 'OSS2'. Null shows every role.
|
||||
* Which return's roles this screen configures, as the backend groups them: 'RESERVE' for Form 1,
|
||||
* 'FORM9' for Form IX, 'OSS1', 'OSS2'. Null shows every role.
|
||||
*
|
||||
* A screen per return rather than one screen for all of them: the four roles that drive CRR and
|
||||
* the thirty that do not are separate decisions, made by different people at different times,
|
||||
@@ -65,13 +68,14 @@ export class RbiReserveConfigComponent implements OnInit {
|
||||
roleGroups: { name: string; label: string; roles: any[] }[] = [];
|
||||
|
||||
/**
|
||||
* Which return's configuration is on screen: Form 1, Form 9, or both together.
|
||||
* Which return's configuration is on screen: Form 1, Form IX, or both together.
|
||||
*
|
||||
* The two returns share a base but maintain their requirement in different assets, so an
|
||||
* administrator setting one up is looking at a different set of heads than one setting up the
|
||||
* other. Showing all twenty-six at once buries the four that matter for the task in hand.
|
||||
* The two returns have nothing in common - Form 1 charges ratios on a liability base, Form IX
|
||||
* reports a balance sheet - so an administrator setting one up is looking at a different set of
|
||||
* heads than one setting up the other. Showing all of them at once buries the handful that matter
|
||||
* for the task in hand.
|
||||
*/
|
||||
formFilter: 'ALL' | 'FORM_1' | 'FORM_9' | 'FORM_IX' = 'ALL';
|
||||
formFilter: 'ALL' | 'FORM_1' | 'FORM_IX' = 'ALL';
|
||||
|
||||
/** Every reserve role the backend returned, before the form filter narrows it. */
|
||||
private allRoles: any[] = [];
|
||||
@@ -95,20 +99,28 @@ export class RbiReserveConfigComponent implements OnInit {
|
||||
return scoped.filter((r: any) => this.belongsToSelectedForm(r));
|
||||
}
|
||||
|
||||
/**
|
||||
* The returns this bank files, and the only ones that can be configured.
|
||||
*
|
||||
* There is no separate SLR return. Form 1 settles both ratios on one form - Part B is section 18,
|
||||
* the cash reserve, and Part C is section 24, the liquid assets - so the heads that meet SLR are
|
||||
* Form 1's heads. A "Form 9 - SLR" option used to sit here from before that was understood; it
|
||||
* selected a return that has no report behind it, and filtered the SLR heads out of the one form
|
||||
* that actually reports them.
|
||||
*/
|
||||
readonly formFilters = [
|
||||
{ value: 'ALL', label: 'All returns' },
|
||||
{ value: 'FORM_1', label: 'Form 1 — CRR (fortnightly)' },
|
||||
{ value: 'FORM_9', label: 'Form 9 — SLR (monthly)' },
|
||||
{ value: 'FORM_1', label: 'Form 1 — CRR & SLR' },
|
||||
{ value: 'FORM_IX', label: 'Form IX — Assets & Liabilities (R408)' }
|
||||
];
|
||||
|
||||
/**
|
||||
* Whether a head belongs to the return currently selected.
|
||||
*
|
||||
* Decided from how the return consumes the head rather than from its name: MAINTAINED is met in
|
||||
* cash and balances and so is Form 1's, SLR_ASSET is met in securities and gold and so is Form
|
||||
* 9's, and a head that builds or nets the DTL base belongs to both because both charge their rate
|
||||
* on that same base. A memo head is stated on either return and so shows on both.
|
||||
* Form 1 takes every head that is not Form IX's. It reports both ratios: MAINTAINED heads are met
|
||||
* in cash and balances and settle Part B, SLR_ASSET heads are met in securities and gold and
|
||||
* settle Part C, and the heads that build or net the DTL base feed the IV(b) both rates are
|
||||
* charged on. Splitting them across two filters only hid half of one form.
|
||||
*/
|
||||
private belongsToSelectedForm(role: any): boolean {
|
||||
if (this.formFilter === 'ALL') {
|
||||
@@ -125,19 +137,7 @@ export class RbiReserveConfigComponent implements OnInit {
|
||||
if (this.formFilter === 'FORM_IX') {
|
||||
return false;
|
||||
}
|
||||
// The built-in SLR investments role predates the SLR_ASSET usage and still carries MAINTAINED,
|
||||
// so it is placed by name; every other head is placed by how the return consumes it.
|
||||
if (role.configKey === 'SLR_INVESTMENTS') {
|
||||
return this.formFilter === 'FORM_9';
|
||||
}
|
||||
const usage = role.usage || role.roleUsage;
|
||||
if (usage === 'MAINTAINED') {
|
||||
return this.formFilter === 'FORM_1';
|
||||
}
|
||||
if (usage === 'SLR_ASSET') {
|
||||
return this.formFilter === 'FORM_9';
|
||||
}
|
||||
// LIABILITY, ASSET_NET and MEMO all appear on both returns.
|
||||
// Everything left belongs to Form 1, whichever of its two parts it settles.
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -171,15 +171,15 @@ export class RbiReserveConfigComponent implements OnInit {
|
||||
/**
|
||||
* How a head an administrator adds is consumed by the return.
|
||||
*
|
||||
* MAINTAINED and SLR_ASSET are separate because the two returns admit different assets: CRR is
|
||||
* met in cash and balances with banks, SLR in cash, gold and approved securities. One option for
|
||||
* both would let a head meant for Form 1 quietly satisfy Form 9.
|
||||
* MAINTAINED and SLR_ASSET are separate because the two parts admit different assets: CRR is met
|
||||
* in cash and balances with banks, SLR in cash, gold and approved securities. One option for both
|
||||
* would let a head meant for Part B quietly satisfy Part C.
|
||||
*/
|
||||
readonly roleUsages = [
|
||||
{ value: 'LIABILITY', label: 'Liability — adds to the DTL base (Form 1 & 9)' },
|
||||
{ value: 'ASSET_NET', label: 'Asset — netted off the base to give NDTL (Form 1 & 9)' },
|
||||
{ value: 'MAINTAINED', label: 'Counts toward CRR maintained (Form 1)' },
|
||||
{ value: 'SLR_ASSET', label: 'Counts toward SLR maintained (Form 9)' },
|
||||
{ value: 'LIABILITY', label: 'Liability — adds to the DTL base (Form 1)' },
|
||||
{ value: 'ASSET_NET', label: 'Asset — netted off the base to give NDTL (Form 1)' },
|
||||
{ value: 'MAINTAINED', label: 'Counts toward CRR maintained (Form 1 Part B)' },
|
||||
{ value: 'SLR_ASSET', label: 'Counts toward SLR maintained (Form 1 Part C)' },
|
||||
// Form IX has no ratio and no base: its usages say which side of the balance sheet a head sits
|
||||
// on. LIABILITY above serves its liability side, and this its asset side.
|
||||
{ value: 'ASSET', label: 'Asset — enters Total Assets (Form IX)' },
|
||||
@@ -282,9 +282,9 @@ export class RbiReserveConfigComponent implements OnInit {
|
||||
|
||||
get screenSubtitle(): string {
|
||||
return (
|
||||
'The CRR and SLR percentages, and the GL accounts that RBI Form 1 (CRR, fortnightly) and Form 9 (SLR, monthly) ' +
|
||||
'read their figures from. A rate applies to a base — so a role left unmapped stops its return computing rather ' +
|
||||
'than reporting a nil figure that looks real.'
|
||||
'The CRR and SLR percentages, and the GL accounts RBI Form 1 reads its figures from — Part B settles the cash ' +
|
||||
'reserve, Part C the liquid assets, both charged on the same base. A rate applies to a base — so a role left ' +
|
||||
'unmapped stops the return computing rather than reporting a nil figure that looks real.'
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user