feat: cash-only registers, day book sections and DD amendments
This commit is contained in:
+5
-1
@@ -21,6 +21,7 @@ import { Router, ActivatedRoute, RouterLink } from '@angular/router';
|
||||
import { SavingsService } from '../../savings.service';
|
||||
import { SettingsService } from 'app/settings/settings.service';
|
||||
import { Dates } from 'app/core/utils/dates';
|
||||
import { FacilityChargeFilterService } from 'app/shared/charges/facility-charge-filter.service';
|
||||
import { FaIconComponent } from '@fortawesome/angular-fontawesome';
|
||||
import { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
|
||||
@@ -43,6 +44,7 @@ export class AddChargeSavingsAccountComponent implements OnInit {
|
||||
private dateUtils = inject(Dates);
|
||||
private savingsService = inject(SavingsService);
|
||||
private settingsService = inject(SettingsService);
|
||||
private facilityChargeFilter = inject(FacilityChargeFilterService);
|
||||
|
||||
/** Minimum Due Date allowed. */
|
||||
minDate = new Date(2000, 0, 1);
|
||||
@@ -68,7 +70,9 @@ export class AddChargeSavingsAccountComponent implements OnInit {
|
||||
*/
|
||||
constructor() {
|
||||
this.route.data.subscribe((data: { savingsAccountActionData: any }) => {
|
||||
this.savingsChargeOptions = data.savingsAccountActionData.chargeOptions;
|
||||
this.facilityChargeFilter
|
||||
.excludeFacilityCharges(data.savingsAccountActionData.chargeOptions)
|
||||
.subscribe((charges: any[]) => (this.savingsChargeOptions = charges));
|
||||
});
|
||||
this.savingAccountId = this.route.snapshot.params['savingAccountId'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user