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 { CurrentAccountsService } from '../../current-accounts.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 { STANDALONE_SHARED_IMPORTS } from 'app/standalone-shared.module';
|
||||
|
||||
/**
|
||||
@@ -40,6 +41,7 @@ export class AddChargeCurrentAccountComponent implements OnInit {
|
||||
private router = inject(Router);
|
||||
private dateUtils = inject(Dates);
|
||||
private currentAccountsService = inject(CurrentAccountsService);
|
||||
private facilityChargeFilter = inject(FacilityChargeFilterService);
|
||||
private settingsService = inject(SettingsService);
|
||||
|
||||
/** Minimum Due Date allowed. */
|
||||
@@ -66,7 +68,9 @@ export class AddChargeCurrentAccountComponent implements OnInit {
|
||||
*/
|
||||
constructor() {
|
||||
this.route.data.subscribe((data: { currentAccountActionData: any }) => {
|
||||
this.currentAccountChargeOptions = data.currentAccountActionData.chargeOptions;
|
||||
this.facilityChargeFilter
|
||||
.excludeFacilityCharges(data.currentAccountActionData.chargeOptions)
|
||||
.subscribe((charges: any[]) => (this.currentAccountChargeOptions = charges));
|
||||
});
|
||||
this.currentAccountId = this.route.snapshot.params['currentAccountId'];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user