Upgrade/angular 14 (#1853)
* Fix Loan product Payment Allocation * Upgrade to Angular 14 --------- Co-authored-by: Jose Alberto Hernandez <alberto@blue-daemon.local>
This commit is contained in:
co-authored by
Jose Alberto Hernandez
parent
2dab3b70ca
commit
80936a3ea9
@@ -29,7 +29,7 @@ jobs:
|
|||||||
# lts/gallium node v19.7.0 (npm v9.5.0)
|
# lts/gallium node v19.7.0 (npm v9.5.0)
|
||||||
node-version: '19.7.0'
|
node-version: '19.7.0'
|
||||||
- name: Angular CLI install
|
- name: Angular CLI install
|
||||||
run : npm install -g --silent @angular/cli@13.3.10
|
run : npm install -g --silent @angular/cli@14.2.12
|
||||||
|
|
||||||
- name: Npm install
|
- name: Npm install
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|||||||
@@ -53,3 +53,4 @@ testem.log
|
|||||||
# System Files
|
# System Files
|
||||||
.DS_Store
|
.DS_Store
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
|
.vscode/
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ The latest code is continuously deployed at https://openmf.github.io/web-app/ wh
|
|||||||
|
|
||||||
2. Install [angular-cli](https://github.com/angular/angular-cli) globally.
|
2. Install [angular-cli](https://github.com/angular/angular-cli) globally.
|
||||||
```
|
```
|
||||||
npm install -g @angular/cli@13.3.10
|
npm install -g @angular/cli@14.2.12
|
||||||
```
|
```
|
||||||
|
|
||||||
3. Clone the project locally into your system.
|
3. Clone the project locally into your system.
|
||||||
|
|||||||
+1
-3
@@ -80,7 +80,6 @@
|
|||||||
"optimization": false,
|
"optimization": false,
|
||||||
"sourceMap": true,
|
"sourceMap": true,
|
||||||
"namedChunks": true,
|
"namedChunks": true,
|
||||||
"outputHashing": "all",
|
|
||||||
"extractLicenses": true,
|
"extractLicenses": true,
|
||||||
"aot": true,
|
"aot": true,
|
||||||
"buildOptimizer": true,
|
"buildOptimizer": true,
|
||||||
@@ -230,6 +229,5 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
}
|
||||||
"defaultProject": "mifosx-web-app"
|
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+5106
-4112
File diff suppressed because it is too large
Load Diff
+18
-18
@@ -29,20 +29,20 @@
|
|||||||
"cypress:run": "cypress run"
|
"cypress:run": "cypress run"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular-devkit/schematics": "^14.0.4",
|
"@angular-devkit/schematics": "^14.2.12",
|
||||||
"@angular-material-components/datetime-picker": "^7.0.0",
|
"@angular-material-components/datetime-picker": "^8.0.0",
|
||||||
"@angular/animations": "^13.3.12",
|
"@angular/animations": "^14.3.0",
|
||||||
"@angular/cdk": "13.3.9",
|
"@angular/cdk": "14.2.7",
|
||||||
"@angular/common": "13.3.12",
|
"@angular/common": "14.3.0",
|
||||||
"@angular/compiler": "13.3.12",
|
"@angular/compiler": "14.3.0",
|
||||||
"@angular/core": "13.3.12",
|
"@angular/core": "14.3.0",
|
||||||
"@angular/flex-layout": "13.0.0-beta.38",
|
"@angular/forms": "14.3.0",
|
||||||
"@angular/forms": "13.3.12",
|
"@angular/localize": "14.3.0",
|
||||||
"@angular/localize": "13.3.12",
|
"@angular/material": "14.2.7",
|
||||||
"@angular/material": "13.3.9",
|
"@angular/platform-browser": "14.3.0",
|
||||||
"@angular/platform-browser": "13.3.12",
|
"@angular/platform-browser-dynamic": "14.3.0",
|
||||||
"@angular/platform-browser-dynamic": "13.3.12",
|
"@angular/router": "14.3.0",
|
||||||
"@angular/router": "13.3.12",
|
"@angular/flex-layout": "^14.0.0-beta.40",
|
||||||
"@ckeditor/ckeditor5-angular": "1.2.3",
|
"@ckeditor/ckeditor5-angular": "1.2.3",
|
||||||
"@ckeditor/ckeditor5-build-classic": "21.0.0",
|
"@ckeditor/ckeditor5-build-classic": "21.0.0",
|
||||||
"@fortawesome/angular-fontawesome": "^0.10.2",
|
"@fortawesome/angular-fontawesome": "^0.10.2",
|
||||||
@@ -61,10 +61,10 @@
|
|||||||
"zone.js": "0.11.6"
|
"zone.js": "0.11.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "13.3.10",
|
"@angular-devkit/build-angular": "14.2.12",
|
||||||
"@angular/cli": "13.3.10",
|
"@angular/cli": "14.2.12",
|
||||||
"@angular/compiler-cli": "13.3.12",
|
"@angular/compiler-cli": "14.3.0",
|
||||||
"@angular/language-service": "13.3.12",
|
"@angular/language-service": "14.3.0",
|
||||||
"@biesbjerg/ngx-translate-extract": "^7.0.4",
|
"@biesbjerg/ngx-translate-extract": "^7.0.4",
|
||||||
"@cypress/schematic": "^1.7.0",
|
"@cypress/schematic": "^1.7.0",
|
||||||
"@ngx-rocket/scripts": "3.0.3",
|
"@ngx-rocket/scripts": "3.0.3",
|
||||||
|
|||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { FormBuilder, FormGroup, Validators, FormControl } from '@angular/forms';
|
import { UntypedFormBuilder, UntypedFormGroup, Validators, FormControl } from '@angular/forms';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
import { AccountTransfersService } from '../account-transfers.service';
|
import { AccountTransfersService } from '../account-transfers.service';
|
||||||
@@ -27,7 +27,7 @@ export class CreateStandingInstructionsComponent implements OnInit {
|
|||||||
/** Allow Client Edit */
|
/** Allow Client Edit */
|
||||||
allowclientedit = true;
|
allowclientedit = true;
|
||||||
/** Edit Standing Instructions form. */
|
/** Edit Standing Instructions form. */
|
||||||
createStandingInstructionsForm: FormGroup;
|
createStandingInstructionsForm: UntypedFormGroup;
|
||||||
/** Priority Type Data */
|
/** Priority Type Data */
|
||||||
priorityTypeData: any;
|
priorityTypeData: any;
|
||||||
/** Status Type Data */
|
/** Status Type Data */
|
||||||
@@ -72,7 +72,7 @@ export class CreateStandingInstructionsComponent implements OnInit {
|
|||||||
* @param {SettingsService} settingsService Settings Service
|
* @param {SettingsService} settingsService Settings Service
|
||||||
* @param {Dates} dateUtils Date Utils
|
* @param {Dates} dateUtils Date Utils
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private accountTransfersService: AccountTransfersService,
|
private accountTransfersService: AccountTransfersService,
|
||||||
|
|||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { FormBuilder, FormGroup, Validators, FormControl } from '@angular/forms';
|
import { UntypedFormBuilder, UntypedFormGroup, Validators, FormControl } from '@angular/forms';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
import { AccountTransfersService } from '../account-transfers.service';
|
import { AccountTransfersService } from '../account-transfers.service';
|
||||||
@@ -25,7 +25,7 @@ export class EditStandingInstructionsComponent implements OnInit {
|
|||||||
/** Allow Client Edit */
|
/** Allow Client Edit */
|
||||||
allowclientedit = false;
|
allowclientedit = false;
|
||||||
/** Edit Standing Instructions form. */
|
/** Edit Standing Instructions form. */
|
||||||
editStandingInstructionsForm: FormGroup;
|
editStandingInstructionsForm: UntypedFormGroup;
|
||||||
/** Priority Type Data */
|
/** Priority Type Data */
|
||||||
priorityTypeData: any;
|
priorityTypeData: any;
|
||||||
/** Status Type Data */
|
/** Status Type Data */
|
||||||
@@ -50,7 +50,7 @@ export class EditStandingInstructionsComponent implements OnInit {
|
|||||||
* @param {SettingsService} settingsService Settings Service
|
* @param {SettingsService} settingsService Settings Service
|
||||||
* @param {Dates} dateUtils Date Utils
|
* @param {Dates} dateUtils Date Utils
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private accountTransfersService: AccountTransfersService,
|
private accountTransfersService: AccountTransfersService,
|
||||||
|
|||||||
+5
-5
@@ -4,7 +4,7 @@ import { MatDialog } from '@angular/material/dialog';
|
|||||||
import { MatPaginator } from '@angular/material/paginator';
|
import { MatPaginator } from '@angular/material/paginator';
|
||||||
import { MatTableDataSource, MatTable } from '@angular/material/table';
|
import { MatTableDataSource, MatTable } from '@angular/material/table';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
import { FormControl } from '@angular/forms';
|
import { UntypedFormControl } from '@angular/forms';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
import { AccountTransfersService } from '../account-transfers.service';
|
import { AccountTransfersService } from '../account-transfers.service';
|
||||||
@@ -28,13 +28,13 @@ export class ListStandingInstructionsComponent implements OnInit {
|
|||||||
/** Instructions Data */
|
/** Instructions Data */
|
||||||
instructionsData: any[];
|
instructionsData: any[];
|
||||||
/** Name form control. */
|
/** Name form control. */
|
||||||
transferType = new FormControl();
|
transferType = new UntypedFormControl();
|
||||||
/** ExternalId form control. */
|
/** ExternalId form control. */
|
||||||
fromAccountId = new FormControl();
|
fromAccountId = new UntypedFormControl();
|
||||||
/** Name form control. */
|
/** Name form control. */
|
||||||
clientNameControl = new FormControl();
|
clientNameControl = new UntypedFormControl();
|
||||||
/** ExternalId form control. */
|
/** ExternalId form control. */
|
||||||
fromClientId = new FormControl();
|
fromClientId = new UntypedFormControl();
|
||||||
/** Client Name */
|
/** Client Name */
|
||||||
clientName: any;
|
clientName: any;
|
||||||
/** Transfer Type Options Data */
|
/** Transfer Type Options Data */
|
||||||
|
|||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, AfterViewInit } from '@angular/core';
|
import { Component, OnInit, AfterViewInit } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
import { AccountTransfersService } from '../account-transfers.service';
|
import { AccountTransfersService } from '../account-transfers.service';
|
||||||
@@ -27,7 +27,7 @@ export class MakeAccountTransfersComponent implements OnInit, AfterViewInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date(2100, 0, 1);
|
maxDate = new Date(2100, 0, 1);
|
||||||
/** Edit Standing Instructions form. */
|
/** Edit Standing Instructions form. */
|
||||||
makeAccountTransferForm: FormGroup;
|
makeAccountTransferForm: UntypedFormGroup;
|
||||||
/** To Office Type Data */
|
/** To Office Type Data */
|
||||||
toOfficeTypeData: any;
|
toOfficeTypeData: any;
|
||||||
/** To Client Type Data */
|
/** To Client Type Data */
|
||||||
@@ -55,7 +55,7 @@ export class MakeAccountTransfersComponent implements OnInit, AfterViewInit {
|
|||||||
* @param {SettingsService} settingsService Settings Service
|
* @param {SettingsService} settingsService Settings Service
|
||||||
* @param {ClientsService} clientsService Clients Service
|
* @param {ClientsService} clientsService Clients Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private accountTransfersService: AccountTransfersService,
|
private accountTransfersService: AccountTransfersService,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -20,7 +20,7 @@ import { oneOfTheFieldsIsRequiredValidator } from '../one-of-the-fields-is-requi
|
|||||||
export class CreateRuleComponent implements OnInit {
|
export class CreateRuleComponent implements OnInit {
|
||||||
|
|
||||||
/** Accounting rule form. */
|
/** Accounting rule form. */
|
||||||
accountingRuleForm: FormGroup;
|
accountingRuleForm: UntypedFormGroup;
|
||||||
/** Office data. */
|
/** Office data. */
|
||||||
officeData: any;
|
officeData: any;
|
||||||
/** GL Account data. */
|
/** GL Account data. */
|
||||||
@@ -37,7 +37,7 @@ export class CreateRuleComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route.
|
* @param {ActivatedRoute} route Activated Route.
|
||||||
* @param {Router} router Router for navigation.
|
* @param {Router} router Router for navigation.
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private accountingService: AccountingService,
|
private accountingService: AccountingService,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router) {
|
private router: Router) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -20,7 +20,7 @@ import { oneOfTheFieldsIsRequiredValidator } from '../one-of-the-fields-is-requi
|
|||||||
export class EditRuleComponent implements OnInit {
|
export class EditRuleComponent implements OnInit {
|
||||||
|
|
||||||
/** Accounting rule form. */
|
/** Accounting rule form. */
|
||||||
accountingRuleForm: FormGroup;
|
accountingRuleForm: UntypedFormGroup;
|
||||||
/** Accounting rule. */
|
/** Accounting rule. */
|
||||||
accountingRule: any;
|
accountingRule: any;
|
||||||
/** Office data. */
|
/** Office data. */
|
||||||
@@ -39,7 +39,7 @@ export class EditRuleComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route.
|
* @param {ActivatedRoute} route Activated Route.
|
||||||
* @param {Router} router Router for navigation.
|
* @param {Router} router Router for navigation.
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private accountingService: AccountingService,
|
private accountingService: AccountingService,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router) {
|
private router: Router) {
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { FormGroup, ValidatorFn, ValidationErrors } from '@angular/forms';
|
import { UntypedFormGroup, ValidatorFn, ValidationErrors } from '@angular/forms';
|
||||||
|
|
||||||
/** Validates that one of the fields for debit or credit is filled for a given accounting rule type. */
|
/** Validates that one of the fields for debit or credit is filled for a given accounting rule type. */
|
||||||
export const oneOfTheFieldsIsRequiredValidator: ValidatorFn = (accountingRuleForm: FormGroup): ValidationErrors | null => {
|
export const oneOfTheFieldsIsRequiredValidator: ValidatorFn = (accountingRuleForm: UntypedFormGroup): ValidationErrors | null => {
|
||||||
const accountToDebit = accountingRuleForm.controls.accountToDebit.value;
|
const accountToDebit = accountingRuleForm.controls.accountToDebit.value;
|
||||||
const debitTags = accountingRuleForm.controls.debitTags.value;
|
const debitTags = accountingRuleForm.controls.debitTags.value;
|
||||||
const accountToCredit = accountingRuleForm.controls.accountToCredit.value;
|
const accountToCredit = accountingRuleForm.controls.accountToCredit.value;
|
||||||
|
|||||||
@@ -5,7 +5,7 @@ import { MatSort } from '@angular/material/sort';
|
|||||||
import { MatTableDataSource } from '@angular/material/table';
|
import { MatTableDataSource } from '@angular/material/table';
|
||||||
import { MatTreeNestedDataSource } from '@angular/material/tree';
|
import { MatTreeNestedDataSource } from '@angular/material/tree';
|
||||||
import { NestedTreeControl } from '@angular/cdk/tree';
|
import { NestedTreeControl } from '@angular/cdk/tree';
|
||||||
import { FormControl } from '@angular/forms';
|
import { UntypedFormControl } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** rxjs Imports */
|
/** rxjs Imports */
|
||||||
@@ -30,7 +30,7 @@ import { ConfigurationWizardService } from '../../configuration-wizard/configura
|
|||||||
export class ChartOfAccountsComponent implements AfterViewInit, OnInit {
|
export class ChartOfAccountsComponent implements AfterViewInit, OnInit {
|
||||||
|
|
||||||
/** Button toggle group form control for type of view. (list/tree) */
|
/** Button toggle group form control for type of view. (list/tree) */
|
||||||
viewGroup = new FormControl('listView');
|
viewGroup = new UntypedFormControl('listView');
|
||||||
/** GL Account data. */
|
/** GL Account data. */
|
||||||
glAccountData: any;
|
glAccountData: any;
|
||||||
/** Columns to be displayed in chart of accounts table. */
|
/** Columns to be displayed in chart of accounts table. */
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, TemplateRef, ElementRef, ViewChild, AfterViewInit } from '@angular/core';
|
import { Component, OnInit, TemplateRef, ElementRef, ViewChild, AfterViewInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
import { MatDialog } from '@angular/material/dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ import { ContinueSetupDialogComponent } from '../../../configuration-wizard/cont
|
|||||||
export class CreateGlAccountComponent implements OnInit, AfterViewInit {
|
export class CreateGlAccountComponent implements OnInit, AfterViewInit {
|
||||||
|
|
||||||
/** GL account form. */
|
/** GL account form. */
|
||||||
glAccountForm: FormGroup;
|
glAccountForm: UntypedFormGroup;
|
||||||
/** Chart of accounts data. */
|
/** Chart of accounts data. */
|
||||||
chartOfAccountsData: any;
|
chartOfAccountsData: any;
|
||||||
/** Account type data. */
|
/** Account type data. */
|
||||||
@@ -56,7 +56,7 @@ export class CreateGlAccountComponent implements OnInit, AfterViewInit {
|
|||||||
* @param {PopoverService} popoverService PopoverService.
|
* @param {PopoverService} popoverService PopoverService.
|
||||||
* @param {Matdialog} dialog Matdialog.
|
* @param {Matdialog} dialog Matdialog.
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private accountingService: AccountingService,
|
private accountingService: AccountingService,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
import { AccountingService } from '../../accounting.service';
|
import { AccountingService } from '../../accounting.service';
|
||||||
@@ -17,7 +17,7 @@ import { AccountingService } from '../../accounting.service';
|
|||||||
export class EditGlAccountComponent implements OnInit {
|
export class EditGlAccountComponent implements OnInit {
|
||||||
|
|
||||||
/** GL account form. */
|
/** GL account form. */
|
||||||
glAccountForm: FormGroup;
|
glAccountForm: UntypedFormGroup;
|
||||||
/** GL account and chart of accounts data. */
|
/** GL account and chart of accounts data. */
|
||||||
glAccount: any;
|
glAccount: any;
|
||||||
/** Account type data. */
|
/** Account type data. */
|
||||||
@@ -36,7 +36,7 @@ export class EditGlAccountComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route.
|
* @param {ActivatedRoute} route Activated Route.
|
||||||
* @param {Router} router Router for navigation.
|
* @param {Router} router Router for navigation.
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private accountingService: AccountingService,
|
private accountingService: AccountingService,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router) {
|
private router: Router) {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { Component, OnInit, TemplateRef, ElementRef, ViewChild, AfterViewInit }
|
|||||||
import { MatPaginator } from '@angular/material/paginator';
|
import { MatPaginator } from '@angular/material/paginator';
|
||||||
import { MatSort } from '@angular/material/sort';
|
import { MatSort } from '@angular/material/sort';
|
||||||
import { MatTableDataSource } from '@angular/material/table';
|
import { MatTableDataSource } from '@angular/material/table';
|
||||||
import { FormControl } from '@angular/forms';
|
import { UntypedFormControl } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** rxjs Imports */
|
/** rxjs Imports */
|
||||||
@@ -28,7 +28,7 @@ export class ClosingEntriesComponent implements OnInit, AfterViewInit {
|
|||||||
/** Data source for closing entries table. */
|
/** Data source for closing entries table. */
|
||||||
dataSource: MatTableDataSource<any>;
|
dataSource: MatTableDataSource<any>;
|
||||||
/** Office name filter form control. */
|
/** Office name filter form control. */
|
||||||
officeName = new FormControl();
|
officeName = new UntypedFormControl();
|
||||||
/** Office data. */
|
/** Office data. */
|
||||||
officeData: any;
|
officeData: any;
|
||||||
/** Filtered office data for autocomplete. */
|
/** Filtered office data for autocomplete. */
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -22,7 +22,7 @@ export class CreateClosureComponent implements OnInit {
|
|||||||
/** Maximum closing date allowed. */
|
/** Maximum closing date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Accounting closure form. */
|
/** Accounting closure form. */
|
||||||
accountingClosureForm: FormGroup;
|
accountingClosureForm: UntypedFormGroup;
|
||||||
/** Office data. */
|
/** Office data. */
|
||||||
officeData: any;
|
officeData: any;
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ export class CreateClosureComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route.
|
* @param {ActivatedRoute} route Activated Route.
|
||||||
* @param {Router} router Router for navigation.
|
* @param {Router} router Router for navigation.
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private accountingService: AccountingService,
|
private accountingService: AccountingService,
|
||||||
private settingsService: SettingsService,
|
private settingsService: SettingsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -17,7 +17,7 @@ import { AccountingService } from '../../accounting.service';
|
|||||||
export class EditClosureComponent implements OnInit {
|
export class EditClosureComponent implements OnInit {
|
||||||
|
|
||||||
/** Accounting closure form. */
|
/** Accounting closure form. */
|
||||||
accountingClosureForm: FormGroup;
|
accountingClosureForm: UntypedFormGroup;
|
||||||
/** GL Account closure. */
|
/** GL Account closure. */
|
||||||
glAccountClosure: any;
|
glAccountClosure: any;
|
||||||
/** Office data. */
|
/** Office data. */
|
||||||
@@ -30,7 +30,7 @@ export class EditClosureComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route.
|
* @param {ActivatedRoute} route Activated Route.
|
||||||
* @param {Router} router Router for navigation.
|
* @param {Router} router Router for navigation.
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private accountingService: AccountingService,
|
private accountingService: AccountingService,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router) {
|
private router: Router) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, TemplateRef, ElementRef, ViewChild, AfterViewInit } from '@angular/core';
|
import { Component, OnInit, TemplateRef, ElementRef, ViewChild, AfterViewInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators, FormArray } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators, UntypedFormArray } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
import { MatDialog } from '@angular/material/dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ export class CreateJournalEntryComponent implements OnInit, AfterViewInit {
|
|||||||
/** Maximum transaction date allowed. */
|
/** Maximum transaction date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Journal entry form. */
|
/** Journal entry form. */
|
||||||
journalEntryForm: FormGroup;
|
journalEntryForm: UntypedFormGroup;
|
||||||
/** Office data. */
|
/** Office data. */
|
||||||
officeData: any;
|
officeData: any;
|
||||||
/** Currency data. */
|
/** Currency data. */
|
||||||
@@ -53,7 +53,7 @@ export class CreateJournalEntryComponent implements OnInit, AfterViewInit {
|
|||||||
* @param {ConfigurationWizardService} configurationWizardService ConfigurationWizard Service.
|
* @param {ConfigurationWizardService} configurationWizardService ConfigurationWizard Service.
|
||||||
* @param {PopoverService} popoverService PopoverService.
|
* @param {PopoverService} popoverService PopoverService.
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private accountingService: AccountingService,
|
private accountingService: AccountingService,
|
||||||
private settingsService: SettingsService,
|
private settingsService: SettingsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
@@ -108,7 +108,7 @@ export class CreateJournalEntryComponent implements OnInit, AfterViewInit {
|
|||||||
* Creates the affected gl entry form.
|
* Creates the affected gl entry form.
|
||||||
* @returns {FormGroup} Affected gl entry form.
|
* @returns {FormGroup} Affected gl entry form.
|
||||||
*/
|
*/
|
||||||
createAffectedGLEntryForm(): FormGroup {
|
createAffectedGLEntryForm(): UntypedFormGroup {
|
||||||
return this.formBuilder.group({
|
return this.formBuilder.group({
|
||||||
'glAccountId': ['', Validators.required],
|
'glAccountId': ['', Validators.required],
|
||||||
'amount': ['', Validators.required]
|
'amount': ['', Validators.required]
|
||||||
@@ -119,23 +119,23 @@ export class CreateJournalEntryComponent implements OnInit, AfterViewInit {
|
|||||||
* Gets the affected gl entry (debits) form array.
|
* Gets the affected gl entry (debits) form array.
|
||||||
* @returns {FormArray} Debits form array.
|
* @returns {FormArray} Debits form array.
|
||||||
*/
|
*/
|
||||||
get debits(): FormArray {
|
get debits(): UntypedFormArray {
|
||||||
return this.journalEntryForm.get('debits') as FormArray;
|
return this.journalEntryForm.get('debits') as UntypedFormArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the affected gl entry (credits) form array.
|
* Gets the affected gl entry (credits) form array.
|
||||||
* @returns {FormArray} Credits form array.
|
* @returns {FormArray} Credits form array.
|
||||||
*/
|
*/
|
||||||
get credits(): FormArray {
|
get credits(): UntypedFormArray {
|
||||||
return this.journalEntryForm.get('credits') as FormArray;
|
return this.journalEntryForm.get('credits') as UntypedFormArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds the affected gl entry form to given affected gl entry form array.
|
* Adds the affected gl entry form to given affected gl entry form array.
|
||||||
* @param {FormArray} affectedGLEntryFormArray Given affected gl entry form array (debit/credit).
|
* @param {FormArray} affectedGLEntryFormArray Given affected gl entry form array (debit/credit).
|
||||||
*/
|
*/
|
||||||
addAffectedGLEntry(affectedGLEntryFormArray: FormArray) {
|
addAffectedGLEntry(affectedGLEntryFormArray: UntypedFormArray) {
|
||||||
affectedGLEntryFormArray.push(this.createAffectedGLEntryForm());
|
affectedGLEntryFormArray.push(this.createAffectedGLEntryForm());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -144,7 +144,7 @@ export class CreateJournalEntryComponent implements OnInit, AfterViewInit {
|
|||||||
* @param {FormArray} affectedGLEntryFormArray Given affected gl entry form array (debit/credit).
|
* @param {FormArray} affectedGLEntryFormArray Given affected gl entry form array (debit/credit).
|
||||||
* @param {number} index Array index from where affected gl entry form needs to be removed.
|
* @param {number} index Array index from where affected gl entry form needs to be removed.
|
||||||
*/
|
*/
|
||||||
removeAffectedGLEntry(affectedGLEntryFormArray: FormArray, index: number) {
|
removeAffectedGLEntry(affectedGLEntryFormArray: UntypedFormArray, index: number) {
|
||||||
affectedGLEntryFormArray.removeAt(index);
|
affectedGLEntryFormArray.removeAt(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -17,7 +17,7 @@ import { AccountingService } from '../../accounting.service';
|
|||||||
export class CreateFinancialActivityMappingComponent implements OnInit {
|
export class CreateFinancialActivityMappingComponent implements OnInit {
|
||||||
|
|
||||||
/** Financial activity mapping form. */
|
/** Financial activity mapping form. */
|
||||||
financialActivityMappingForm: FormGroup;
|
financialActivityMappingForm: UntypedFormGroup;
|
||||||
/** GL Account options. */
|
/** GL Account options. */
|
||||||
glAccountOptions: any;
|
glAccountOptions: any;
|
||||||
/** GL Account data. */
|
/** GL Account data. */
|
||||||
@@ -32,7 +32,7 @@ export class CreateFinancialActivityMappingComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route.
|
* @param {ActivatedRoute} route Activated Route.
|
||||||
* @param {Router} router Router for navigation.
|
* @param {Router} router Router for navigation.
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private accountingService: AccountingService,
|
private accountingService: AccountingService,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router) {
|
private router: Router) {
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -17,7 +17,7 @@ import { AccountingService } from '../../accounting.service';
|
|||||||
export class EditFinancialActivityMappingComponent implements OnInit {
|
export class EditFinancialActivityMappingComponent implements OnInit {
|
||||||
|
|
||||||
/** Financial activity mapping form. */
|
/** Financial activity mapping form. */
|
||||||
financialActivityMappingForm: FormGroup;
|
financialActivityMappingForm: UntypedFormGroup;
|
||||||
/** GL Account options. */
|
/** GL Account options. */
|
||||||
glAccountOptions: any;
|
glAccountOptions: any;
|
||||||
/** GL Account data. */
|
/** GL Account data. */
|
||||||
@@ -38,7 +38,7 @@ export class EditFinancialActivityMappingComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route.
|
* @param {ActivatedRoute} route Activated Route.
|
||||||
* @param {Router} router Router for navigation.
|
* @param {Router} router Router for navigation.
|
||||||
*/
|
*/
|
||||||
constructor(private formBuider: FormBuilder,
|
constructor(private formBuider: UntypedFormBuilder,
|
||||||
private accountingService: AccountingService,
|
private accountingService: AccountingService,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router) {
|
private router: Router) {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators, FormArray } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators, UntypedFormArray } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -22,7 +22,7 @@ export class FrequentPostingsComponent implements OnInit {
|
|||||||
/** Maximum transaction date allowed. */
|
/** Maximum transaction date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Frequent postings form. */
|
/** Frequent postings form. */
|
||||||
frequentPostingsForm: FormGroup;
|
frequentPostingsForm: UntypedFormGroup;
|
||||||
/** Office data. */
|
/** Office data. */
|
||||||
officeData: any;
|
officeData: any;
|
||||||
/** Accounting rule data. */
|
/** Accounting rule data. */
|
||||||
@@ -48,7 +48,7 @@ export class FrequentPostingsComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route.
|
* @param {ActivatedRoute} route Activated Route.
|
||||||
* @param {Router} router Router for navigation.
|
* @param {Router} router Router for navigation.
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private accountingService: AccountingService,
|
private accountingService: AccountingService,
|
||||||
private settingsService: SettingsService,
|
private settingsService: SettingsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
@@ -122,7 +122,7 @@ export class FrequentPostingsComponent implements OnInit {
|
|||||||
* Creates the affected gl entry form.
|
* Creates the affected gl entry form.
|
||||||
* @returns {FormGroup} Affected gl entry form.
|
* @returns {FormGroup} Affected gl entry form.
|
||||||
*/
|
*/
|
||||||
createAffectedGLEntryForm(): FormGroup {
|
createAffectedGLEntryForm(): UntypedFormGroup {
|
||||||
return this.formBuilder.group({
|
return this.formBuilder.group({
|
||||||
'glAccountId': ['', Validators.required],
|
'glAccountId': ['', Validators.required],
|
||||||
'amount': ['', Validators.required]
|
'amount': ['', Validators.required]
|
||||||
@@ -133,23 +133,23 @@ export class FrequentPostingsComponent implements OnInit {
|
|||||||
* Gets the affected gl entry (debits) form array.
|
* Gets the affected gl entry (debits) form array.
|
||||||
* @returns {FormArray} Debits form array.
|
* @returns {FormArray} Debits form array.
|
||||||
*/
|
*/
|
||||||
get debits(): FormArray {
|
get debits(): UntypedFormArray {
|
||||||
return this.frequentPostingsForm.get('debits') as FormArray;
|
return this.frequentPostingsForm.get('debits') as UntypedFormArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the affected gl entry (credits) form array.
|
* Gets the affected gl entry (credits) form array.
|
||||||
* @returns {FormArray} Credits form array.
|
* @returns {FormArray} Credits form array.
|
||||||
*/
|
*/
|
||||||
get credits(): FormArray {
|
get credits(): UntypedFormArray {
|
||||||
return this.frequentPostingsForm.get('credits') as FormArray;
|
return this.frequentPostingsForm.get('credits') as UntypedFormArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds the affected gl entry form to given affected gl entry form array.
|
* Adds the affected gl entry form to given affected gl entry form array.
|
||||||
* @param {FormArray} affectedGLEntryFormArray Given affected gl entry form array (debit/credit).
|
* @param {FormArray} affectedGLEntryFormArray Given affected gl entry form array (debit/credit).
|
||||||
*/
|
*/
|
||||||
addAffectedGLEntry(affectedGLEntryFormArray: FormArray) {
|
addAffectedGLEntry(affectedGLEntryFormArray: UntypedFormArray) {
|
||||||
affectedGLEntryFormArray.push(this.createAffectedGLEntryForm());
|
affectedGLEntryFormArray.push(this.createAffectedGLEntryForm());
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -158,7 +158,7 @@ export class FrequentPostingsComponent implements OnInit {
|
|||||||
* @param {FormArray} affectedGLEntryFormArray Given affected gl entry form array (debit/credit).
|
* @param {FormArray} affectedGLEntryFormArray Given affected gl entry form array (debit/credit).
|
||||||
* @param {number} index Array index from where affected gl entry form needs to be removed.
|
* @param {number} index Array index from where affected gl entry form needs to be removed.
|
||||||
*/
|
*/
|
||||||
removeAffectedGLEntry(affectedGLEntryFormArray: FormArray, index: number) {
|
removeAffectedGLEntry(affectedGLEntryFormArray: UntypedFormArray, index: number) {
|
||||||
affectedGLEntryFormArray.removeAt(index);
|
affectedGLEntryFormArray.removeAt(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, TemplateRef, ElementRef, ViewChild, AfterViewInit } from '@angular/core';
|
import { Component, OnInit, TemplateRef, ElementRef, ViewChild, AfterViewInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators, FormArray } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators, UntypedFormArray } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -28,7 +28,7 @@ export class MigrateOpeningBalancesComponent implements OnInit, AfterViewInit {
|
|||||||
/** Maximum opening balances date allowed. */
|
/** Maximum opening balances date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Opening balances form. */
|
/** Opening balances form. */
|
||||||
openingBalancesForm: FormGroup;
|
openingBalancesForm: UntypedFormGroup;
|
||||||
/** Opening balances data. */
|
/** Opening balances data. */
|
||||||
openingBalancesData: any;
|
openingBalancesData: any;
|
||||||
/** Office data. */
|
/** Office data. */
|
||||||
@@ -55,7 +55,7 @@ export class MigrateOpeningBalancesComponent implements OnInit, AfterViewInit {
|
|||||||
* @param {ConfigurationWizardService} configurationWizardService ConfigurationWizard Service.
|
* @param {ConfigurationWizardService} configurationWizardService ConfigurationWizard Service.
|
||||||
* @param {PopoverService} popoverService PopoverService.
|
* @param {PopoverService} popoverService PopoverService.
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private accountingService: AccountingService,
|
private accountingService: AccountingService,
|
||||||
private settingsService: SettingsService,
|
private settingsService: SettingsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
@@ -97,7 +97,7 @@ export class MigrateOpeningBalancesComponent implements OnInit, AfterViewInit {
|
|||||||
* @param glAccount GL Account for which form is returned.
|
* @param glAccount GL Account for which form is returned.
|
||||||
* @returns {FormGroup} GL Account entry form.
|
* @returns {FormGroup} GL Account entry form.
|
||||||
*/
|
*/
|
||||||
createGLAccountEntryForm(glAccount: any): FormGroup {
|
createGLAccountEntryForm(glAccount: any): UntypedFormGroup {
|
||||||
return this.formBuilder.group({
|
return this.formBuilder.group({
|
||||||
'glAccountId': [glAccount.glAccountId],
|
'glAccountId': [glAccount.glAccountId],
|
||||||
'debit': [null],
|
'debit': [null],
|
||||||
@@ -109,8 +109,8 @@ export class MigrateOpeningBalancesComponent implements OnInit, AfterViewInit {
|
|||||||
* Gets the gl account entries form array.
|
* Gets the gl account entries form array.
|
||||||
* @returns {FormArray} GL Account entries form array.
|
* @returns {FormArray} GL Account entries form array.
|
||||||
*/
|
*/
|
||||||
get glAccountEntries(): FormArray {
|
get glAccountEntries(): UntypedFormArray {
|
||||||
return this.openingBalancesForm.get('glAccountEntries') as FormArray;
|
return this.openingBalancesForm.get('glAccountEntries') as UntypedFormArray;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -119,7 +119,7 @@ export class MigrateOpeningBalancesComponent implements OnInit, AfterViewInit {
|
|||||||
retrieveOpeningBalances() {
|
retrieveOpeningBalances() {
|
||||||
this.accountingService.retrieveOpeningBalances(this.openingBalancesForm.value.officeId)
|
this.accountingService.retrieveOpeningBalances(this.openingBalancesForm.value.officeId)
|
||||||
.subscribe((openingBalancesData: any) => {
|
.subscribe((openingBalancesData: any) => {
|
||||||
const entry = this.openingBalancesForm.get('glAccountEntries') as FormArray;
|
const entry = this.openingBalancesForm.get('glAccountEntries') as UntypedFormArray;
|
||||||
|
|
||||||
openingBalancesData.glAccounts = openingBalancesData.assetAccountOpeningBalances
|
openingBalancesData.glAccounts = openingBalancesData.assetAccountOpeningBalances
|
||||||
.concat(openingBalancesData.liabityAccountOpeningBalances,
|
.concat(openingBalancesData.liabityAccountOpeningBalances,
|
||||||
|
|||||||
+2
-2
@@ -1,8 +1,8 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { FormGroup, ValidatorFn, ValidationErrors } from '@angular/forms';
|
import { UntypedFormGroup, ValidatorFn, ValidationErrors } from '@angular/forms';
|
||||||
|
|
||||||
/** Validates that atleast one of the fields debit or credit is filled (but not both) for a given gl account. */
|
/** Validates that atleast one of the fields debit or credit is filled (but not both) for a given gl account. */
|
||||||
export const onlyOneOfTheFieldsIsRequiredValidator: ValidatorFn = (glAccountEntriesForm: FormGroup): ValidationErrors | null => {
|
export const onlyOneOfTheFieldsIsRequiredValidator: ValidatorFn = (glAccountEntriesForm: UntypedFormGroup): ValidationErrors | null => {
|
||||||
const debit = glAccountEntriesForm.controls.debit.value;
|
const debit = glAccountEntriesForm.controls.debit.value;
|
||||||
const credit = glAccountEntriesForm.controls.credit.value;
|
const credit = glAccountEntriesForm.controls.credit.value;
|
||||||
return ((debit || credit) && !(debit && credit)) ? null : { 'error': true };
|
return ((debit || credit) && !(debit && credit)) ? null : { 'error': true };
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -22,7 +22,7 @@ export class PeriodicAccrualsComponent implements OnInit {
|
|||||||
/** Maximum accrue date allowed. */
|
/** Maximum accrue date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Periodic accruals form. */
|
/** Periodic accruals form. */
|
||||||
periodicAccrualsForm: FormGroup;
|
periodicAccrualsForm: UntypedFormGroup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {FormBuilder} formBuilder Form Builder.
|
* @param {FormBuilder} formBuilder Form Builder.
|
||||||
@@ -31,7 +31,7 @@ export class PeriodicAccrualsComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route.
|
* @param {ActivatedRoute} route Activated Route.
|
||||||
* @param {Router} router Router for navigation.
|
* @param {Router} router Router for navigation.
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private accountingService: AccountingService,
|
private accountingService: AccountingService,
|
||||||
private settingsService: SettingsService,
|
private settingsService: SettingsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -22,7 +22,7 @@ export class CreateProvisioningEntryComponent implements OnInit {
|
|||||||
/** Maximum provisioning date allowed. */
|
/** Maximum provisioning date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Provisioning entry form. */
|
/** Provisioning entry form. */
|
||||||
provisioningEntryForm: FormGroup;
|
provisioningEntryForm: UntypedFormGroup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {FormBuilder} formBuilder Form Builder.
|
* @param {FormBuilder} formBuilder Form Builder.
|
||||||
@@ -31,7 +31,7 @@ export class CreateProvisioningEntryComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route.
|
* @param {ActivatedRoute} route Activated Route.
|
||||||
* @param {Router} router Router for navigation.
|
* @param {Router} router Router for navigation.
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private accountingService: AccountingService,
|
private accountingService: AccountingService,
|
||||||
private settingsService: SettingsService,
|
private settingsService: SettingsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
|
|||||||
+4
-4
@@ -1,7 +1,7 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, ViewChild, AfterViewInit } from '@angular/core';
|
import { Component, OnInit, ViewChild, AfterViewInit } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { FormControl } from '@angular/forms';
|
import { UntypedFormControl } from '@angular/forms';
|
||||||
import { MatPaginator } from '@angular/material/paginator';
|
import { MatPaginator } from '@angular/material/paginator';
|
||||||
import { MatSort } from '@angular/material/sort';
|
import { MatSort } from '@angular/material/sort';
|
||||||
import { MatTableDataSource } from '@angular/material/table';
|
import { MatTableDataSource } from '@angular/material/table';
|
||||||
@@ -29,19 +29,19 @@ export class ViewProvisioningEntryComponent implements OnInit, AfterViewInit {
|
|||||||
/** Provisioning entry entries. */
|
/** Provisioning entry entries. */
|
||||||
provisioningEntryEntries: any;
|
provisioningEntryEntries: any;
|
||||||
/** Office name filter form control. */
|
/** Office name filter form control. */
|
||||||
officeName = new FormControl();
|
officeName = new UntypedFormControl();
|
||||||
/** Office data. */
|
/** Office data. */
|
||||||
officeData: any;
|
officeData: any;
|
||||||
/** Filtered office data for autocomplete. */
|
/** Filtered office data for autocomplete. */
|
||||||
filteredOfficeData: any;
|
filteredOfficeData: any;
|
||||||
/** Loan product filter form control. */
|
/** Loan product filter form control. */
|
||||||
loanProduct = new FormControl();
|
loanProduct = new UntypedFormControl();
|
||||||
/** Loan product data. */
|
/** Loan product data. */
|
||||||
loanProductData: any;
|
loanProductData: any;
|
||||||
/** Filtered loan product data for autocomplete. */
|
/** Filtered loan product data for autocomplete. */
|
||||||
filteredLoanProductData: any;
|
filteredLoanProductData: any;
|
||||||
/** Provisioning category filter form control. */
|
/** Provisioning category filter form control. */
|
||||||
provisioningCategory = new FormControl();
|
provisioningCategory = new UntypedFormControl();
|
||||||
/** Provisioning category data. */
|
/** Provisioning category data. */
|
||||||
provisioningCategoryData: any;
|
provisioningCategoryData: any;
|
||||||
/** Filtered provisioning category data for autocomplete. */
|
/** Filtered provisioning category data for autocomplete. */
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Inject } from '@angular/core';
|
import { Component, OnInit, Inject } from '@angular/core';
|
||||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
import { FormControl } from '@angular/forms';
|
import { UntypedFormControl } from '@angular/forms';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Revert transaction dialog component.
|
* Revert transaction dialog component.
|
||||||
@@ -14,7 +14,7 @@ import { FormControl } from '@angular/forms';
|
|||||||
export class RevertTransactionComponent implements OnInit {
|
export class RevertTransactionComponent implements OnInit {
|
||||||
|
|
||||||
/** Comments input form control. */
|
/** Comments input form control. */
|
||||||
comments = new FormControl('');
|
comments = new UntypedFormControl('');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {MatDialogRef} dialogRef Component reference to dialog.
|
* @param {MatDialogRef} dialogRef Component reference to dialog.
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
import { Component, OnInit, ViewChild, AfterViewInit } from '@angular/core';
|
import { Component, OnInit, ViewChild, AfterViewInit } from '@angular/core';
|
||||||
import { MatPaginator } from '@angular/material/paginator';
|
import { MatPaginator } from '@angular/material/paginator';
|
||||||
import { MatSort } from '@angular/material/sort';
|
import { MatSort } from '@angular/material/sort';
|
||||||
import { FormControl } from '@angular/forms';
|
import { UntypedFormControl } from '@angular/forms';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
/** rxjs Imports */
|
/** rxjs Imports */
|
||||||
@@ -31,19 +31,19 @@ export class SearchJournalEntryComponent implements OnInit, AfterViewInit {
|
|||||||
/** Maximum transaction date allowed. */
|
/** Maximum transaction date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Office name filter form control. */
|
/** Office name filter form control. */
|
||||||
officeName = new FormControl();
|
officeName = new UntypedFormControl();
|
||||||
/** Office data. */
|
/** Office data. */
|
||||||
officeData: any;
|
officeData: any;
|
||||||
/** Filtered office data for autocomplete. */
|
/** Filtered office data for autocomplete. */
|
||||||
filteredOfficeData: any;
|
filteredOfficeData: any;
|
||||||
/** Gl Account filter form control. */
|
/** Gl Account filter form control. */
|
||||||
glAccount = new FormControl();
|
glAccount = new UntypedFormControl();
|
||||||
/** Gl Account data. */
|
/** Gl Account data. */
|
||||||
glAccountData: any;
|
glAccountData: any;
|
||||||
/** Filtered gl account data. */
|
/** Filtered gl account data. */
|
||||||
filteredGLAccountData: any;
|
filteredGLAccountData: any;
|
||||||
/** Entry type filter form control. */
|
/** Entry type filter form control. */
|
||||||
entryTypeFilter = new FormControl('');
|
entryTypeFilter = new UntypedFormControl('');
|
||||||
/** Entry type filter data. */
|
/** Entry type filter data. */
|
||||||
entryTypeFilterData = [
|
entryTypeFilterData = [
|
||||||
{
|
{
|
||||||
@@ -60,15 +60,15 @@ export class SearchJournalEntryComponent implements OnInit, AfterViewInit {
|
|||||||
}
|
}
|
||||||
];
|
];
|
||||||
/** Transaction date from form control. */
|
/** Transaction date from form control. */
|
||||||
transactionDateFrom = new FormControl(new Date(new Date().setMonth(new Date().getMonth() - 1)));
|
transactionDateFrom = new UntypedFormControl(new Date(new Date().setMonth(new Date().getMonth() - 1)));
|
||||||
/** Transaction date to form control. */
|
/** Transaction date to form control. */
|
||||||
transactionDateTo = new FormControl(new Date());
|
transactionDateTo = new UntypedFormControl(new Date());
|
||||||
/** Transaction ID form control. */
|
/** Transaction ID form control. */
|
||||||
transactionId = new FormControl();
|
transactionId = new UntypedFormControl();
|
||||||
/** Submitted on date from form control. */
|
/** Submitted on date from form control. */
|
||||||
submittedOnDateFrom = new FormControl();
|
submittedOnDateFrom = new UntypedFormControl();
|
||||||
/** Submitted on date to form control. */
|
/** Submitted on date to form control. */
|
||||||
submittedOnDateTo = new FormControl();
|
submittedOnDateTo = new UntypedFormControl();
|
||||||
/** Columns to be displayed in journal entries table. */
|
/** Columns to be displayed in journal entries table. */
|
||||||
displayedColumns: string[] = ['id', 'officeName', 'transactionId', 'transactionDate', 'glAccountType', 'createdByUserName', 'submittedOnDate', 'glAccountCode', 'glAccountName', 'currency', 'debit', 'credit'];
|
displayedColumns: string[] = ['id', 'officeName', 'transactionId', 'transactionDate', 'glAccountType', 'createdByUserName', 'submittedOnDate', 'glAccountCode', 'glAccountName', 'currency', 'debit', 'credit'];
|
||||||
/** Data source for journal entries table. */
|
/** Data source for journal entries table. */
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -23,7 +23,7 @@ export class ActivateCenterComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Activate center form. */
|
/** Activate center form. */
|
||||||
activateCenterForm: FormGroup;
|
activateCenterForm: UntypedFormGroup;
|
||||||
/** Group Account Id */
|
/** Group Account Id */
|
||||||
centerId: any;
|
centerId: any;
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ export class ActivateCenterComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route
|
* @param {ActivatedRoute} route Activated Route
|
||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private centersService: CentersService,
|
private centersService: CentersService,
|
||||||
private settingsService: SettingsService,
|
private settingsService: SettingsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
|
|||||||
+6
-6
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators, FormControl } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators, UntypedFormControl } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -23,7 +23,7 @@ export class AttachCenterMeetingComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Center Meeting form. */
|
/** Center Meeting form. */
|
||||||
centerMeetingForm: FormGroup;
|
centerMeetingForm: UntypedFormGroup;
|
||||||
/** Calnedar Template Data */
|
/** Calnedar Template Data */
|
||||||
calendarTemplate: any;
|
calendarTemplate: any;
|
||||||
/** Center Id */
|
/** Center Id */
|
||||||
@@ -44,7 +44,7 @@ export class AttachCenterMeetingComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route
|
* @param {ActivatedRoute} route Activated Route
|
||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private centersService: CentersService,
|
private centersService: CentersService,
|
||||||
private settingsService: SettingsService,
|
private settingsService: SettingsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
@@ -80,8 +80,8 @@ export class AttachCenterMeetingComponent implements OnInit {
|
|||||||
buildDependencies() {
|
buildDependencies() {
|
||||||
this.centerMeetingForm.get('repeating').valueChanges.subscribe((value: boolean) => {
|
this.centerMeetingForm.get('repeating').valueChanges.subscribe((value: boolean) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
this.centerMeetingForm.addControl('frequency', new FormControl());
|
this.centerMeetingForm.addControl('frequency', new UntypedFormControl());
|
||||||
this.centerMeetingForm.addControl('interval', new FormControl());
|
this.centerMeetingForm.addControl('interval', new UntypedFormControl());
|
||||||
this.centerMeetingForm.get('frequency').valueChanges.subscribe((frequency: any) => {
|
this.centerMeetingForm.get('frequency').valueChanges.subscribe((frequency: any) => {
|
||||||
this.centerMeetingForm.removeControl('repeatsOnDay');
|
this.centerMeetingForm.removeControl('repeatsOnDay');
|
||||||
switch (frequency) {
|
switch (frequency) {
|
||||||
@@ -90,7 +90,7 @@ export class AttachCenterMeetingComponent implements OnInit {
|
|||||||
break;
|
break;
|
||||||
case 2: // Weekly
|
case 2: // Weekly
|
||||||
this.repetitionIntervals = ['1', '2', '3'];
|
this.repetitionIntervals = ['1', '2', '3'];
|
||||||
this.centerMeetingForm.addControl('repeatsOnDay', new FormControl('', Validators.required));
|
this.centerMeetingForm.addControl('repeatsOnDay', new UntypedFormControl('', Validators.required));
|
||||||
break;
|
break;
|
||||||
case 3: // Monthly
|
case 3: // Monthly
|
||||||
this.repetitionIntervals = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11'];
|
this.repetitionIntervals = ['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11'];
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -17,7 +17,7 @@ import { CentersService } from 'app/centers/centers.service';
|
|||||||
export class CenterAssignStaffComponent implements OnInit {
|
export class CenterAssignStaffComponent implements OnInit {
|
||||||
|
|
||||||
/** Center Assign Staff form. */
|
/** Center Assign Staff form. */
|
||||||
centerAssignStaffForm: FormGroup;
|
centerAssignStaffForm: UntypedFormGroup;
|
||||||
/** Field Officer Data */
|
/** Field Officer Data */
|
||||||
staffData: any;
|
staffData: any;
|
||||||
/** Center Data */
|
/** Center Data */
|
||||||
@@ -30,7 +30,7 @@ export class CenterAssignStaffComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route
|
* @param {ActivatedRoute} route Activated Route
|
||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private centersService: CentersService,
|
private centersService: CentersService,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router) {
|
private router: Router) {
|
||||||
|
|||||||
+2
-2
@@ -2,7 +2,7 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { MatDialog } from '@angular/material/dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { FormControl } from '@angular/forms';
|
import { UntypedFormControl } from '@angular/forms';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
import { CentersService } from 'app/centers/centers.service';
|
import { CentersService } from 'app/centers/centers.service';
|
||||||
@@ -35,7 +35,7 @@ export class CenterAttendanceComponent implements OnInit {
|
|||||||
/** Columns to be displayed in member's attendance table. */
|
/** Columns to be displayed in member's attendance table. */
|
||||||
displayedColumns: string[] = ['name', 'attendance'];
|
displayedColumns: string[] = ['name', 'attendance'];
|
||||||
/** Start Date Form Control */
|
/** Start Date Form Control */
|
||||||
meetingDate = new FormControl();
|
meetingDate = new UntypedFormControl();
|
||||||
/** Meeting Dates Data */
|
/** Meeting Dates Data */
|
||||||
meetingDates: any[];
|
meetingDates: any[];
|
||||||
/** Data source for client members table. */
|
/** Data source for client members table. */
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -23,7 +23,7 @@ export class CloseCenterComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Close Share Account form. */
|
/** Close Share Account form. */
|
||||||
closeCenterForm: FormGroup;
|
closeCenterForm: UntypedFormGroup;
|
||||||
/** Center Data */
|
/** Center Data */
|
||||||
closureData: any;
|
closureData: any;
|
||||||
/** Center Id */
|
/** Center Id */
|
||||||
@@ -37,7 +37,7 @@ export class CloseCenterComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route
|
* @param {ActivatedRoute} route Activated Route
|
||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private centersService: CentersService,
|
private centersService: CentersService,
|
||||||
private settingsService: SettingsService,
|
private settingsService: SettingsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators, FormControl } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators, FormControl } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -23,7 +23,7 @@ export class EditCenterMeetingScheduleComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Center Meeting form. */
|
/** Center Meeting form. */
|
||||||
centerEditMeetingScheduleForm: FormGroup;
|
centerEditMeetingScheduleForm: UntypedFormGroup;
|
||||||
/** Calendar Template Data */
|
/** Calendar Template Data */
|
||||||
calendarTemplate: any;
|
calendarTemplate: any;
|
||||||
/** Center Id */
|
/** Center Id */
|
||||||
@@ -42,7 +42,7 @@ export class EditCenterMeetingScheduleComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route
|
* @param {ActivatedRoute} route Activated Route
|
||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private centersService: CentersService,
|
private centersService: CentersService,
|
||||||
private settingsService: SettingsService,
|
private settingsService: SettingsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
|
|||||||
+4
-4
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators, FormControl } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators, UntypedFormControl } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -23,7 +23,7 @@ export class EditCenterMeetingComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Center Meeting form. */
|
/** Center Meeting form. */
|
||||||
centerEditMeetingForm: FormGroup;
|
centerEditMeetingForm: UntypedFormGroup;
|
||||||
/** Calendar Template Data */
|
/** Calendar Template Data */
|
||||||
calendarTemplate: any;
|
calendarTemplate: any;
|
||||||
/** Center Id */
|
/** Center Id */
|
||||||
@@ -46,7 +46,7 @@ export class EditCenterMeetingComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route
|
* @param {ActivatedRoute} route Activated Route
|
||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private centersService: CentersService,
|
private centersService: CentersService,
|
||||||
private settingsService: SettingsService,
|
private settingsService: SettingsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
@@ -90,7 +90,7 @@ export class EditCenterMeetingComponent implements OnInit {
|
|||||||
break;
|
break;
|
||||||
case 2: // Weekly
|
case 2: // Weekly
|
||||||
this.repetitionIntervals = ['1', '2', '3'];
|
this.repetitionIntervals = ['1', '2', '3'];
|
||||||
this.centerEditMeetingForm.addControl('repeatsOnDay', new FormControl('', Validators.required));
|
this.centerEditMeetingForm.addControl('repeatsOnDay', new UntypedFormControl('', Validators.required));
|
||||||
this.centerEditMeetingForm.get('repeatsOnDay').patchValue(this.calendarTemplate.repeatsOnDay.id);
|
this.centerEditMeetingForm.get('repeatsOnDay').patchValue(this.calendarTemplate.repeatsOnDay.id);
|
||||||
break;
|
break;
|
||||||
case 3: // Monthly
|
case 3: // Monthly
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, AfterViewInit } from '@angular/core';
|
import { Component, AfterViewInit } from '@angular/core';
|
||||||
import { FormControl } from '@angular/forms';
|
import { UntypedFormControl } from '@angular/forms';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Dialogs */
|
/** Custom Dialogs */
|
||||||
@@ -26,7 +26,7 @@ export class ManageGroupsComponent implements AfterViewInit {
|
|||||||
/** Group Members. */
|
/** Group Members. */
|
||||||
groupMembers: any[] = [];
|
groupMembers: any[] = [];
|
||||||
/** GroupChoice. */
|
/** GroupChoice. */
|
||||||
groupChoice = new FormControl('');
|
groupChoice = new UntypedFormControl('');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fetches center action data from `resolve`
|
* Fetches center action data from `resolve`
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
import { MatDialog } from '@angular/material/dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
|
|
||||||
/** Custom Components */
|
/** Custom Components */
|
||||||
import { DeleteDialogComponent } from '../../../shared/delete-dialog/delete-dialog.component';
|
import { DeleteDialogComponent } from '../../../shared/delete-dialog/delete-dialog.component';
|
||||||
@@ -20,12 +20,12 @@ export class NotesTabComponent implements OnInit {
|
|||||||
centerId: string;
|
centerId: string;
|
||||||
username: string;
|
username: string;
|
||||||
centerNotes: any;
|
centerNotes: any;
|
||||||
noteForm: FormGroup;
|
noteForm: UntypedFormGroup;
|
||||||
@ViewChild('formRef', { static: true }) formRef: any;
|
@ViewChild('formRef', { static: true }) formRef: any;
|
||||||
|
|
||||||
|
|
||||||
constructor(private route: ActivatedRoute,
|
constructor(private route: ActivatedRoute,
|
||||||
private formBuilder: FormBuilder,
|
private formBuilder: UntypedFormBuilder,
|
||||||
private centersService: CentersService,
|
private centersService: CentersService,
|
||||||
private authenticationService: AuthenticationService,
|
private authenticationService: AuthenticationService,
|
||||||
private dialog: MatDialog) {
|
private dialog: MatDialog) {
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { Component, OnInit, ViewChild, AfterViewInit } from '@angular/core';
|
|||||||
import { MatCheckbox } from '@angular/material/checkbox';
|
import { MatCheckbox } from '@angular/material/checkbox';
|
||||||
import { MatPaginator } from '@angular/material/paginator';
|
import { MatPaginator } from '@angular/material/paginator';
|
||||||
import { MatSort } from '@angular/material/sort';
|
import { MatSort } from '@angular/material/sort';
|
||||||
import { FormControl } from '@angular/forms';
|
import { UntypedFormControl } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
/** rxjs Imports */
|
/** rxjs Imports */
|
||||||
@@ -28,9 +28,9 @@ export class CentersComponent implements OnInit, AfterViewInit {
|
|||||||
@ViewChild('showClosedCenters', { static: true }) showClosedCenters: MatCheckbox;
|
@ViewChild('showClosedCenters', { static: true }) showClosedCenters: MatCheckbox;
|
||||||
|
|
||||||
/** Name form control. */
|
/** Name form control. */
|
||||||
name = new FormControl();
|
name = new UntypedFormControl();
|
||||||
/** ExternalId form control. */
|
/** ExternalId form control. */
|
||||||
externalId = new FormControl();
|
externalId = new UntypedFormControl();
|
||||||
/** Columns to be displayed in centers table. */
|
/** Columns to be displayed in centers table. */
|
||||||
displayedColumns = ['name', 'accountNo', 'externalId', 'status', 'officeName'];
|
displayedColumns = ['name', 'accountNo', 'externalId', 'status', 'officeName'];
|
||||||
/** Data source for centers table. */
|
/** Data source for centers table. */
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, FormControl, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, UntypedFormControl, Validators } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -24,7 +24,7 @@ export class CreateCenterComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Center form. */
|
/** Center form. */
|
||||||
centerForm: FormGroup;
|
centerForm: UntypedFormGroup;
|
||||||
/** Office data. */
|
/** Office data. */
|
||||||
officeData: any;
|
officeData: any;
|
||||||
/** Group data. */
|
/** Group data. */
|
||||||
@@ -34,7 +34,7 @@ export class CreateCenterComponent implements OnInit {
|
|||||||
/** Group Members. */
|
/** Group Members. */
|
||||||
groupMembers: any[] = [];
|
groupMembers: any[] = [];
|
||||||
/** Group Choice. */
|
/** Group Choice. */
|
||||||
groupChoice = new FormControl('');
|
groupChoice = new UntypedFormControl('');
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the offices data from `resolve`.
|
* Retrieves the offices data from `resolve`.
|
||||||
@@ -46,7 +46,7 @@ export class CreateCenterComponent implements OnInit {
|
|||||||
* @param {GroupsService} groupService GroupsService.
|
* @param {GroupsService} groupService GroupsService.
|
||||||
* @param {Dates} dateUtils Date Utils to format date.
|
* @param {Dates} dateUtils Date Utils to format date.
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private centerService: CentersService,
|
private centerService: CentersService,
|
||||||
@@ -106,7 +106,7 @@ export class CreateCenterComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
this.centerForm.get('active').valueChanges.subscribe((bool: boolean) => {
|
this.centerForm.get('active').valueChanges.subscribe((bool: boolean) => {
|
||||||
if (bool) {
|
if (bool) {
|
||||||
this.centerForm.addControl('activationDate', new FormControl('', Validators.required));
|
this.centerForm.addControl('activationDate', new UntypedFormControl('', Validators.required));
|
||||||
} else {
|
} else {
|
||||||
this.centerForm.removeControl('activationDate');
|
this.centerForm.removeControl('activationDate');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, FormControl, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, UntypedFormControl, Validators } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -27,7 +27,7 @@ export class EditCenterComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Activate center form. */
|
/** Activate center form. */
|
||||||
editCenterForm: FormGroup;
|
editCenterForm: UntypedFormGroup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the center and template data from `resolve`.
|
* Retrieves the center and template data from `resolve`.
|
||||||
@@ -38,7 +38,7 @@ export class EditCenterComponent implements OnInit {
|
|||||||
* @param {GroupsService} groupService GroupsService.
|
* @param {GroupsService} groupService GroupsService.
|
||||||
* @param {Dates} dateUtils Date Utils to format date.
|
* @param {Dates} dateUtils Date Utils to format date.
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private centersService: CentersService,
|
private centersService: CentersService,
|
||||||
@@ -69,7 +69,7 @@ export class EditCenterComponent implements OnInit {
|
|||||||
'externalId': [this.centerData.externalId]
|
'externalId': [this.centerData.externalId]
|
||||||
});
|
});
|
||||||
if (this.centerData.status.value === 'Pending') {
|
if (this.centerData.status.value === 'Pending') {
|
||||||
this.editCenterForm.addControl('activationDate', new FormControl(this.centerData.activationDate ? this.centerData.activationDate : new Date(), Validators.required));
|
this.editCenterForm.addControl('activationDate', new UntypedFormControl(this.centerData.activationDate ? this.centerData.activationDate : new Date(), Validators.required));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+6
-6
@@ -1,5 +1,5 @@
|
|||||||
import { Component, Input, OnInit } from '@angular/core';
|
import { Component, Input, OnInit } from '@angular/core';
|
||||||
import { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';
|
import { UntypedFormBuilder, UntypedFormControl, UntypedFormGroup, Validators } from '@angular/forms';
|
||||||
import { Datatables } from 'app/core/utils/datatables';
|
import { Datatables } from 'app/core/utils/datatables';
|
||||||
import { SettingsService } from 'app/settings/settings.service';
|
import { SettingsService } from 'app/settings/settings.service';
|
||||||
|
|
||||||
@@ -12,11 +12,11 @@ export class ClientDatatableStepComponent implements OnInit {
|
|||||||
/** Input Fields Data */
|
/** Input Fields Data */
|
||||||
@Input() datatableData: any;
|
@Input() datatableData: any;
|
||||||
/** Create Input Form */
|
/** Create Input Form */
|
||||||
datatableForm: FormGroup;
|
datatableForm: UntypedFormGroup;
|
||||||
|
|
||||||
datatableInputs: any = [];
|
datatableInputs: any = [];
|
||||||
|
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private settingsService: SettingsService,
|
private settingsService: SettingsService,
|
||||||
private datatableService: Datatables) { }
|
private datatableService: Datatables) { }
|
||||||
|
|
||||||
@@ -27,12 +27,12 @@ export class ClientDatatableStepComponent implements OnInit {
|
|||||||
input.controlName = this.getInputName(input);
|
input.controlName = this.getInputName(input);
|
||||||
if (!input.isColumnNullable) {
|
if (!input.isColumnNullable) {
|
||||||
if (this.isNumeric(input.columnDisplayType)) {
|
if (this.isNumeric(input.columnDisplayType)) {
|
||||||
inputItems[input.controlName] = new FormControl(0, [Validators.required]);
|
inputItems[input.controlName] = new UntypedFormControl(0, [Validators.required]);
|
||||||
} else {
|
} else {
|
||||||
inputItems[input.controlName] = new FormControl('', [Validators.required]);
|
inputItems[input.controlName] = new UntypedFormControl('', [Validators.required]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
inputItems[input.controlName] = new FormControl('');
|
inputItems[input.controlName] = new UntypedFormControl('');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.datatableForm = this.formBuilder.group(inputItems);
|
this.datatableForm = this.formBuilder.group(inputItems);
|
||||||
|
|||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Inject } from '@angular/core';
|
import { Component, OnInit, Inject } from '@angular/core';
|
||||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
import { SettingsService } from 'app/settings/settings.service';
|
import { SettingsService } from 'app/settings/settings.service';
|
||||||
@@ -21,7 +21,7 @@ export class ClientFamilyMemberDialogComponent implements OnInit {
|
|||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
|
|
||||||
/** Add/Edit family member form. */
|
/** Add/Edit family member form. */
|
||||||
familyMemberForm: FormGroup;
|
familyMemberForm: UntypedFormGroup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {MatDialogRef} dialogRef Client Family Member Dialog Reference
|
* @param {MatDialogRef} dialogRef Client Family Member Dialog Reference
|
||||||
@@ -31,7 +31,7 @@ export class ClientFamilyMemberDialogComponent implements OnInit {
|
|||||||
* @param {SettingsService} settingsService Setting service
|
* @param {SettingsService} settingsService Setting service
|
||||||
*/
|
*/
|
||||||
constructor(public dialogRef: MatDialogRef<ClientFamilyMemberDialogComponent>,
|
constructor(public dialogRef: MatDialogRef<ClientFamilyMemberDialogComponent>,
|
||||||
private formBuilder: FormBuilder,
|
private formBuilder: UntypedFormBuilder,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any,
|
@Inject(MAT_DIALOG_DATA) public data: any,
|
||||||
private settingsService: SettingsService) { }
|
private settingsService: SettingsService) { }
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
||||||
import { FormBuilder, FormGroup, Validators, FormControl } from '@angular/forms';
|
import { UntypedFormBuilder, UntypedFormGroup, Validators, UntypedFormControl } from '@angular/forms';
|
||||||
import { ClientsService } from 'app/clients/clients.service';
|
import { ClientsService } from 'app/clients/clients.service';
|
||||||
import { Dates } from 'app/core/utils/dates';
|
import { Dates } from 'app/core/utils/dates';
|
||||||
|
|
||||||
@@ -27,7 +27,7 @@ export class ClientGeneralStepComponent implements OnInit {
|
|||||||
/** Client Template */
|
/** Client Template */
|
||||||
@Input() clientTemplate: any;
|
@Input() clientTemplate: any;
|
||||||
/** Create Client Form */
|
/** Create Client Form */
|
||||||
createClientForm: FormGroup;
|
createClientForm: UntypedFormGroup;
|
||||||
|
|
||||||
/** Office Options */
|
/** Office Options */
|
||||||
officeOptions: any;
|
officeOptions: any;
|
||||||
@@ -54,7 +54,7 @@ export class ClientGeneralStepComponent implements OnInit {
|
|||||||
* @param {SettingsService} settingsService Setting service
|
* @param {SettingsService} settingsService Setting service
|
||||||
* @param {ClientsService} clientService Client service
|
* @param {ClientsService} clientService Client service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
private settingsService: SettingsService,
|
private settingsService: SettingsService,
|
||||||
private clientService: ClientsService) {
|
private clientService: ClientsService) {
|
||||||
@@ -114,14 +114,14 @@ export class ClientGeneralStepComponent implements OnInit {
|
|||||||
if (legalFormId === 1) {
|
if (legalFormId === 1) {
|
||||||
this.createClientForm.removeControl('fullname');
|
this.createClientForm.removeControl('fullname');
|
||||||
this.createClientForm.removeControl('clientNonPersonDetails');
|
this.createClientForm.removeControl('clientNonPersonDetails');
|
||||||
this.createClientForm.addControl('firstname', new FormControl('', [Validators.required, Validators.pattern('(^[A-z]).*')]));
|
this.createClientForm.addControl('firstname', new UntypedFormControl('', [Validators.required, Validators.pattern('(^[A-z]).*')]));
|
||||||
this.createClientForm.addControl('middlename', new FormControl('', Validators.pattern('(^[A-z]).*')));
|
this.createClientForm.addControl('middlename', new UntypedFormControl('', Validators.pattern('(^[A-z]).*')));
|
||||||
this.createClientForm.addControl('lastname', new FormControl('', [Validators.required, Validators.pattern('(^[A-z]).*')]));
|
this.createClientForm.addControl('lastname', new UntypedFormControl('', [Validators.required, Validators.pattern('(^[A-z]).*')]));
|
||||||
} else {
|
} else {
|
||||||
this.createClientForm.removeControl('firstname');
|
this.createClientForm.removeControl('firstname');
|
||||||
this.createClientForm.removeControl('middlename');
|
this.createClientForm.removeControl('middlename');
|
||||||
this.createClientForm.removeControl('lastname');
|
this.createClientForm.removeControl('lastname');
|
||||||
this.createClientForm.addControl('fullname', new FormControl('', [Validators.required, Validators.pattern('(^[A-z]).*')]));
|
this.createClientForm.addControl('fullname', new UntypedFormControl('', [Validators.required, Validators.pattern('(^[A-z]).*')]));
|
||||||
this.createClientForm.addControl('clientNonPersonDetails', this.formBuilder.group({
|
this.createClientForm.addControl('clientNonPersonDetails', this.formBuilder.group({
|
||||||
'constitutionId': ['', Validators.required],
|
'constitutionId': ['', Validators.required],
|
||||||
'incorpValidityTillDate': [''],
|
'incorpValidityTillDate': [''],
|
||||||
@@ -134,14 +134,14 @@ export class ClientGeneralStepComponent implements OnInit {
|
|||||||
this.createClientForm.get('legalFormId').patchValue(1);
|
this.createClientForm.get('legalFormId').patchValue(1);
|
||||||
this.createClientForm.get('active').valueChanges.subscribe((active: boolean) => {
|
this.createClientForm.get('active').valueChanges.subscribe((active: boolean) => {
|
||||||
if (active) {
|
if (active) {
|
||||||
this.createClientForm.addControl('activationDate', new FormControl('', Validators.required));
|
this.createClientForm.addControl('activationDate', new UntypedFormControl('', Validators.required));
|
||||||
} else {
|
} else {
|
||||||
this.createClientForm.removeControl('activationDate');
|
this.createClientForm.removeControl('activationDate');
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
this.createClientForm.get('addSavings').valueChanges.subscribe((active: boolean) => {
|
this.createClientForm.get('addSavings').valueChanges.subscribe((active: boolean) => {
|
||||||
if (active) {
|
if (active) {
|
||||||
this.createClientForm.addControl('savingsProductId', new FormControl('', Validators.required));
|
this.createClientForm.addControl('savingsProductId', new UntypedFormControl('', Validators.required));
|
||||||
} else {
|
} else {
|
||||||
this.createClientForm.removeControl('savingsProductId');
|
this.createClientForm.removeControl('savingsProductId');
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { NgModule, Component } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { Routes, RouterModule } from '@angular/router';
|
import { Routes, RouterModule } from '@angular/router';
|
||||||
|
|
||||||
/** Routing Imports */
|
/** Routing Imports */
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services. */
|
/** Custom Services. */
|
||||||
@@ -35,7 +35,7 @@ export class ClientPayChargesComponent implements OnInit {
|
|||||||
*/
|
*/
|
||||||
constructor(
|
constructor(
|
||||||
private clientsService: ClientsService,
|
private clientsService: ClientsService,
|
||||||
private formBuilder: FormBuilder,
|
private formBuilder: UntypedFormBuilder,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -19,7 +19,7 @@ import { SettingsService } from 'app/settings/settings.service';
|
|||||||
export class AcceptClientTransferComponent implements OnInit {
|
export class AcceptClientTransferComponent implements OnInit {
|
||||||
|
|
||||||
/** Accept Client Transfer form. */
|
/** Accept Client Transfer form. */
|
||||||
acceptClientTransferForm: FormGroup;
|
acceptClientTransferForm: UntypedFormGroup;
|
||||||
/** Client Id */
|
/** Client Id */
|
||||||
clientId: any;
|
clientId: any;
|
||||||
/** Transfer Date */
|
/** Transfer Date */
|
||||||
@@ -33,7 +33,7 @@ export class AcceptClientTransferComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route
|
* @param {ActivatedRoute} route Activated Route
|
||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private clientsService: ClientsService,
|
private clientsService: ClientsService,
|
||||||
private settingsService: SettingsService,
|
private settingsService: SettingsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -23,7 +23,7 @@ export class ActivateClientComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Activate client form. */
|
/** Activate client form. */
|
||||||
activateClientForm: FormGroup;
|
activateClientForm: UntypedFormGroup;
|
||||||
/** Client Id */
|
/** Client Id */
|
||||||
clientId: any;
|
clientId: any;
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ export class ActivateClientComponent implements OnInit {
|
|||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
* @param {SettingsService} settingsService Settings Service
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private clientsService: ClientsService,
|
private clientsService: ClientsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
|
|||||||
+6
-6
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators, FormControl } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators, UntypedFormControl } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -23,7 +23,7 @@ export class AddClientChargeComponent implements OnInit {
|
|||||||
/** Maximum Due Date allowed. */
|
/** Maximum Due Date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Add Clients Charge form. */
|
/** Add Clients Charge form. */
|
||||||
clientChargeForm: FormGroup;
|
clientChargeForm: UntypedFormGroup;
|
||||||
/** clients charge options. */
|
/** clients charge options. */
|
||||||
clientChargeOptions: any;
|
clientChargeOptions: any;
|
||||||
/** clients Id */
|
/** clients Id */
|
||||||
@@ -41,7 +41,7 @@ export class AddClientChargeComponent implements OnInit {
|
|||||||
* @param {SettingsService} settingsService Setting service
|
* @param {SettingsService} settingsService Setting service
|
||||||
*/
|
*/
|
||||||
constructor(
|
constructor(
|
||||||
private formBuilder: FormBuilder,
|
private formBuilder: UntypedFormBuilder,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
@@ -75,17 +75,17 @@ export class AddClientChargeComponent implements OnInit {
|
|||||||
this.chargeDetails.chargeTimeTypeAnnualOrMonth = true;
|
this.chargeDetails.chargeTimeTypeAnnualOrMonth = true;
|
||||||
}
|
}
|
||||||
if (!this.chargeDetails.dueDateNotRequired && !this.chargeDetails.chargeTimeTypeAnnualOrMonth) {
|
if (!this.chargeDetails.dueDateNotRequired && !this.chargeDetails.chargeTimeTypeAnnualOrMonth) {
|
||||||
this.clientChargeForm.addControl('dueDate', new FormControl('', Validators.required));
|
this.clientChargeForm.addControl('dueDate', new UntypedFormControl('', Validators.required));
|
||||||
} else {
|
} else {
|
||||||
this.clientChargeForm.removeControl('dueDate');
|
this.clientChargeForm.removeControl('dueDate');
|
||||||
}
|
}
|
||||||
if (!this.chargeDetails.dueDateNotRequired && this.chargeDetails.chargeTimeTypeAnnualOrMonth) {
|
if (!this.chargeDetails.dueDateNotRequired && this.chargeDetails.chargeTimeTypeAnnualOrMonth) {
|
||||||
this.clientChargeForm.addControl('feeOnMonthDay', new FormControl('', Validators.required));
|
this.clientChargeForm.addControl('feeOnMonthDay', new UntypedFormControl('', Validators.required));
|
||||||
} else {
|
} else {
|
||||||
this.clientChargeForm.removeControl('feeOnMonthDay');
|
this.clientChargeForm.removeControl('feeOnMonthDay');
|
||||||
}
|
}
|
||||||
if (chargeTimeType.value === 'Monthly Fee') {
|
if (chargeTimeType.value === 'Monthly Fee') {
|
||||||
this.clientChargeForm.addControl('feeInterval', new FormControl(data.feeInterval, Validators.required));
|
this.clientChargeForm.addControl('feeInterval', new UntypedFormControl(data.feeInterval, Validators.required));
|
||||||
} else {
|
} else {
|
||||||
this.clientChargeForm.removeControl('feeInterval');
|
this.clientChargeForm.removeControl('feeInterval');
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -18,7 +18,7 @@ import { SettingsService } from 'app/settings/settings.service';
|
|||||||
export class AddClientCollateralComponent implements OnInit {
|
export class AddClientCollateralComponent implements OnInit {
|
||||||
|
|
||||||
/** Client Collateral Form */
|
/** Client Collateral Form */
|
||||||
clientCollateralForm: FormGroup;
|
clientCollateralForm: UntypedFormGroup;
|
||||||
/** Client Collateral Options */
|
/** Client Collateral Options */
|
||||||
clientCollateralOptions: any;
|
clientCollateralOptions: any;
|
||||||
/** Client Id */
|
/** Client Id */
|
||||||
@@ -34,7 +34,7 @@ export class AddClientCollateralComponent implements OnInit {
|
|||||||
* @param {ProductsService} productsService Products Service
|
* @param {ProductsService} productsService Products Service
|
||||||
*/
|
*/
|
||||||
constructor(
|
constructor(
|
||||||
private formBuilder: FormBuilder,
|
private formBuilder: UntypedFormBuilder,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private productsService: ProductsService,
|
private productsService: ProductsService,
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -17,7 +17,7 @@ import { ClientsService } from 'app/clients/clients.service';
|
|||||||
export class ClientAssignStaffComponent implements OnInit {
|
export class ClientAssignStaffComponent implements OnInit {
|
||||||
|
|
||||||
/** Client Assign Staff form. */
|
/** Client Assign Staff form. */
|
||||||
clientAssignStaffForm: FormGroup;
|
clientAssignStaffForm: UntypedFormGroup;
|
||||||
/** Staff Data */
|
/** Staff Data */
|
||||||
staffData: any;
|
staffData: any;
|
||||||
/** Client Data */
|
/** Client Data */
|
||||||
@@ -30,7 +30,7 @@ export class ClientAssignStaffComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route
|
* @param {ActivatedRoute} route Activated Route
|
||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private clientsService: ClientsService,
|
private clientsService: ClientsService,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router) {
|
private router: Router) {
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Renderer2, ViewChild, ElementRef, SecurityContext } from '@angular/core';
|
import { Component, OnInit, Renderer2, ViewChild, ElementRef, SecurityContext } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -18,7 +18,7 @@ import { DomSanitizer } from '@angular/platform-browser';
|
|||||||
export class ClientScreenReportsComponent implements OnInit {
|
export class ClientScreenReportsComponent implements OnInit {
|
||||||
|
|
||||||
/** Client Screen Reportform. */
|
/** Client Screen Reportform. */
|
||||||
clientScreenReportForm: FormGroup;
|
clientScreenReportForm: UntypedFormGroup;
|
||||||
/** Templates Data */
|
/** Templates Data */
|
||||||
templatesData: any;
|
templatesData: any;
|
||||||
/** Client Id */
|
/** Client Id */
|
||||||
@@ -37,7 +37,7 @@ export class ClientScreenReportsComponent implements OnInit {
|
|||||||
* @param {DomSanitizer} sanitizer DOM Sanitizer
|
* @param {DomSanitizer} sanitizer DOM Sanitizer
|
||||||
* @param {Renderer2} renderer Renderer 2
|
* @param {Renderer2} renderer Renderer 2
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private clientsService: ClientsService,
|
private clientsService: ClientsService,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private sanitizer: DomSanitizer,
|
private sanitizer: DomSanitizer,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -23,7 +23,7 @@ export class CloseClientComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Close Client form. */
|
/** Close Client form. */
|
||||||
closeClientForm: FormGroup;
|
closeClientForm: UntypedFormGroup;
|
||||||
/** Client Data */
|
/** Client Data */
|
||||||
closureData: any;
|
closureData: any;
|
||||||
/** Client Id */
|
/** Client Id */
|
||||||
@@ -37,7 +37,7 @@ export class CloseClientComponent implements OnInit {
|
|||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
* @param {SettingsService} settingsService Setting service
|
* @param {SettingsService} settingsService Setting service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private clientsService: ClientsService,
|
private clientsService: ClientsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
|
|||||||
+12
-12
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports. */
|
/** Angular Imports. */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormBuilder, FormGroup, FormControl, Validators, AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';
|
import { UntypedFormBuilder, UntypedFormGroup, UntypedFormControl, Validators, AbstractControl, ValidationErrors, ValidatorFn } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { Subscription } from 'rxjs';
|
import { Subscription } from 'rxjs';
|
||||||
|
|
||||||
@@ -14,11 +14,11 @@ import { ClientsService } from 'app/clients/clients.service';
|
|||||||
})
|
})
|
||||||
export class CreateSelfServiceUserComponent implements OnInit {
|
export class CreateSelfServiceUserComponent implements OnInit {
|
||||||
|
|
||||||
createSelfServiceForm: FormGroup;
|
createSelfServiceForm: UntypedFormGroup;
|
||||||
clientData: any;
|
clientData: any;
|
||||||
hidePasswordField = true;
|
hidePasswordField = true;
|
||||||
|
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private clientService: ClientsService,
|
private clientService: ClientsService,
|
||||||
private router: Router) {
|
private router: Router) {
|
||||||
@@ -43,8 +43,8 @@ export class CreateSelfServiceUserComponent implements OnInit {
|
|||||||
this.createSelfServiceForm.removeControl('repeatPassword');
|
this.createSelfServiceForm.removeControl('repeatPassword');
|
||||||
} else {
|
} else {
|
||||||
this.hidePasswordField = false;
|
this.hidePasswordField = false;
|
||||||
this.createSelfServiceForm.addControl('password', new FormControl('', [Validators.required]));
|
this.createSelfServiceForm.addControl('password', new UntypedFormControl('', [Validators.required]));
|
||||||
this.createSelfServiceForm.addControl('repeatPassword', new FormControl('', [Validators.required, this.confirmPassword('password')]));
|
this.createSelfServiceForm.addControl('repeatPassword', new UntypedFormControl('', [Validators.required, this.confirmPassword('password')]));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -54,13 +54,13 @@ export class CreateSelfServiceUserComponent implements OnInit {
|
|||||||
*/
|
*/
|
||||||
createSelfServiceUser() {
|
createSelfServiceUser() {
|
||||||
this.createSelfServiceForm = this.formBuilder.group({
|
this.createSelfServiceForm = this.formBuilder.group({
|
||||||
'username': new FormControl('', [Validators.required]),
|
'username': new UntypedFormControl('', [Validators.required]),
|
||||||
'firstname': new FormControl(this.clientData.firstname, [Validators.required]),
|
'firstname': new UntypedFormControl(this.clientData.firstname, [Validators.required]),
|
||||||
'lastname': new FormControl(this.clientData.lastname, [Validators.required]),
|
'lastname': new UntypedFormControl(this.clientData.lastname, [Validators.required]),
|
||||||
'email': new FormControl('', [Validators.required, Validators.email]),
|
'email': new UntypedFormControl('', [Validators.required, Validators.email]),
|
||||||
'sendPasswordToEmail': new FormControl(true),
|
'sendPasswordToEmail': new UntypedFormControl(true),
|
||||||
'passwordNeverExpires': new FormControl(false),
|
'passwordNeverExpires': new UntypedFormControl(false),
|
||||||
'status': new FormControl({value: this.clientData.subStatus.active ? 'Active' : 'Inactive', disabled: true})
|
'status': new UntypedFormControl({value: this.clientData.subStatus.active ? 'Active' : 'Inactive', disabled: true})
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -23,7 +23,7 @@ export class ReactivateClientComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Reactivate client form. */
|
/** Reactivate client form. */
|
||||||
reactivateClientForm: FormGroup;
|
reactivateClientForm: UntypedFormGroup;
|
||||||
/** Client Account Id */
|
/** Client Account Id */
|
||||||
clientId: any;
|
clientId: any;
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ export class ReactivateClientComponent implements OnInit {
|
|||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
* @param {SettingsService} settingsService Setting service
|
* @param {SettingsService} settingsService Setting service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private clientsService: ClientsService,
|
private clientsService: ClientsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -19,7 +19,7 @@ import { SettingsService } from 'app/settings/settings.service';
|
|||||||
export class RejectClientTransferComponent implements OnInit {
|
export class RejectClientTransferComponent implements OnInit {
|
||||||
|
|
||||||
/** Reject Client Transfer form. */
|
/** Reject Client Transfer form. */
|
||||||
rejectClientTransferForm: FormGroup;
|
rejectClientTransferForm: UntypedFormGroup;
|
||||||
/** Client Id */
|
/** Client Id */
|
||||||
clientId: any;
|
clientId: any;
|
||||||
/** Transfer Date */
|
/** Transfer Date */
|
||||||
@@ -31,7 +31,7 @@ export class RejectClientTransferComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route
|
* @param {ActivatedRoute} route Activated Route
|
||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private clientsService: ClientsService,
|
private clientsService: ClientsService,
|
||||||
private settingsService: SettingsService,
|
private settingsService: SettingsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -23,7 +23,7 @@ export class RejectClientComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Reject Share Account form. */
|
/** Reject Share Account form. */
|
||||||
rejectClientForm: FormGroup;
|
rejectClientForm: UntypedFormGroup;
|
||||||
/** Client Data */
|
/** Client Data */
|
||||||
rejectionData: any;
|
rejectionData: any;
|
||||||
/** Client Id */
|
/** Client Id */
|
||||||
@@ -37,7 +37,7 @@ export class RejectClientComponent implements OnInit {
|
|||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
* @param {SettingsService} settingsService Setting service
|
* @param {SettingsService} settingsService Setting service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private clientsService: ClientsService,
|
private clientsService: ClientsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -23,7 +23,7 @@ export class TransferClientComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Transfer Client form. */
|
/** Transfer Client form. */
|
||||||
transferClientForm: FormGroup;
|
transferClientForm: UntypedFormGroup;
|
||||||
/** Client Data */
|
/** Client Data */
|
||||||
officeData: any;
|
officeData: any;
|
||||||
/** Client Id */
|
/** Client Id */
|
||||||
@@ -37,7 +37,7 @@ export class TransferClientComponent implements OnInit {
|
|||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
* @param {SettingsService} settingsService Setting service
|
* @param {SettingsService} settingsService Setting service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private clientsService: ClientsService,
|
private clientsService: ClientsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -23,7 +23,7 @@ export class UndoClientRejectionComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Undo Client Rejection form. */
|
/** Undo Client Rejection form. */
|
||||||
undoClientRejectionForm: FormGroup;
|
undoClientRejectionForm: UntypedFormGroup;
|
||||||
/** Client Id */
|
/** Client Id */
|
||||||
clientId: any;
|
clientId: any;
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ export class UndoClientRejectionComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route
|
* @param {ActivatedRoute} route Activated Route
|
||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private clientsService: ClientsService,
|
private clientsService: ClientsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -19,7 +19,7 @@ import { SettingsService } from 'app/settings/settings.service';
|
|||||||
export class UndoClientTransferComponent implements OnInit {
|
export class UndoClientTransferComponent implements OnInit {
|
||||||
|
|
||||||
/** Undo Client Transfer form. */
|
/** Undo Client Transfer form. */
|
||||||
undoClientTransferForm: FormGroup;
|
undoClientTransferForm: UntypedFormGroup;
|
||||||
/** Client Id */
|
/** Client Id */
|
||||||
clientId: any;
|
clientId: any;
|
||||||
/** Transfer Date */
|
/** Transfer Date */
|
||||||
@@ -31,7 +31,7 @@ export class UndoClientTransferComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route
|
* @param {ActivatedRoute} route Activated Route
|
||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private clientsService: ClientsService,
|
private clientsService: ClientsService,
|
||||||
private settingsService: SettingsService,
|
private settingsService: SettingsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -17,7 +17,7 @@ import { ClientsService } from 'app/clients/clients.service';
|
|||||||
export class UpdateClientSavingsAccountComponent implements OnInit {
|
export class UpdateClientSavingsAccountComponent implements OnInit {
|
||||||
|
|
||||||
/** Client Update Savings Account form. */
|
/** Client Update Savings Account form. */
|
||||||
clientSavingsAccountForm: FormGroup;
|
clientSavingsAccountForm: UntypedFormGroup;
|
||||||
/** Savings Accounts Data */
|
/** Savings Accounts Data */
|
||||||
savingsAccounts: any;
|
savingsAccounts: any;
|
||||||
/** Client Data */
|
/** Client Data */
|
||||||
@@ -30,7 +30,7 @@ export class UpdateClientSavingsAccountComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route
|
* @param {ActivatedRoute} route Activated Route
|
||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private clientsService: ClientsService,
|
private clientsService: ClientsService,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router) {
|
private router: Router) {
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -23,7 +23,7 @@ export class WithdrawClientComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Withdraw Client form. */
|
/** Withdraw Client form. */
|
||||||
withdrawClientForm: FormGroup;
|
withdrawClientForm: UntypedFormGroup;
|
||||||
/** Client Data */
|
/** Client Data */
|
||||||
withdrawalData: any;
|
withdrawalData: any;
|
||||||
/** Client Id */
|
/** Client Id */
|
||||||
@@ -37,7 +37,7 @@ export class WithdrawClientComponent implements OnInit {
|
|||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
* @param {SettingsService} settingsService Setting service
|
* @param {SettingsService} settingsService Setting service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private clientsService: ClientsService,
|
private clientsService: ClientsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
|
|||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Inject } from '@angular/core';
|
import { Component, OnInit, Inject } from '@angular/core';
|
||||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'mifosx-edit-notes-dialog',
|
selector: 'mifosx-edit-notes-dialog',
|
||||||
@@ -9,10 +9,10 @@ import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
|||||||
styleUrls: ['./edit-notes-dialog.component.scss']
|
styleUrls: ['./edit-notes-dialog.component.scss']
|
||||||
})
|
})
|
||||||
export class EditNotesDialogComponent implements OnInit {
|
export class EditNotesDialogComponent implements OnInit {
|
||||||
noteForm: FormGroup;
|
noteForm: UntypedFormGroup;
|
||||||
|
|
||||||
constructor(public dialogRef: MatDialogRef<EditNotesDialogComponent>,
|
constructor(public dialogRef: MatDialogRef<EditNotesDialogComponent>,
|
||||||
private formBuilder: FormBuilder,
|
private formBuilder: UntypedFormBuilder,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
import { Component, OnInit, Inject } from '@angular/core';
|
import { Component, OnInit, Inject } from '@angular/core';
|
||||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
import { FormGroup, FormBuilder, Validators, FormControl } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators, FormControl } from '@angular/forms';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'mifosx-upload-document-dialog',
|
selector: 'mifosx-upload-document-dialog',
|
||||||
@@ -10,7 +10,7 @@ import { FormGroup, FormBuilder, Validators, FormControl } from '@angular/forms'
|
|||||||
export class UploadDocumentDialogComponent implements OnInit {
|
export class UploadDocumentDialogComponent implements OnInit {
|
||||||
|
|
||||||
/** Upload Document form. */
|
/** Upload Document form. */
|
||||||
uploadDocumentForm: FormGroup;
|
uploadDocumentForm: UntypedFormGroup;
|
||||||
/** Upload Document Data */
|
/** Upload Document Data */
|
||||||
uploadDocumentData: any = [];
|
uploadDocumentData: any = [];
|
||||||
/** Triggers description field */
|
/** Triggers description field */
|
||||||
@@ -24,7 +24,7 @@ export class UploadDocumentDialogComponent implements OnInit {
|
|||||||
* @param {any} data Dialog Data
|
* @param {any} data Dialog Data
|
||||||
*/
|
*/
|
||||||
constructor(public dialogRef: MatDialogRef<UploadDocumentDialogComponent>,
|
constructor(public dialogRef: MatDialogRef<UploadDocumentDialogComponent>,
|
||||||
private formBuilder: FormBuilder,
|
private formBuilder: UntypedFormBuilder,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) {
|
@Inject(MAT_DIALOG_DATA) public data: any) {
|
||||||
this.documentIdentifier = data.documentIdentifier;
|
this.documentIdentifier = data.documentIdentifier;
|
||||||
this.entityType = data.entityType;
|
this.entityType = data.entityType;
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -23,7 +23,7 @@ export class AddFamilyMemberComponent implements OnInit {
|
|||||||
/** Minimum age allowed is 0. */
|
/** Minimum age allowed is 0. */
|
||||||
minAge = 0;
|
minAge = 0;
|
||||||
/** Add family member form. */
|
/** Add family member form. */
|
||||||
addFamilyMemberForm: FormGroup;
|
addFamilyMemberForm: UntypedFormGroup;
|
||||||
/** Add family member template. */
|
/** Add family member template. */
|
||||||
addFamilyMemberTemplate: any;
|
addFamilyMemberTemplate: any;
|
||||||
/** Client ID */
|
/** Client ID */
|
||||||
@@ -37,7 +37,7 @@ export class AddFamilyMemberComponent implements OnInit {
|
|||||||
* @param {ClientsService} clientsService Clients Service
|
* @param {ClientsService} clientsService Clients Service
|
||||||
* @param {SettingsService} settingsService Setting service
|
* @param {SettingsService} settingsService Setting service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -22,7 +22,7 @@ export class EditFamilyMemberComponent implements OnInit {
|
|||||||
/** Maximum Due Date allowed. */
|
/** Maximum Due Date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Add family member form. */
|
/** Add family member form. */
|
||||||
editFamilyMemberForm: FormGroup;
|
editFamilyMemberForm: UntypedFormGroup;
|
||||||
/** Add family member template. */
|
/** Add family member template. */
|
||||||
addFamilyMemberTemplate: any;
|
addFamilyMemberTemplate: any;
|
||||||
/** Family Members Details */
|
/** Family Members Details */
|
||||||
@@ -36,7 +36,7 @@ export class EditFamilyMemberComponent implements OnInit {
|
|||||||
* @param {ClientsService} clientsService Clients Service
|
* @param {ClientsService} clientsService Clients Service
|
||||||
* @param {SettingsService} settingsService Setting service
|
* @param {SettingsService} settingsService Setting service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { FormBuilder, FormGroup, Validators, FormControl } from '@angular/forms';
|
import { UntypedFormBuilder, UntypedFormGroup, Validators, UntypedFormControl } from '@angular/forms';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
import { ClientsService } from '../clients.service';
|
import { ClientsService } from '../clients.service';
|
||||||
@@ -26,7 +26,7 @@ export class EditClientComponent implements OnInit {
|
|||||||
/** Client Data and Template */
|
/** Client Data and Template */
|
||||||
clientDataAndTemplate: any;
|
clientDataAndTemplate: any;
|
||||||
/** Edit Client Form */
|
/** Edit Client Form */
|
||||||
editClientForm: FormGroup;
|
editClientForm: UntypedFormGroup;
|
||||||
|
|
||||||
/** Office Options */
|
/** Office Options */
|
||||||
officeOptions: any;
|
officeOptions: any;
|
||||||
@@ -55,7 +55,7 @@ export class EditClientComponent implements OnInit {
|
|||||||
* @param {Dates} dateUtils Date Utils
|
* @param {Dates} dateUtils Date Utils
|
||||||
* @param {SettingsService} settingsService Settings Service
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private clientsService: ClientsService,
|
private clientsService: ClientsService,
|
||||||
@@ -139,14 +139,14 @@ export class EditClientComponent implements OnInit {
|
|||||||
if (legalFormId === 1) {
|
if (legalFormId === 1) {
|
||||||
this.editClientForm.removeControl('fullname');
|
this.editClientForm.removeControl('fullname');
|
||||||
this.editClientForm.removeControl('clientNonPersonDetails');
|
this.editClientForm.removeControl('clientNonPersonDetails');
|
||||||
this.editClientForm.addControl('firstname', new FormControl(this.clientDataAndTemplate.firstname, Validators.required));
|
this.editClientForm.addControl('firstname', new UntypedFormControl(this.clientDataAndTemplate.firstname, Validators.required));
|
||||||
this.editClientForm.addControl('middlename', new FormControl(this.clientDataAndTemplate.middlename));
|
this.editClientForm.addControl('middlename', new UntypedFormControl(this.clientDataAndTemplate.middlename));
|
||||||
this.editClientForm.addControl('lastname', new FormControl(this.clientDataAndTemplate.lastname, Validators.required));
|
this.editClientForm.addControl('lastname', new UntypedFormControl(this.clientDataAndTemplate.lastname, Validators.required));
|
||||||
} else {
|
} else {
|
||||||
this.editClientForm.removeControl('firstname');
|
this.editClientForm.removeControl('firstname');
|
||||||
this.editClientForm.removeControl('middlename');
|
this.editClientForm.removeControl('middlename');
|
||||||
this.editClientForm.removeControl('lastname');
|
this.editClientForm.removeControl('lastname');
|
||||||
this.editClientForm.addControl('fullname', new FormControl(this.clientDataAndTemplate.fullname, Validators.required));
|
this.editClientForm.addControl('fullname', new UntypedFormControl(this.clientDataAndTemplate.fullname, Validators.required));
|
||||||
this.editClientForm.addControl('clientNonPersonDetails', this.formBuilder.group({
|
this.editClientForm.addControl('clientNonPersonDetails', this.formBuilder.group({
|
||||||
'constitutionId': [this.clientDataAndTemplate.clientNonPersonDetails.constitution && this.clientDataAndTemplate.clientNonPersonDetails.constitution.id, Validators.required],
|
'constitutionId': [this.clientDataAndTemplate.clientNonPersonDetails.constitution && this.clientDataAndTemplate.clientNonPersonDetails.constitution.id, Validators.required],
|
||||||
'incorpValidityTillDate': [this.clientDataAndTemplate.clientNonPersonDetails.incorpValidityTillDate && new Date(this.clientDataAndTemplate.clientNonPersonDetails.incorpValidityTillDate)],
|
'incorpValidityTillDate': [this.clientDataAndTemplate.clientNonPersonDetails.incorpValidityTillDate && new Date(this.clientDataAndTemplate.clientNonPersonDetails.incorpValidityTillDate)],
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -16,7 +16,7 @@ export class EditCollateralComponent implements OnInit {
|
|||||||
|
|
||||||
|
|
||||||
/** Client Collateral Form */
|
/** Client Collateral Form */
|
||||||
clientCollateralForm: FormGroup;
|
clientCollateralForm: UntypedFormGroup;
|
||||||
/** Client Collateral Options */
|
/** Client Collateral Options */
|
||||||
clientCollateralOptions: any;
|
clientCollateralOptions: any;
|
||||||
/** Client Id */
|
/** Client Id */
|
||||||
@@ -33,7 +33,7 @@ export class EditCollateralComponent implements OnInit {
|
|||||||
* @param {CollateralsService} collateralService Collateral Service
|
* @param {CollateralsService} collateralService Collateral Service
|
||||||
*/
|
*/
|
||||||
constructor(
|
constructor(
|
||||||
private formBuilder: FormBuilder,
|
private formBuilder: UntypedFormBuilder,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private settingsService: SettingsService,
|
private settingsService: SettingsService,
|
||||||
|
|||||||
+1
-1
@@ -104,7 +104,7 @@
|
|||||||
<ng-container matColumnDef="actions">
|
<ng-container matColumnDef="actions">
|
||||||
<th mat-header-cell *matHeaderCellDef mat-sort-header> Actions </th>
|
<th mat-header-cell *matHeaderCellDef mat-sort-header> Actions </th>
|
||||||
<td mat-cell *matCellDef="let loan; let i = index">
|
<td mat-cell *matCellDef="let loan; let i = index">
|
||||||
<button mat-raised-button color="primary" (click)="showAndStorePaymentDetails('loans-accounts', loan, i)">Add Payment</button>
|
<button mat-raised-button color="primary" (click)="showAndStorePaymentDetails('loans/accounts', loan, i)">Add Payment</button>
|
||||||
</td>
|
</td>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -4,7 +4,7 @@ import { MatDialog } from '@angular/material/dialog';
|
|||||||
import { MatPaginator } from '@angular/material/paginator';
|
import { MatPaginator } from '@angular/material/paginator';
|
||||||
import { MatSort } from '@angular/material/sort';
|
import { MatSort } from '@angular/material/sort';
|
||||||
import { MatTableDataSource } from '@angular/material/table';
|
import { MatTableDataSource } from '@angular/material/table';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Services Import */
|
/** Services Import */
|
||||||
@@ -45,7 +45,7 @@ export class IndividualCollectionSheetComponent implements OnInit {
|
|||||||
/** Maximum Date allowed. */
|
/** Maximum Date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Collection Sheet form. */
|
/** Collection Sheet form. */
|
||||||
collectionSheetForm: FormGroup;
|
collectionSheetForm: UntypedFormGroup;
|
||||||
/** Toggles b/w form and table */
|
/** Toggles b/w form and table */
|
||||||
isCollapsed = false;
|
isCollapsed = false;
|
||||||
/** Collections Sheet Data */
|
/** Collections Sheet Data */
|
||||||
@@ -87,7 +87,7 @@ export class IndividualCollectionSheetComponent implements OnInit {
|
|||||||
* @param {Router} router Router for navigation.
|
* @param {Router} router Router for navigation.
|
||||||
* @param {SettingsService} settingsService Settings Service
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private collectionsService: CollectionsService,
|
private collectionsService: CollectionsService,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
|
|||||||
@@ -23,32 +23,25 @@ import { SharedModule } from '../shared/shared.module';
|
|||||||
* Configuration Wizard Module
|
* Configuration Wizard Module
|
||||||
*/
|
*/
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
PopoverComponent,
|
PopoverComponent,
|
||||||
PopoverCloseDirective,
|
PopoverCloseDirective,
|
||||||
PopoverArrowDirective,
|
PopoverArrowDirective,
|
||||||
ConfigurationWizardComponent,
|
ConfigurationWizardComponent,
|
||||||
ContinueSetupDialogComponent,
|
ContinueSetupDialogComponent,
|
||||||
NextStepDialogComponent,
|
NextStepDialogComponent,
|
||||||
CompletionDialogComponent
|
CompletionDialogComponent
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
SharedModule,
|
SharedModule,
|
||||||
CommonModule,
|
CommonModule,
|
||||||
OverlayModule,
|
OverlayModule,
|
||||||
PortalModule,
|
PortalModule,
|
||||||
MatDialogModule
|
MatDialogModule
|
||||||
],
|
],
|
||||||
exports: [
|
exports: [
|
||||||
PopoverCloseDirective
|
PopoverCloseDirective
|
||||||
],
|
]
|
||||||
entryComponents: [
|
|
||||||
PopoverComponent,
|
|
||||||
ConfigurationWizardComponent,
|
|
||||||
ContinueSetupDialogComponent,
|
|
||||||
NextStepDialogComponent,
|
|
||||||
CompletionDialogComponent
|
|
||||||
]
|
|
||||||
})
|
})
|
||||||
|
|
||||||
export class ConfigurationWizardModule { }
|
export class ConfigurationWizardModule { }
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ import { ApiPrefixInterceptor } from './api-prefix.interceptor';
|
|||||||
* HttpClient is declared in a re-exported module, so we have to extend the original module to make it work properly.
|
* HttpClient is declared in a re-exported module, so we have to extend the original module to make it work properly.
|
||||||
* (see https://github.com/Microsoft/TypeScript/issues/13897)
|
* (see https://github.com/Microsoft/TypeScript/issues/13897)
|
||||||
*/
|
*/
|
||||||
declare module '@angular/common/http/http' {
|
declare module '@angular/common/http' {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Augment HttpClient with the added configuration methods from HttpService, to allow in-place replacement of
|
* Augment HttpClient with the added configuration methods from HttpService, to allow in-place replacement of
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ import {HttpEvent, HttpHandler, HttpInterceptor, HttpRequest, HttpResponse} from
|
|||||||
|
|
||||||
/** rxjs Imports */
|
/** rxjs Imports */
|
||||||
import { Observable } from 'rxjs';
|
import { Observable } from 'rxjs';
|
||||||
import { tap, catchError } from 'rxjs/operators';
|
import { finalize } from 'rxjs/operators';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
import { ProgressBarService } from './progress-bar.service';
|
import { ProgressBarService } from './progress-bar.service';
|
||||||
@@ -28,17 +28,9 @@ export class ProgressInterceptor implements HttpInterceptor {
|
|||||||
this.progressBarService.increase();
|
this.progressBarService.increase();
|
||||||
return next.handle(request)
|
return next.handle(request)
|
||||||
.pipe(
|
.pipe(
|
||||||
tap(event => {
|
finalize(
|
||||||
if (event instanceof HttpResponse) {
|
() => { this.progressBarService.decrease(); }
|
||||||
this.progressBarService.decrease();
|
)
|
||||||
}
|
|
||||||
})
|
|
||||||
)
|
|
||||||
.pipe(
|
|
||||||
catchError(error => {
|
|
||||||
this.progressBarService.decrease();
|
|
||||||
throw error;
|
|
||||||
})
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -54,10 +54,6 @@
|
|||||||
<mifosx-language-selector class="ml-1 language" fxHide.lt-md></mifosx-language-selector>
|
<mifosx-language-selector class="ml-1 language" fxHide.lt-md></mifosx-language-selector>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div #themePicker>
|
|
||||||
<mifosx-theme-picker fxHide.lt-md></mifosx-theme-picker>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div #notifications>
|
<div #notifications>
|
||||||
<mifosx-notifications-tray fxHide.lt-md></mifosx-notifications-tray>
|
<mifosx-notifications-tray fxHide.lt-md></mifosx-notifications-tray>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
||||||
import { FormControl } from '@angular/forms';
|
import { UntypedFormControl } from '@angular/forms';
|
||||||
import { MatDialog } from '@angular/material/dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
|
|
||||||
/** Dialog Components */
|
/** Dialog Components */
|
||||||
@@ -30,7 +30,7 @@ export class FixedDepositAccountChargesStepComponent implements OnInit, OnChange
|
|||||||
/** Validity of fixed depsits account form */
|
/** Validity of fixed depsits account form */
|
||||||
@Input() fixedDepositAccountFormValid: boolean;
|
@Input() fixedDepositAccountFormValid: boolean;
|
||||||
/** Currency Code */
|
/** Currency Code */
|
||||||
@Input() currencyCode: FormControl;
|
@Input() currencyCode: UntypedFormControl;
|
||||||
|
|
||||||
/** Charges Data */
|
/** Charges Data */
|
||||||
chargeData: any;
|
chargeData: any;
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnChanges, Input } from '@angular/core';
|
import { Component, OnChanges, Input } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fixed Deposit Account Currency Step
|
* Fixed Deposit Account Currency Step
|
||||||
@@ -18,14 +18,14 @@ export class FixedDepositAccountCurrencyStepComponent implements OnChanges {
|
|||||||
@Input() fixedDepositsAccountProductTemplate: any;
|
@Input() fixedDepositsAccountProductTemplate: any;
|
||||||
|
|
||||||
/** Fixed Deposit Account Currency Form */
|
/** Fixed Deposit Account Currency Form */
|
||||||
fixedDepositAccountCurrencyForm: FormGroup;
|
fixedDepositAccountCurrencyForm: UntypedFormGroup;
|
||||||
/** Currency Data */
|
/** Currency Data */
|
||||||
currencyData: any;
|
currencyData: any;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {FormBuilder} formBuilder Form Builder
|
* @param {FormBuilder} formBuilder Form Builder
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder) {
|
constructor(private formBuilder: UntypedFormBuilder) {
|
||||||
this.createFixedDepositAccountCurrencyForm();
|
this.createFixedDepositAccountCurrencyForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { SettingsService } from 'app/settings/settings.service';
|
import { SettingsService } from 'app/settings/settings.service';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -30,7 +30,7 @@ export class FixedDepositAccountDetailsStepComponent implements OnInit {
|
|||||||
/** For edit savings form */
|
/** For edit savings form */
|
||||||
isFieldOfficerPatched = false;
|
isFieldOfficerPatched = false;
|
||||||
/** Fixed Deposits Account Details Form */
|
/** Fixed Deposits Account Details Form */
|
||||||
fixedDepositAccountDetailsForm: FormGroup;
|
fixedDepositAccountDetailsForm: UntypedFormGroup;
|
||||||
|
|
||||||
/** Fixed Deposits Account Template with product data */
|
/** Fixed Deposits Account Template with product data */
|
||||||
@Output() fixedDepositsAccountProductTemplate = new EventEmitter();
|
@Output() fixedDepositsAccountProductTemplate = new EventEmitter();
|
||||||
@@ -41,7 +41,7 @@ export class FixedDepositAccountDetailsStepComponent implements OnInit {
|
|||||||
* @param {FixedDepositsService} fixedDepositsService Fixed Deposits Service.
|
* @param {FixedDepositsService} fixedDepositsService Fixed Deposits Service.
|
||||||
* @param {SettingsService} settingsService Settings Service
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private fixedDepositsService: FixedDepositsService,
|
private fixedDepositsService: FixedDepositsService,
|
||||||
private settingsService: SettingsService) {
|
private settingsService: SettingsService) {
|
||||||
this.createFixedDepositsAccountDetailsForm();
|
this.createFixedDepositsAccountDetailsForm();
|
||||||
|
|||||||
+6
-6
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, FormControl, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, UntypedFormControl, Validators } from '@angular/forms';
|
||||||
import { SettingsService } from 'app/settings/settings.service';
|
import { SettingsService } from 'app/settings/settings.service';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -23,7 +23,7 @@ export class FixedDepositAccountSettingsStepComponent implements OnInit, OnChang
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Fixed Deposits Account Settings Form */
|
/** Fixed Deposits Account Settings Form */
|
||||||
fixedDepositAccountSettingsForm: FormGroup;
|
fixedDepositAccountSettingsForm: UntypedFormGroup;
|
||||||
/** Lockin Period Frequency Type Data */
|
/** Lockin Period Frequency Type Data */
|
||||||
lockinPeriodFrequencyTypeData: any;
|
lockinPeriodFrequencyTypeData: any;
|
||||||
/** Period Frequency Type Data */
|
/** Period Frequency Type Data */
|
||||||
@@ -37,7 +37,7 @@ export class FixedDepositAccountSettingsStepComponent implements OnInit, OnChang
|
|||||||
* @param {FormBuilder} formBuilder Form Builder
|
* @param {FormBuilder} formBuilder Form Builder
|
||||||
* @param {SettingsService} settingsService Settings Service
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private settingsService: SettingsService) {
|
private settingsService: SettingsService) {
|
||||||
this.createFixedDepositAccountSettingsForm();
|
this.createFixedDepositAccountSettingsForm();
|
||||||
this.buildDependencies();
|
this.buildDependencies();
|
||||||
@@ -57,10 +57,10 @@ export class FixedDepositAccountSettingsStepComponent implements OnInit, OnChang
|
|||||||
'preClosurePenalInterestOnTypeId': this.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnType ? this.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnType.id : ''
|
'preClosurePenalInterestOnTypeId': this.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnType ? this.fixedDepositsAccountProductTemplate.preClosurePenalInterestOnType.id : ''
|
||||||
});
|
});
|
||||||
if (this.fixedDepositsAccountProductTemplate.withHoldTax) {
|
if (this.fixedDepositsAccountProductTemplate.withHoldTax) {
|
||||||
this.fixedDepositAccountSettingsForm.addControl('withHoldTax', new FormControl(false));
|
this.fixedDepositAccountSettingsForm.addControl('withHoldTax', new UntypedFormControl(false));
|
||||||
this.fixedDepositAccountSettingsForm.get('withHoldTax').valueChanges.subscribe((value: boolean) => {
|
this.fixedDepositAccountSettingsForm.get('withHoldTax').valueChanges.subscribe((value: boolean) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
this.fixedDepositAccountSettingsForm.addControl('taxGroupId', new FormControl({ value: '', disabled: true }));
|
this.fixedDepositAccountSettingsForm.addControl('taxGroupId', new UntypedFormControl({ value: '', disabled: true }));
|
||||||
this.fixedDepositAccountSettingsForm.get('taxGroupId').patchValue(this.fixedDepositsAccountProductTemplate.taxGroup && this.fixedDepositsAccountProductTemplate.taxGroup.name);
|
this.fixedDepositAccountSettingsForm.get('taxGroupId').patchValue(this.fixedDepositsAccountProductTemplate.taxGroup && this.fixedDepositsAccountProductTemplate.taxGroup.name);
|
||||||
} else {
|
} else {
|
||||||
this.fixedDepositAccountSettingsForm.removeControl('taxGroupId');
|
this.fixedDepositAccountSettingsForm.removeControl('taxGroupId');
|
||||||
@@ -111,7 +111,7 @@ export class FixedDepositAccountSettingsStepComponent implements OnInit, OnChang
|
|||||||
buildDependencies() {
|
buildDependencies() {
|
||||||
this.fixedDepositAccountSettingsForm.get('transferInterestToSavings').valueChanges.subscribe((value: boolean) => {
|
this.fixedDepositAccountSettingsForm.get('transferInterestToSavings').valueChanges.subscribe((value: boolean) => {
|
||||||
if (value) {
|
if (value) {
|
||||||
this.fixedDepositAccountSettingsForm.addControl('linkAccountId', new FormControl('', Validators.required));
|
this.fixedDepositAccountSettingsForm.addControl('linkAccountId', new UntypedFormControl('', Validators.required));
|
||||||
this.fixedDepositAccountSettingsForm.get('linkAccountId').patchValue(this.fixedDepositsAccountTemplate.linkedAccount && this.fixedDepositsAccountTemplate.linkedAccount.id);
|
this.fixedDepositAccountSettingsForm.get('linkAccountId').patchValue(this.fixedDepositsAccountTemplate.linkedAccount && this.fixedDepositsAccountTemplate.linkedAccount.id);
|
||||||
} else {
|
} else {
|
||||||
this.fixedDepositAccountSettingsForm.removeControl('linkAccountId');
|
this.fixedDepositAccountSettingsForm.removeControl('linkAccountId');
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators} from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators} from '@angular/forms';
|
||||||
import { SettingsService } from 'app/settings/settings.service';
|
import { SettingsService } from 'app/settings/settings.service';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -23,7 +23,7 @@ export class FixedDepositAccountTermsStepComponent implements OnInit, OnChanges
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Fixed Deposits Account Terms Form */
|
/** Fixed Deposits Account Terms Form */
|
||||||
fixedDepositAccountTermsForm: FormGroup;
|
fixedDepositAccountTermsForm: UntypedFormGroup;
|
||||||
/** Interest Compounding Period Type Data */
|
/** Interest Compounding Period Type Data */
|
||||||
interestCompoundingPeriodTypeData: any;
|
interestCompoundingPeriodTypeData: any;
|
||||||
/** Interest Posting Period Type Data */
|
/** Interest Posting Period Type Data */
|
||||||
@@ -39,7 +39,7 @@ export class FixedDepositAccountTermsStepComponent implements OnInit, OnChanges
|
|||||||
* @param {FormBuilder} formBuilder Form Builder
|
* @param {FormBuilder} formBuilder Form Builder
|
||||||
* @param {SettingsService} settingsService Settings Service
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private settingsService: SettingsService) {
|
private settingsService: SettingsService) {
|
||||||
this.createFixedDepositsAccountTermsForm();
|
this.createFixedDepositsAccountTermsForm();
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { Dates } from 'app/core/utils/dates';
|
import { Dates } from 'app/core/utils/dates';
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ export class ActivateFixedDepositsAccountComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Activate Fixed Deposits Account form. */
|
/** Activate Fixed Deposits Account form. */
|
||||||
activateFixedDepositsAccountForm: FormGroup;
|
activateFixedDepositsAccountForm: UntypedFormGroup;
|
||||||
/** Fixed Deposits Account Id */
|
/** Fixed Deposits Account Id */
|
||||||
accountId: any;
|
accountId: any;
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ export class ActivateFixedDepositsAccountComponent implements OnInit {
|
|||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
* @param {SettingsService} settingsService Settings Service
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private savingsService: SavingsService,
|
private savingsService: SavingsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
|
|||||||
+6
-6
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators, FormControl } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators, UntypedFormControl } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
import { Dates } from 'app/core/utils/dates';
|
import { Dates } from 'app/core/utils/dates';
|
||||||
|
|
||||||
@@ -24,7 +24,7 @@ export class AddChargeFixedDepositsAccountComponent implements OnInit {
|
|||||||
/** Maximum Due Date allowed. */
|
/** Maximum Due Date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Add Fixed Deposits Charge form. */
|
/** Add Fixed Deposits Charge form. */
|
||||||
fixedDepositsChargeForm: FormGroup;
|
fixedDepositsChargeForm: UntypedFormGroup;
|
||||||
/** savings charge options. */
|
/** savings charge options. */
|
||||||
savingsChargeOptions: any;
|
savingsChargeOptions: any;
|
||||||
/** savings Id of the savings account. */
|
/** savings Id of the savings account. */
|
||||||
@@ -42,7 +42,7 @@ export class AddChargeFixedDepositsAccountComponent implements OnInit {
|
|||||||
* @param {SettingsService} settingsService Settings Service
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(
|
constructor(
|
||||||
private formBuilder: FormBuilder,
|
private formBuilder: UntypedFormBuilder,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
@@ -76,17 +76,17 @@ export class AddChargeFixedDepositsAccountComponent implements OnInit {
|
|||||||
this.chargeDetails.chargeTimeTypeAnnualOrMonth = true;
|
this.chargeDetails.chargeTimeTypeAnnualOrMonth = true;
|
||||||
}
|
}
|
||||||
if (!this.chargeDetails.dueDateNotRequired && !this.chargeDetails.chargeTimeTypeAnnualOrMonth) {
|
if (!this.chargeDetails.dueDateNotRequired && !this.chargeDetails.chargeTimeTypeAnnualOrMonth) {
|
||||||
this.fixedDepositsChargeForm.addControl('dueDate', new FormControl('', Validators.required));
|
this.fixedDepositsChargeForm.addControl('dueDate', new UntypedFormControl('', Validators.required));
|
||||||
} else {
|
} else {
|
||||||
this.fixedDepositsChargeForm.removeControl('dueDate');
|
this.fixedDepositsChargeForm.removeControl('dueDate');
|
||||||
}
|
}
|
||||||
if (!this.chargeDetails.dueDateNotRequired && this.chargeDetails.chargeTimeTypeAnnualOrMonth) {
|
if (!this.chargeDetails.dueDateNotRequired && this.chargeDetails.chargeTimeTypeAnnualOrMonth) {
|
||||||
this.fixedDepositsChargeForm.addControl('feeOnMonthDay', new FormControl('', Validators.required));
|
this.fixedDepositsChargeForm.addControl('feeOnMonthDay', new UntypedFormControl('', Validators.required));
|
||||||
} else {
|
} else {
|
||||||
this.fixedDepositsChargeForm.removeControl('feeOnMonthDay');
|
this.fixedDepositsChargeForm.removeControl('feeOnMonthDay');
|
||||||
}
|
}
|
||||||
if (chargeTimeType.value === 'Monthly Fee') {
|
if (chargeTimeType.value === 'Monthly Fee') {
|
||||||
this.fixedDepositsChargeForm.addControl('feeInterval', new FormControl(data.feeInterval, Validators.required));
|
this.fixedDepositsChargeForm.addControl('feeInterval', new UntypedFormControl(data.feeInterval, Validators.required));
|
||||||
} else {
|
} else {
|
||||||
this.fixedDepositsChargeForm.removeControl('feeInterval');
|
this.fixedDepositsChargeForm.removeControl('feeInterval');
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { Dates } from 'app/core/utils/dates';
|
import { Dates } from 'app/core/utils/dates';
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ export class ApproveFixedDepositsAccountComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Approve Fixed Deposits Account form. */
|
/** Approve Fixed Deposits Account form. */
|
||||||
approveFixedDepositsAccountForm: FormGroup;
|
approveFixedDepositsAccountForm: UntypedFormGroup;
|
||||||
/** Fixed Deposits Account Id */
|
/** Fixed Deposits Account Id */
|
||||||
accountId: any;
|
accountId: any;
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ export class ApproveFixedDepositsAccountComponent implements OnInit {
|
|||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
* @param {SettingsService} settingsService Settings Service
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private fixedDepositsService: FixedDepositsService,
|
private fixedDepositsService: FixedDepositsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
|
|||||||
+5
-5
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators, FormControl } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators, UntypedFormControl } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -23,7 +23,7 @@ export class CloseFixedDepositsAccountComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Close on maturity FD Account form. */
|
/** Close on maturity FD Account form. */
|
||||||
closeOnMaturityAccountForm: FormGroup;
|
closeOnMaturityAccountForm: UntypedFormGroup;
|
||||||
/** Savings Account Data */
|
/** Savings Account Data */
|
||||||
savingsAccountsData: any;
|
savingsAccountsData: any;
|
||||||
/** On account Closure Options */
|
/** On account Closure Options */
|
||||||
@@ -42,7 +42,7 @@ export class CloseFixedDepositsAccountComponent implements OnInit {
|
|||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
* @param {SettingsService} settingsService Settings Service
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private fixedDepositsService: FixedDepositsService,
|
private fixedDepositsService: FixedDepositsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
@@ -83,8 +83,8 @@ export class CloseFixedDepositsAccountComponent implements OnInit {
|
|||||||
addTransferDetails() {
|
addTransferDetails() {
|
||||||
this.closeOnMaturityAccountForm.get('onAccountClosureId').valueChanges.subscribe((id: any) => {
|
this.closeOnMaturityAccountForm.get('onAccountClosureId').valueChanges.subscribe((id: any) => {
|
||||||
if (id === 200) {
|
if (id === 200) {
|
||||||
this.closeOnMaturityAccountForm.addControl('toSavingsAccountId', new FormControl('', Validators.required));
|
this.closeOnMaturityAccountForm.addControl('toSavingsAccountId', new UntypedFormControl('', Validators.required));
|
||||||
this.closeOnMaturityAccountForm.addControl('transferDescription', new FormControl(''));
|
this.closeOnMaturityAccountForm.addControl('transferDescription', new UntypedFormControl(''));
|
||||||
} else {
|
} else {
|
||||||
this.closeOnMaturityAccountForm.removeControl('toSavingsAccountId');
|
this.closeOnMaturityAccountForm.removeControl('toSavingsAccountId');
|
||||||
this.closeOnMaturityAccountForm.removeControl('transferDescription');
|
this.closeOnMaturityAccountForm.removeControl('transferDescription');
|
||||||
|
|||||||
+8
-8
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators, FormControl } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators, UntypedFormControl } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -23,7 +23,7 @@ export class PrematureCloseFixedDepositsAccountComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Premature Close FD Account form. */
|
/** Premature Close FD Account form. */
|
||||||
prematureCloseAccountForm: FormGroup;
|
prematureCloseAccountForm: UntypedFormGroup;
|
||||||
/** Savings Account Data */
|
/** Savings Account Data */
|
||||||
savingsAccountsData: any;
|
savingsAccountsData: any;
|
||||||
/** On account Closure Options */
|
/** On account Closure Options */
|
||||||
@@ -42,7 +42,7 @@ export class PrematureCloseFixedDepositsAccountComponent implements OnInit {
|
|||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
* @param {SettingsService} settingsService Settings Service
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private fixedDepositsService: FixedDepositsService,
|
private fixedDepositsService: FixedDepositsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
@@ -96,9 +96,9 @@ export class PrematureCloseFixedDepositsAccountComponent implements OnInit {
|
|||||||
.subscribe((response: any) => {
|
.subscribe((response: any) => {
|
||||||
this.savingsAccountsData = response.savingsAccounts;
|
this.savingsAccountsData = response.savingsAccounts;
|
||||||
this.onAccountClosureOptions = response.onAccountClosureOptions;
|
this.onAccountClosureOptions = response.onAccountClosureOptions;
|
||||||
this.prematureCloseAccountForm.addControl('maturityAmount', new FormControl({ value: '', disabled: true }));
|
this.prematureCloseAccountForm.addControl('maturityAmount', new UntypedFormControl({ value: '', disabled: true }));
|
||||||
this.prematureCloseAccountForm.addControl('onAccountClosureId', new FormControl('', Validators.required));
|
this.prematureCloseAccountForm.addControl('onAccountClosureId', new UntypedFormControl('', Validators.required));
|
||||||
this.prematureCloseAccountForm.addControl('note', new FormControl(''));
|
this.prematureCloseAccountForm.addControl('note', new UntypedFormControl(''));
|
||||||
this.prematureCloseAccountForm.get('maturityAmount').patchValue(response.maturityAmount);
|
this.prematureCloseAccountForm.get('maturityAmount').patchValue(response.maturityAmount);
|
||||||
this.addTransferDetails();
|
this.addTransferDetails();
|
||||||
});
|
});
|
||||||
@@ -111,8 +111,8 @@ export class PrematureCloseFixedDepositsAccountComponent implements OnInit {
|
|||||||
addTransferDetails() {
|
addTransferDetails() {
|
||||||
this.prematureCloseAccountForm.get('onAccountClosureId').valueChanges.subscribe((id: any) => {
|
this.prematureCloseAccountForm.get('onAccountClosureId').valueChanges.subscribe((id: any) => {
|
||||||
if (id === 200) {
|
if (id === 200) {
|
||||||
this.prematureCloseAccountForm.addControl('toSavingsAccountId', new FormControl('', Validators.required));
|
this.prematureCloseAccountForm.addControl('toSavingsAccountId', new UntypedFormControl('', Validators.required));
|
||||||
this.prematureCloseAccountForm.addControl('transferDescription', new FormControl(''));
|
this.prematureCloseAccountForm.addControl('transferDescription', new UntypedFormControl(''));
|
||||||
} else {
|
} else {
|
||||||
this.prematureCloseAccountForm.removeControl('toSavingsAccountId');
|
this.prematureCloseAccountForm.removeControl('toSavingsAccountId');
|
||||||
this.prematureCloseAccountForm.removeControl('transferDescription');
|
this.prematureCloseAccountForm.removeControl('transferDescription');
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { Dates } from 'app/core/utils/dates';
|
import { Dates } from 'app/core/utils/dates';
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ export class RejectFixedDepositsAccountComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Reject Fixed Deposit Account form. */
|
/** Reject Fixed Deposit Account form. */
|
||||||
rejectFixedDepositsAccountForm: FormGroup;
|
rejectFixedDepositsAccountForm: UntypedFormGroup;
|
||||||
/** Fixed Deposits Account Id */
|
/** Fixed Deposits Account Id */
|
||||||
accountId: any;
|
accountId: any;
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ export class RejectFixedDepositsAccountComponent implements OnInit {
|
|||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
* @param {SettingsService} settingsService Settings Service
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private fixedDepositsService: FixedDepositsService,
|
private fixedDepositsService: FixedDepositsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -17,7 +17,7 @@ import { SavingsService } from 'app/savings/savings.service';
|
|||||||
export class UndoApprovalFixedDepositsAccountComponent implements OnInit {
|
export class UndoApprovalFixedDepositsAccountComponent implements OnInit {
|
||||||
|
|
||||||
/** Undo Approval Fixed Deposits Account form. */
|
/** Undo Approval Fixed Deposits Account form. */
|
||||||
undoApprovalFixedDepositsAccountForm: FormGroup;
|
undoApprovalFixedDepositsAccountForm: UntypedFormGroup;
|
||||||
/** Fixed Deposits Account Id */
|
/** Fixed Deposits Account Id */
|
||||||
accountId: any;
|
accountId: any;
|
||||||
|
|
||||||
@@ -28,7 +28,7 @@ export class UndoApprovalFixedDepositsAccountComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route
|
* @param {ActivatedRoute} route Activated Route
|
||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private savingsService: SavingsService,
|
private savingsService: SavingsService,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router) {
|
private router: Router) {
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { Dates } from 'app/core/utils/dates';
|
import { Dates } from 'app/core/utils/dates';
|
||||||
|
|
||||||
@@ -23,7 +23,7 @@ export class WithdrawByClientFixedDepositsAccountComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Withdraw Fixed Deposits Account form. */
|
/** Withdraw Fixed Deposits Account form. */
|
||||||
withdrawFixedDepositsAccountForm: FormGroup;
|
withdrawFixedDepositsAccountForm: UntypedFormGroup;
|
||||||
/** Fixed Deposits Account Id */
|
/** Fixed Deposits Account Id */
|
||||||
accountId: any;
|
accountId: any;
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ export class WithdrawByClientFixedDepositsAccountComponent implements OnInit {
|
|||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
* @param {SettingsService} settingsService Settings Service
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private fixedDepositsService: FixedDepositsService,
|
private fixedDepositsService: FixedDepositsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -23,7 +23,7 @@ export class ActivateRecurringDepositsAccountComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Activate Recurring Deposits Account form. */
|
/** Activate Recurring Deposits Account form. */
|
||||||
activateRecurringDepositsAccountForm: FormGroup;
|
activateRecurringDepositsAccountForm: UntypedFormGroup;
|
||||||
/** Recurring Deposits Account Id */
|
/** Recurring Deposits Account Id */
|
||||||
accountId: any;
|
accountId: any;
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ export class ActivateRecurringDepositsAccountComponent implements OnInit {
|
|||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
* @param {SavingsService} savingsService Savings Service
|
* @param {SavingsService} savingsService Savings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private recurringDepositsService: RecurringDepositsService,
|
private recurringDepositsService: RecurringDepositsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
|
|||||||
+6
-6
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators, FormControl } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators, UntypedFormControl } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
import { Dates } from 'app/core/utils/dates';
|
import { Dates } from 'app/core/utils/dates';
|
||||||
|
|
||||||
@@ -24,7 +24,7 @@ export class AddChargeRecurringDepositsAccountComponent implements OnInit {
|
|||||||
/** Maximum Due Date allowed. */
|
/** Maximum Due Date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Add Recurring Deposits Charge form. */
|
/** Add Recurring Deposits Charge form. */
|
||||||
recurringDepositsChargeForm: FormGroup;
|
recurringDepositsChargeForm: UntypedFormGroup;
|
||||||
/** savings charge options. */
|
/** savings charge options. */
|
||||||
savingsChargeOptions: any;
|
savingsChargeOptions: any;
|
||||||
/** savings Id of the savings account. */
|
/** savings Id of the savings account. */
|
||||||
@@ -41,7 +41,7 @@ export class AddChargeRecurringDepositsAccountComponent implements OnInit {
|
|||||||
* @param {SavingsService} savingsService Savings Service
|
* @param {SavingsService} savingsService Savings Service
|
||||||
*/
|
*/
|
||||||
constructor(
|
constructor(
|
||||||
private formBuilder: FormBuilder,
|
private formBuilder: UntypedFormBuilder,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
@@ -75,17 +75,17 @@ export class AddChargeRecurringDepositsAccountComponent implements OnInit {
|
|||||||
this.chargeDetails.chargeTimeTypeAnnualOrMonth = true;
|
this.chargeDetails.chargeTimeTypeAnnualOrMonth = true;
|
||||||
}
|
}
|
||||||
if (!this.chargeDetails.dueDateNotRequired && !this.chargeDetails.chargeTimeTypeAnnualOrMonth) {
|
if (!this.chargeDetails.dueDateNotRequired && !this.chargeDetails.chargeTimeTypeAnnualOrMonth) {
|
||||||
this.recurringDepositsChargeForm.addControl('dueDate', new FormControl('', Validators.required));
|
this.recurringDepositsChargeForm.addControl('dueDate', new UntypedFormControl('', Validators.required));
|
||||||
} else {
|
} else {
|
||||||
this.recurringDepositsChargeForm.removeControl('dueDate');
|
this.recurringDepositsChargeForm.removeControl('dueDate');
|
||||||
}
|
}
|
||||||
if (!this.chargeDetails.dueDateNotRequired && this.chargeDetails.chargeTimeTypeAnnualOrMonth) {
|
if (!this.chargeDetails.dueDateNotRequired && this.chargeDetails.chargeTimeTypeAnnualOrMonth) {
|
||||||
this.recurringDepositsChargeForm.addControl('feeOnMonthDay', new FormControl('', Validators.required));
|
this.recurringDepositsChargeForm.addControl('feeOnMonthDay', new UntypedFormControl('', Validators.required));
|
||||||
} else {
|
} else {
|
||||||
this.recurringDepositsChargeForm.removeControl('feeOnMonthDay');
|
this.recurringDepositsChargeForm.removeControl('feeOnMonthDay');
|
||||||
}
|
}
|
||||||
if (chargeTimeType.value === 'Monthly Fee') {
|
if (chargeTimeType.value === 'Monthly Fee') {
|
||||||
this.recurringDepositsChargeForm.addControl('feeInterval', new FormControl(data.feeInterval, Validators.required));
|
this.recurringDepositsChargeForm.addControl('feeInterval', new UntypedFormControl(data.feeInterval, Validators.required));
|
||||||
} else {
|
} else {
|
||||||
this.recurringDepositsChargeForm.removeControl('feeInterval');
|
this.recurringDepositsChargeForm.removeControl('feeInterval');
|
||||||
}
|
}
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -23,7 +23,7 @@ export class ApproveRecurringDepositsAccountComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Approve Recurring Deposits Account form. */
|
/** Approve Recurring Deposits Account form. */
|
||||||
approveRecurringDepositsAccountForm: FormGroup;
|
approveRecurringDepositsAccountForm: UntypedFormGroup;
|
||||||
/** Recurring Deposits Account Id */
|
/** Recurring Deposits Account Id */
|
||||||
accountId: any;
|
accountId: any;
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ export class ApproveRecurringDepositsAccountComponent implements OnInit {
|
|||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
* @param {SettingsService} settingsService Settings Service
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private recurringDepositsService: RecurringDepositsService,
|
private recurringDepositsService: RecurringDepositsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -35,7 +35,7 @@ export class CloseRecurringDepositsAccountComponent implements OnInit {
|
|||||||
/** Maximum Date allowed. */
|
/** Maximum Date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Close Recurring Deposit Account form. */
|
/** Close Recurring Deposit Account form. */
|
||||||
closeRecurringDepositForm: FormGroup;
|
closeRecurringDepositForm: UntypedFormGroup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves action details template data from `resolve`
|
* Retrieves action details template data from `resolve`
|
||||||
@@ -46,7 +46,7 @@ export class CloseRecurringDepositsAccountComponent implements OnInit {
|
|||||||
* @param {SettingsService} settingsService Settings Service
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(
|
constructor(
|
||||||
private formBuilder: FormBuilder,
|
private formBuilder: UntypedFormBuilder,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -33,7 +33,7 @@ export class DepositRecurringDepositsAccountComponent implements OnInit {
|
|||||||
/** Maximum Date allowed. */
|
/** Maximum Date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Deposits Recurring Deposit Account form. */
|
/** Deposits Recurring Deposit Account form. */
|
||||||
depositRecurringDepositForm: FormGroup;
|
depositRecurringDepositForm: UntypedFormGroup;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves action details transactions template data from `resolve`
|
* Retrieves action details transactions template data from `resolve`
|
||||||
@@ -44,7 +44,7 @@ export class DepositRecurringDepositsAccountComponent implements OnInit {
|
|||||||
* @param {SettingsService} settingsService Settings Service
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(
|
constructor(
|
||||||
private formBuilder: FormBuilder,
|
private formBuilder: UntypedFormBuilder,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -24,7 +24,7 @@ export class PrematureCloseRecurringDepositAccountComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** premature close Recurring Deposits Account form. */
|
/** premature close Recurring Deposits Account form. */
|
||||||
prematureCloseRecurringDepositsAccountForm: FormGroup;
|
prematureCloseRecurringDepositsAccountForm: UntypedFormGroup;
|
||||||
/** Recurring Deposits Account Id */
|
/** Recurring Deposits Account Id */
|
||||||
accountId: any;
|
accountId: any;
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ export class PrematureCloseRecurringDepositAccountComponent implements OnInit {
|
|||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
* @param {SettingsService} settingsService Settings Service
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private recurringDepositsService: RecurringDepositsService,
|
private recurringDepositsService: RecurringDepositsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -24,7 +24,7 @@ export class RejectRecurringDepositsAccountComponent implements OnInit {
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Reject Recurring Deposits Account form. */
|
/** Reject Recurring Deposits Account form. */
|
||||||
rejectRecurringDepositsAccountForm: FormGroup;
|
rejectRecurringDepositsAccountForm: UntypedFormGroup;
|
||||||
/** Recurring Deposits Account Id */
|
/** Recurring Deposits Account Id */
|
||||||
accountId: any;
|
accountId: any;
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ export class RejectRecurringDepositsAccountComponent implements OnInit {
|
|||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
* @param {SettingsService} settingsService Settings Service
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private recurringDepositsService: RecurringDepositsService,
|
private recurringDepositsService: RecurringDepositsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -17,7 +17,7 @@ import { RecurringDepositsService } from '../../recurring-deposits.service';
|
|||||||
export class UndoApprovalRecurringDepositsAccountComponent implements OnInit {
|
export class UndoApprovalRecurringDepositsAccountComponent implements OnInit {
|
||||||
|
|
||||||
/** Undo Approval Recurring Deposits Account form. */
|
/** Undo Approval Recurring Deposits Account form. */
|
||||||
undoApprovalRecurringDepositsAccountForm: FormGroup;
|
undoApprovalRecurringDepositsAccountForm: UntypedFormGroup;
|
||||||
/** Recurring Deposits Account Id */
|
/** Recurring Deposits Account Id */
|
||||||
accountId: any;
|
accountId: any;
|
||||||
|
|
||||||
@@ -27,7 +27,7 @@ export class UndoApprovalRecurringDepositsAccountComponent implements OnInit {
|
|||||||
* @param {ActivatedRoute} route Activated Route
|
* @param {ActivatedRoute} route Activated Route
|
||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private recurringDepositsService: RecurringDepositsService,
|
private recurringDepositsService: RecurringDepositsService,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
private router: Router) {
|
private router: Router) {
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { Dates } from 'app/core/utils/dates';
|
import { Dates } from 'app/core/utils/dates';
|
||||||
|
|
||||||
@@ -22,7 +22,7 @@ export class WithdrawByClientRecurringDepositsAccountComponent implements OnInit
|
|||||||
/** Maximum date allowed. */
|
/** Maximum date allowed. */
|
||||||
maxDate = new Date();
|
maxDate = new Date();
|
||||||
/** Withdraw Recurring Deposits Account form. */
|
/** Withdraw Recurring Deposits Account form. */
|
||||||
withdrawRecurringDepositsAccountForm: FormGroup;
|
withdrawRecurringDepositsAccountForm: UntypedFormGroup;
|
||||||
/** Recurring Deposits Account Id */
|
/** Recurring Deposits Account Id */
|
||||||
accountId: any;
|
accountId: any;
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ export class WithdrawByClientRecurringDepositsAccountComponent implements OnInit
|
|||||||
* @param {Router} router Router
|
* @param {Router} router Router
|
||||||
* @param {SettingsService} settingsService Settings Service
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private recurringDepositsService: RecurringDepositsService,
|
private recurringDepositsService: RecurringDepositsService,
|
||||||
private dateUtils: Dates,
|
private dateUtils: Dates,
|
||||||
private route: ActivatedRoute,
|
private route: ActivatedRoute,
|
||||||
|
|||||||
+2
-2
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
||||||
import { FormControl } from '@angular/forms';
|
import { UntypedFormControl } from '@angular/forms';
|
||||||
import { MatDialog } from '@angular/material/dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
|
|
||||||
/** Dialog Components */
|
/** Dialog Components */
|
||||||
@@ -26,7 +26,7 @@ export class RecurringDepositsAccountChargesStepComponent implements OnInit, OnC
|
|||||||
|
|
||||||
@Input() recurringDepositsAccountTemplate: any;
|
@Input() recurringDepositsAccountTemplate: any;
|
||||||
@Input() recurringDepositsAccountProductTemplate: any;
|
@Input() recurringDepositsAccountProductTemplate: any;
|
||||||
@Input() currencyCode: FormControl;
|
@Input() currencyCode: UntypedFormControl;
|
||||||
@Input() recurringDepositAccountFormValid: boolean;
|
@Input() recurringDepositAccountFormValid: boolean;
|
||||||
|
|
||||||
/** Charges Data */
|
/** Charges Data */
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
import { Component, OnInit, Input, OnChanges } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Recurring Deposit Account Currency Step
|
* Recurring Deposit Account Currency Step
|
||||||
@@ -17,11 +17,11 @@ export class RecurringDepositsAccountCurrencyStepComponent implements OnInit, On
|
|||||||
@Input() recurringDepositsAccountProductTemplate: any;
|
@Input() recurringDepositsAccountProductTemplate: any;
|
||||||
|
|
||||||
/** Recurring Deposit Account Currency Form */
|
/** Recurring Deposit Account Currency Form */
|
||||||
recurringDepositAccountCurrencyForm: FormGroup;
|
recurringDepositAccountCurrencyForm: UntypedFormGroup;
|
||||||
/** Currency Data */
|
/** Currency Data */
|
||||||
currencyData: any;
|
currencyData: any;
|
||||||
|
|
||||||
constructor(private formBuilder: FormBuilder) {
|
constructor(private formBuilder: UntypedFormBuilder) {
|
||||||
this.createRecurringDepositAccountCurrencyForm();
|
this.createRecurringDepositAccountCurrencyForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+3
-3
@@ -1,6 +1,6 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
import { Component, OnInit, Input, Output, EventEmitter } from '@angular/core';
|
||||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators } from '@angular/forms';
|
||||||
import { SettingsService } from 'app/settings/settings.service';
|
import { SettingsService } from 'app/settings/settings.service';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -30,7 +30,7 @@ export class RecurringDepositsAccountDetailsStepComponent implements OnInit {
|
|||||||
/** For edit recurring deposits form */
|
/** For edit recurring deposits form */
|
||||||
isFieldOfficerPatched = false;
|
isFieldOfficerPatched = false;
|
||||||
/** Recurring Deposits Account Details Form */
|
/** Recurring Deposits Account Details Form */
|
||||||
recurringDepositAccountDetailsForm: FormGroup;
|
recurringDepositAccountDetailsForm: UntypedFormGroup;
|
||||||
|
|
||||||
/** Recurring Deposits Account Template with product data */
|
/** Recurring Deposits Account Template with product data */
|
||||||
@Output() recurringDepositsAccountProductTemplate = new EventEmitter();
|
@Output() recurringDepositsAccountProductTemplate = new EventEmitter();
|
||||||
@@ -41,7 +41,7 @@ export class RecurringDepositsAccountDetailsStepComponent implements OnInit {
|
|||||||
* @param {RecurringDepositsService} recurringDepositsService Recurring Deposits Service.
|
* @param {RecurringDepositsService} recurringDepositsService Recurring Deposits Service.
|
||||||
* @param {SettingsService} settingsService Settings Service
|
* @param {SettingsService} settingsService Settings Service
|
||||||
*/
|
*/
|
||||||
constructor(private formBuilder: FormBuilder,
|
constructor(private formBuilder: UntypedFormBuilder,
|
||||||
private recurringDepositsService: RecurringDepositsService,
|
private recurringDepositsService: RecurringDepositsService,
|
||||||
private settingsService: SettingsService) {
|
private settingsService: SettingsService) {
|
||||||
this.createRecurringDepositsAccountDetailsForm();
|
this.createRecurringDepositsAccountDetailsForm();
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user