/** * Copyright since 2025 Mifos Initiative * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ import { Component } from '@angular/core'; import { FormsModule } from '@angular/forms'; import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module'; import { RbiReserveConfigComponent } from './rbi-reserve-config.component'; /** * GL configuration for OSS 2 — Return on Earnings. * * Separate from OSS 1 because the two read their accounts differently, not only because they are * different returns: OSS 1 takes closing balances, OSS 2 takes the movement over the quarter. The * same account mapped to both would be right on one and wrong on the other, so the screens are kept * apart rather than sharing a single list of accounts. */ @Component({ selector: 'mifosx-oss2-gl-config', templateUrl: './rbi-reserve-config.component.html', styleUrls: ['./rbi-reserve-config.component.scss'], imports: [ ...STANDALONE_SHARED_IMPORTS, FormsModule ] }) export class Oss2GlConfigComponent extends RbiReserveConfigComponent { protected override readonly group = 'OSS2'; protected override readonly showRates = false; override get screenTitle(): string { return 'OSS 2 GL Configuration'; } override get screenSubtitle(): string { return ( 'The GL accounts OSS 2 — Return on Earnings reads its figures from. Each item takes the movement over the ' + 'reporting quarter, not a closing balance: an earnings line reports what was earned or spent in the period, so ' + 'the same accounts read as balances would carry forward every earlier quarter as well.' ); } }