build: Replace Codelyzer and TSLint with Angular ESLint
Migrate from the deprecated TSLint to Angluar ESLint. Also fix current linting issues in the code, in particular: - Use strict equals operators (=== and !==) - Remove empty lifecycle methods (mostly ngOnInit) - Output bindings including aliases should not be named as standard dom events (submit) - Async pipe results should not be negated
This commit is contained in:
@@ -0,0 +1,51 @@
|
|||||||
|
{
|
||||||
|
"root": true,
|
||||||
|
"ignorePatterns": [
|
||||||
|
"projects/**/*"
|
||||||
|
],
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"*.ts"
|
||||||
|
],
|
||||||
|
"parserOptions": {
|
||||||
|
"project": [
|
||||||
|
"tsconfig.json",
|
||||||
|
"e2e/tsconfig.json"
|
||||||
|
],
|
||||||
|
"createDefaultProgram": true
|
||||||
|
},
|
||||||
|
"extends": [
|
||||||
|
"plugin:@angular-eslint/recommended",
|
||||||
|
"plugin:@angular-eslint/template/process-inline-templates"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
"@angular-eslint/component-selector": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"prefix": "mifosx",
|
||||||
|
"style": "kebab-case",
|
||||||
|
"type": "element"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"@angular-eslint/directive-selector": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"prefix": "mifosx",
|
||||||
|
"style": "camelCase",
|
||||||
|
"type": "attribute"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"*.html"
|
||||||
|
],
|
||||||
|
"extends": [
|
||||||
|
"plugin:@angular-eslint/template/recommended"
|
||||||
|
],
|
||||||
|
"rules": {}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
@@ -34,8 +34,8 @@ jobs:
|
|||||||
- name: Npm install
|
- name: Npm install
|
||||||
run: npm install
|
run: npm install
|
||||||
|
|
||||||
- name: Run tslint
|
- name: Run eslint
|
||||||
run : npx tslint src/**/*.ts
|
run : npx ng lint
|
||||||
|
|
||||||
- name: Run build
|
- name: Run build
|
||||||
run : npm run build:prod
|
run : npm run build:prod
|
||||||
|
|||||||
+12
-15
@@ -135,15 +135,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"builder": "@angular-devkit/build-angular:tslint",
|
"builder": "@angular-eslint/builder:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"tsConfig": [
|
"lintFilePatterns": [
|
||||||
"src/tsconfig.app.json",
|
"src/**/*.ts",
|
||||||
"src/tsconfig.spec.json",
|
"src/**/*.html"
|
||||||
"cypress/tsconfig.json"
|
|
||||||
],
|
|
||||||
"exclude": [
|
|
||||||
"**/node_modules/**"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -198,13 +194,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"lint": {
|
"lint": {
|
||||||
"builder": "@angular-devkit/build-angular:tslint",
|
"builder": "@angular-eslint/builder:lint",
|
||||||
"options": {
|
"options": {
|
||||||
"tsConfig": [
|
"lintFilePatterns": [
|
||||||
"e2e/cypress/tsconfig.json"
|
"e2e/**/*.ts",
|
||||||
],
|
"e2e/**/*.html"
|
||||||
"exclude": [
|
|
||||||
"**/node_modules/**"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -232,6 +226,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"cli": {
|
"cli": {
|
||||||
"analytics": false
|
"analytics": false,
|
||||||
|
"schematicCollections": [
|
||||||
|
"@angular-eslint/schematics"
|
||||||
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -54,8 +54,7 @@ To manage type definitions, use standard `npm install|update|remove` commands.
|
|||||||
|
|
||||||
## Enforcement
|
## Enforcement
|
||||||
|
|
||||||
Coding rules are enforced in this project via [TSLint](https://github.com/palantir/tslint).
|
Coding rules are enforced in this project via [Angular ESLint](https://github.com/angular-eslint/angular-eslint).
|
||||||
Angular-specific rules are also enforced via the [Codelyzer](https://github.com/mgechev/codelyzer) rule extensions.
|
|
||||||
|
|
||||||
## Learn more
|
## Learn more
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,43 @@
|
|||||||
|
{
|
||||||
|
"extends": "../.eslintrc.json",
|
||||||
|
"ignorePatterns": [
|
||||||
|
"!**/*"
|
||||||
|
],
|
||||||
|
"overrides": [
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"*.ts"
|
||||||
|
],
|
||||||
|
"parserOptions": {
|
||||||
|
"project": [
|
||||||
|
"e2e/tsconfig.app.json",
|
||||||
|
"e2e/tsconfig.spec.json",
|
||||||
|
"e2e/e2e/tsconfig.json"
|
||||||
|
],
|
||||||
|
"createDefaultProgram": true
|
||||||
|
},
|
||||||
|
"rules": {
|
||||||
|
"@angular-eslint/directive-selector": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"type": "attribute",
|
||||||
|
"style": "camelCase"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"@angular-eslint/component-selector": [
|
||||||
|
"error",
|
||||||
|
{
|
||||||
|
"type": "element",
|
||||||
|
"style": "kebab-case"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"files": [
|
||||||
|
"*.html"
|
||||||
|
],
|
||||||
|
"rules": {}
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
Generated
+1704
-278
File diff suppressed because it is too large
Load Diff
+8
-2
@@ -70,6 +70,11 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@angular-devkit/build-angular": "14.2.12",
|
"@angular-devkit/build-angular": "14.2.12",
|
||||||
|
"@angular-eslint/builder": "14.4.0",
|
||||||
|
"@angular-eslint/eslint-plugin": "14.4.0",
|
||||||
|
"@angular-eslint/eslint-plugin-template": "14.4.0",
|
||||||
|
"@angular-eslint/schematics": "14.4.0",
|
||||||
|
"@angular-eslint/template-parser": "14.4.0",
|
||||||
"@angular/cli": "14.2.12",
|
"@angular/cli": "14.2.12",
|
||||||
"@angular/compiler-cli": "14.3.0",
|
"@angular/compiler-cli": "14.3.0",
|
||||||
"@angular/language-service": "14.3.0",
|
"@angular/language-service": "14.3.0",
|
||||||
@@ -85,8 +90,10 @@
|
|||||||
"@types/lodash": "4.14.132",
|
"@types/lodash": "4.14.132",
|
||||||
"@types/node": "12.11.1",
|
"@types/node": "12.11.1",
|
||||||
"@types/vkbeautify": "^0.99.2",
|
"@types/vkbeautify": "^0.99.2",
|
||||||
"codelyzer": "6.0.0",
|
"@typescript-eslint/eslint-plugin": "5.43.0",
|
||||||
|
"@typescript-eslint/parser": "5.43.0",
|
||||||
"cypress": "^10.7.0",
|
"cypress": "^10.7.0",
|
||||||
|
"eslint": "^8.28.0",
|
||||||
"git-describe": "^4.1.1",
|
"git-describe": "^4.1.1",
|
||||||
"hads": "^3.0.3",
|
"hads": "^3.0.3",
|
||||||
"htmlhint": "1.1.4",
|
"htmlhint": "1.1.4",
|
||||||
@@ -110,7 +117,6 @@
|
|||||||
"stylelint-scss": "3.6.1",
|
"stylelint-scss": "3.6.1",
|
||||||
"tailwindcss": "^3.3.3",
|
"tailwindcss": "^3.3.3",
|
||||||
"ts-node": "8.2.0",
|
"ts-node": "8.2.0",
|
||||||
"tslint": "~6.1.0",
|
|
||||||
"typescript": "4.6.4"
|
"typescript": "4.6.4"
|
||||||
},
|
},
|
||||||
"repository": {
|
"repository": {
|
||||||
|
|||||||
+2
-5
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
import { Component, ViewChild } from '@angular/core';
|
||||||
import { MatDialog } from '@angular/material/dialog';
|
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';
|
||||||
@@ -21,7 +21,7 @@ import { SettingsService } from 'app/settings/settings.service';
|
|||||||
templateUrl: './list-standing-instructions.component.html',
|
templateUrl: './list-standing-instructions.component.html',
|
||||||
styleUrls: ['./list-standing-instructions.component.scss']
|
styleUrls: ['./list-standing-instructions.component.scss']
|
||||||
})
|
})
|
||||||
export class ListStandingInstructionsComponent implements OnInit {
|
export class ListStandingInstructionsComponent {
|
||||||
|
|
||||||
/** Recurring Deposits Data */
|
/** Recurring Deposits Data */
|
||||||
standingIntructionsTemplateData: any;
|
standingIntructionsTemplateData: any;
|
||||||
@@ -80,9 +80,6 @@ export class ListStandingInstructionsComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
setParams() {
|
setParams() {
|
||||||
this.accountType = this.route.snapshot.queryParams['accountType'];
|
this.accountType = this.route.snapshot.queryParams['accountType'];
|
||||||
switch (this.accountType) {
|
switch (this.accountType) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { MatDialog } from '@angular/material/dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ import { DeleteDialogComponent } from '../../../shared/delete-dialog/delete-dial
|
|||||||
templateUrl: './view-rule.component.html',
|
templateUrl: './view-rule.component.html',
|
||||||
styleUrls: ['./view-rule.component.scss']
|
styleUrls: ['./view-rule.component.scss']
|
||||||
})
|
})
|
||||||
export class ViewRuleComponent implements OnInit {
|
export class ViewRuleComponent {
|
||||||
|
|
||||||
/** Accounting rule. */
|
/** Accounting rule. */
|
||||||
accountingRule: any;
|
accountingRule: any;
|
||||||
@@ -38,9 +38,6 @@ export class ViewRuleComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes the accounting rule and redirects to accounting rules.
|
* Deletes the accounting rule and redirects to accounting rules.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { AfterViewInit, Component, ElementRef, OnInit, TemplateRef, ViewChild } from '@angular/core';
|
import { AfterViewInit, Component, ElementRef, TemplateRef, ViewChild } from '@angular/core';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -14,7 +14,7 @@ import { PopoverService } from '../configuration-wizard/popover/popover.service'
|
|||||||
templateUrl: './accounting.component.html',
|
templateUrl: './accounting.component.html',
|
||||||
styleUrls: ['./accounting.component.scss']
|
styleUrls: ['./accounting.component.scss']
|
||||||
})
|
})
|
||||||
export class AccountingComponent implements OnInit, AfterViewInit {
|
export class AccountingComponent implements AfterViewInit {
|
||||||
|
|
||||||
/* Reference of Chart of Accounts */
|
/* Reference of Chart of Accounts */
|
||||||
@ViewChild('chartofAccounts') chartofAccounts: ElementRef<any>;
|
@ViewChild('chartofAccounts') chartofAccounts: ElementRef<any>;
|
||||||
@@ -48,9 +48,6 @@ export class AccountingComponent implements OnInit, AfterViewInit {
|
|||||||
private configurationWizardService: ConfigurationWizardService,
|
private configurationWizardService: ConfigurationWizardService,
|
||||||
private popoverService: PopoverService) { }
|
private popoverService: PopoverService) { }
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Popover function
|
* Popover function
|
||||||
* @param template TemplateRef<any>.
|
* @param template TemplateRef<any>.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { MatDialog } from '@angular/material/dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ import { Location } from '@angular/common';
|
|||||||
templateUrl: './view-gl-account.component.html',
|
templateUrl: './view-gl-account.component.html',
|
||||||
styleUrls: ['./view-gl-account.component.scss']
|
styleUrls: ['./view-gl-account.component.scss']
|
||||||
})
|
})
|
||||||
export class ViewGlAccountComponent implements OnInit {
|
export class ViewGlAccountComponent {
|
||||||
|
|
||||||
/** GL Account. */
|
/** GL Account. */
|
||||||
glAccount: any;
|
glAccount: any;
|
||||||
@@ -40,9 +40,6 @@ export class ViewGlAccountComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes the gl account and redirects to chart of accounts.
|
* Deletes the gl account and redirects to chart of accounts.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { MatDialog } from '@angular/material/dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ import { DeleteDialogComponent } from '../../../shared/delete-dialog/delete-dial
|
|||||||
templateUrl: './view-closure.component.html',
|
templateUrl: './view-closure.component.html',
|
||||||
styleUrls: ['./view-closure.component.scss']
|
styleUrls: ['./view-closure.component.scss']
|
||||||
})
|
})
|
||||||
export class ViewClosureComponent implements OnInit {
|
export class ViewClosureComponent {
|
||||||
|
|
||||||
/** GL Account closure. */
|
/** GL Account closure. */
|
||||||
glAccountClosure: any;
|
glAccountClosure: any;
|
||||||
@@ -38,9 +38,6 @@ export class ViewClosureComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes the gl account closure and redirects to closing entries.
|
* Deletes the gl account closure and redirects to closing entries.
|
||||||
*/
|
*/
|
||||||
|
|||||||
+2
-5
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { MatDialog } from '@angular/material/dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ import { Location } from '@angular/common';
|
|||||||
templateUrl: './view-financial-activity-mapping.component.html',
|
templateUrl: './view-financial-activity-mapping.component.html',
|
||||||
styleUrls: ['./view-financial-activity-mapping.component.scss']
|
styleUrls: ['./view-financial-activity-mapping.component.scss']
|
||||||
})
|
})
|
||||||
export class ViewFinancialActivityMappingComponent implements OnInit {
|
export class ViewFinancialActivityMappingComponent {
|
||||||
|
|
||||||
/** Financial activity account ID. */
|
/** Financial activity account ID. */
|
||||||
financialActivityAccountId: any;
|
financialActivityAccountId: any;
|
||||||
@@ -43,9 +43,6 @@ export class ViewFinancialActivityMappingComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes the financial activity account and redirects to financial activity mappings.
|
* Deletes the financial activity account and redirects to financial activity mappings.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Inject } from '@angular/core';
|
import { Component, Inject } from '@angular/core';
|
||||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
import { UntypedFormControl } from '@angular/forms';
|
import { UntypedFormControl } from '@angular/forms';
|
||||||
|
|
||||||
@@ -11,7 +11,7 @@ import { UntypedFormControl } from '@angular/forms';
|
|||||||
templateUrl: './revert-transaction.component.html',
|
templateUrl: './revert-transaction.component.html',
|
||||||
styleUrls: ['./revert-transaction.component.scss']
|
styleUrls: ['./revert-transaction.component.scss']
|
||||||
})
|
})
|
||||||
export class RevertTransactionComponent implements OnInit {
|
export class RevertTransactionComponent {
|
||||||
|
|
||||||
/** Comments input form control. */
|
/** Comments input form control. */
|
||||||
comments = new UntypedFormControl('');
|
comments = new UntypedFormControl('');
|
||||||
@@ -23,7 +23,4 @@ export class RevertTransactionComponent implements OnInit {
|
|||||||
constructor(public dialogRef: MatDialogRef<RevertTransactionComponent>,
|
constructor(public dialogRef: MatDialogRef<RevertTransactionComponent>,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,7 +65,7 @@
|
|||||||
|
|
||||||
<mat-menu #centerMenu="matMenu">
|
<mat-menu #centerMenu="matMenu">
|
||||||
|
|
||||||
<span *ngIf="!(centerViewData.status.value=='Active')">
|
<span *ngIf="!(centerViewData.status.value==='Active')">
|
||||||
<button mat-menu-item *mifosxHasPermission="'ACTIVATE_CENTER'" (click)="doAction('Activate')"><i
|
<button mat-menu-item *mifosxHasPermission="'ACTIVATE_CENTER'" (click)="doAction('Activate')"><i
|
||||||
class="fa fa-check-sign"></i> {{"labels.buttons.Activate" | translate}} </button>
|
class="fa fa-check-sign"></i> {{"labels.buttons.Activate" | translate}} </button>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<div class="tab-container mat-typography">
|
<div class="tab-container mat-typography">
|
||||||
<div *ngIf="centerViewData.status.value=='Closed'">
|
<div *ngIf="centerViewData.status.value==='Closed'">
|
||||||
<h3 class="closedCenter">{{"labels.heading.Center Closed" | translate}}</h3>
|
<h3 class="closedCenter">{{"labels.heading.Center Closed" | translate}}</h3>
|
||||||
</div>
|
</div>
|
||||||
<h3>{{"labels.heading.Summary Details" | translate}}</h3>
|
<h3>{{"labels.heading.Summary Details" | translate}}</h3>
|
||||||
@@ -83,19 +83,19 @@
|
|||||||
<th mat-header-cell *matHeaderCellDef> {{"labels.inputs.Actions" | translate}} </th>
|
<th mat-header-cell *matHeaderCellDef> {{"labels.inputs.Actions" | translate}} </th>
|
||||||
<td mat-cell *matCellDef="let element">
|
<td mat-cell *matCellDef="let element">
|
||||||
<ng-container *ngIf="element.status.active">
|
<ng-container *ngIf="element.status.active">
|
||||||
<button class="account-action-button" mat-raised-button color="primary" *ngIf="element.depositType.id == '100'"
|
<button class="account-action-button" mat-raised-button color="primary" *ngIf="element.depositType.id === 100"
|
||||||
(click)="routeEdit($event)" [routerLink]="['../','savings-accounts', element.id, 'actions', 'Deposit']">
|
(click)="routeEdit($event)" [routerLink]="['../','savings-accounts', element.id, 'actions', 'Deposit']">
|
||||||
<i class="fa fa-arrow-right" matTooltip="{{ 'tooltips.Deposit' | translate}}"></i>
|
<i class="fa fa-arrow-right" matTooltip="{{ 'tooltips.Deposit' | translate}}"></i>
|
||||||
</button>
|
</button>
|
||||||
<button class="account-action-button" mat-raised-button color="primary" *ngIf="element.depositType.id == '300'"
|
<button class="account-action-button" mat-raised-button color="primary" *ngIf="element.depositType.id === 300"
|
||||||
(click)="routeEdit($event)" [routerLink]="['../','savings-accounts', element.id, 'actions', 'Deposit']">
|
(click)="routeEdit($event)" [routerLink]="['../','savings-accounts', element.id, 'actions', 'Deposit']">
|
||||||
<i class="fa fa-arrow-right" matTooltip="{{ 'tooltips.Deposit' | translate}}"></i>
|
<i class="fa fa-arrow-right" matTooltip="{{ 'tooltips.Deposit' | translate}}"></i>
|
||||||
</button>
|
</button>
|
||||||
<button class="account-action-button" mat-raised-button color="primary" *ngIf="element.depositType.id == '100'"
|
<button class="account-action-button" mat-raised-button color="primary" *ngIf="element.depositType.id === 100"
|
||||||
(click)="routeEdit($event)" [routerLink]="['../','savings-accounts', element.id, 'actions', 'Withdrawal']">
|
(click)="routeEdit($event)" [routerLink]="['../','savings-accounts', element.id, 'actions', 'Withdrawal']">
|
||||||
<i class="fa fa-arrow-left" matTooltip="{{ 'tooltips.Withdraw' | translate}}"></i>
|
<i class="fa fa-arrow-left" matTooltip="{{ 'tooltips.Withdraw' | translate}}"></i>
|
||||||
</button>
|
</button>
|
||||||
<button class="account-action-button" mat-raised-button color="primary" *ngIf="element.depositType.id == '300'"
|
<button class="account-action-button" mat-raised-button color="primary" *ngIf="element.depositType.id === 300"
|
||||||
(click)="routeEdit($event)" [routerLink]="['../','savings-accounts', element.id, 'actions', 'Withdrawal']">
|
(click)="routeEdit($event)" [routerLink]="['../','savings-accounts', element.id, 'actions', 'Withdrawal']">
|
||||||
<i class="fa fa-arrow-left" matTooltip="{{ 'tooltips.Withdraw' | translate}}"></i>
|
<i class="fa fa-arrow-left" matTooltip="{{ 'tooltips.Withdraw' | translate}}"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -10,7 +10,7 @@ import { ActivatedRoute } from '@angular/router';
|
|||||||
templateUrl: './general-tab.component.html',
|
templateUrl: './general-tab.component.html',
|
||||||
styleUrls: ['./general-tab.component.scss']
|
styleUrls: ['./general-tab.component.scss']
|
||||||
})
|
})
|
||||||
export class GeneralTabComponent implements OnInit {
|
export class GeneralTabComponent {
|
||||||
|
|
||||||
/** Savings Account Table Columns */
|
/** Savings Account Table Columns */
|
||||||
savingsAccountColumns: string[] = ['Account No', 'Products', 'Balance', 'Actions'];
|
savingsAccountColumns: string[] = ['Account No', 'Products', 'Balance', 'Actions'];
|
||||||
@@ -42,10 +42,6 @@ export class GeneralTabComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Stops the propagation to view pages.
|
* Stops the propagation to view pages.
|
||||||
* @param $event Mouse Event
|
* @param $event Mouse Event
|
||||||
|
|||||||
@@ -33,7 +33,7 @@
|
|||||||
<input matInput formControlName="externalId">
|
<input matInput formControlName="externalId">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<ng-container *ngIf="centerData.status.value=='Pending'" (click)="activatedOnDatePicker.open()">
|
<ng-container *ngIf="centerData.status.value==='Pending'" (click)="activatedOnDatePicker.open()">
|
||||||
<mat-form-field>
|
<mat-form-field>
|
||||||
<mat-label>{{"labels.inputs.Activation Date" | translate}}</mat-label>
|
<mat-label>{{"labels.inputs.Activation Date" | translate}}</mat-label>
|
||||||
<input matInput [min]="minDate" [max]="maxDate" [matDatepicker]="activatedOnDatePicker" required
|
<input matInput [min]="minDate" [max]="maxDate" [matDatepicker]="activatedOnDatePicker" required
|
||||||
|
|||||||
+1
-1
@@ -219,7 +219,7 @@
|
|||||||
<button mat-raised-button [routerLink]="['../']">
|
<button mat-raised-button [routerLink]="['../']">
|
||||||
{{"labels.buttons.Cancel" | translate}}
|
{{"labels.buttons.Cancel" | translate}}
|
||||||
</button>
|
</button>
|
||||||
<button mat-raised-button color="primary" (click)="submit.emit()">
|
<button mat-raised-button color="primary" (click)="submitEvent.emit()">
|
||||||
{{"labels.buttons.Submit" | translate}}
|
{{"labels.buttons.Submit" | translate}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ export class ClientPreviewStepComponent {
|
|||||||
@Input() client: any;
|
@Input() client: any;
|
||||||
|
|
||||||
/** Form submission event */
|
/** Form submission event */
|
||||||
@Output() submit = new EventEmitter();
|
@Output() submitEvent = new EventEmitter();
|
||||||
|
|
||||||
constructor() { }
|
constructor() { }
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { ClientsService } from 'app/clients/clients.service';
|
import { ClientsService } from 'app/clients/clients.service';
|
||||||
|
|
||||||
@@ -11,7 +11,7 @@ import { ClientsService } from 'app/clients/clients.service';
|
|||||||
templateUrl: './view-charge.component.html',
|
templateUrl: './view-charge.component.html',
|
||||||
styleUrls: ['./view-charge.component.scss']
|
styleUrls: ['./view-charge.component.scss']
|
||||||
})
|
})
|
||||||
export class ViewChargeComponent implements OnInit {
|
export class ViewChargeComponent {
|
||||||
|
|
||||||
/** Charge Data. */
|
/** Charge Data. */
|
||||||
chargeData: any;
|
chargeData: any;
|
||||||
@@ -31,10 +31,6 @@ export class ViewChargeComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Waive Charge.
|
* Waive Charge.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -192,7 +192,7 @@
|
|||||||
<button mat-menu-item (click)="doAction('Client Screen Reports')"> {{"labels.buttons.Client Screen Reports" | translate}} </button>
|
<button mat-menu-item (click)="doAction('Client Screen Reports')"> {{"labels.buttons.Client Screen Reports" | translate}} </button>
|
||||||
<button mat-menu-item (click)="doAction('Create Standing Instructions')"
|
<button mat-menu-item (click)="doAction('Create Standing Instructions')"
|
||||||
*mifosxHasPermission="'CREATE_STANDINGINSTRUCTION'"> {{"labels.buttons.Create Standing Instructions" | translate}}</button>
|
*mifosxHasPermission="'CREATE_STANDINGINSTRUCTION'"> {{"labels.buttons.Create Standing Instructions" | translate}}</button>
|
||||||
<span *ngIf="clientViewData.status.value!='Transfer on hold'">
|
<span *ngIf="clientViewData.status.value!=='Transfer on hold'">
|
||||||
<button mat-menu-item (click)="doAction('View Standing Instructions')"
|
<button mat-menu-item (click)="doAction('View Standing Instructions')"
|
||||||
*mifosxHasPermission="'READ_STANDINGINSTRUCTION'"> {{"labels.buttons.View Standing Instructions" | translate}}</button>
|
*mifosxHasPermission="'READ_STANDINGINSTRUCTION'"> {{"labels.buttons.View Standing Instructions" | translate}}</button>
|
||||||
</span>
|
</span>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -6,7 +6,7 @@ import { ActivatedRoute } from '@angular/router';
|
|||||||
templateUrl: './datatable-tab.component.html',
|
templateUrl: './datatable-tab.component.html',
|
||||||
styleUrls: ['./datatable-tab.component.scss']
|
styleUrls: ['./datatable-tab.component.scss']
|
||||||
})
|
})
|
||||||
export class DatatableTabComponent implements OnInit {
|
export class DatatableTabComponent {
|
||||||
entityId: string;
|
entityId: string;
|
||||||
entityDatatable: any;
|
entityDatatable: any;
|
||||||
multiRowDatatableFlag: boolean;
|
multiRowDatatableFlag: boolean;
|
||||||
@@ -20,7 +20,4 @@ export class DatatableTabComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } 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';
|
||||||
|
|
||||||
@@ -10,7 +10,7 @@ import { ClientsService } from '../../clients.service';
|
|||||||
templateUrl: './documents-tab.component.html',
|
templateUrl: './documents-tab.component.html',
|
||||||
styleUrls: ['./documents-tab.component.scss']
|
styleUrls: ['./documents-tab.component.scss']
|
||||||
})
|
})
|
||||||
export class DocumentsTabComponent implements OnInit {
|
export class DocumentsTabComponent {
|
||||||
entityDocuments: any;
|
entityDocuments: any;
|
||||||
entityId: string;
|
entityId: string;
|
||||||
entityType = 'clients';
|
entityType = 'clients';
|
||||||
@@ -24,9 +24,6 @@ export class DocumentsTabComponent implements OnInit {
|
|||||||
this.entityId = this.route.parent.snapshot.paramMap.get('clientId');
|
this.entityId = this.route.parent.snapshot.paramMap.get('clientId');
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
downloadDocument(documentId: string) {
|
downloadDocument(documentId: string) {
|
||||||
this.clientsService.downloadClientDocument(this.entityId, documentId).subscribe(res => {
|
this.clientsService.downloadClientDocument(this.entityId, documentId).subscribe(res => {
|
||||||
const url = window.URL.createObjectURL(res);
|
const url = window.URL.createObjectURL(res);
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Components */
|
/** Custom Components */
|
||||||
@@ -16,7 +16,7 @@ import { AuthenticationService } from 'app/core/authentication/authentication.se
|
|||||||
templateUrl: './notes-tab.component.html',
|
templateUrl: './notes-tab.component.html',
|
||||||
styleUrls: ['./notes-tab.component.scss']
|
styleUrls: ['./notes-tab.component.scss']
|
||||||
})
|
})
|
||||||
export class NotesTabComponent implements OnInit {
|
export class NotesTabComponent {
|
||||||
|
|
||||||
/** Client ID */
|
/** Client ID */
|
||||||
entityId: string;
|
entityId: string;
|
||||||
@@ -41,8 +41,6 @@ export class NotesTabComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() { }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Edits a client note.
|
* Edits a client note.
|
||||||
* @param {string} noteId Note Id
|
* @param {string} noteId Note Id
|
||||||
|
|||||||
@@ -63,7 +63,7 @@
|
|||||||
<mifosx-client-preview-step
|
<mifosx-client-preview-step
|
||||||
[clientTemplate]="clientTemplate"
|
[clientTemplate]="clientTemplate"
|
||||||
[clientAddressFieldConfig]="clientAddressFieldConfig"
|
[clientAddressFieldConfig]="clientAddressFieldConfig"
|
||||||
[client]="client" (submit)="submit()"
|
[client]="client" (submitEvent)="submit()"
|
||||||
>
|
>
|
||||||
</mifosx-client-preview-step>
|
</mifosx-client-preview-step>
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { CollateralsService } from '../collaterals.service';
|
import { CollateralsService } from '../collaterals.service';
|
||||||
import { MatDialog } from '@angular/material/dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
@@ -12,7 +12,7 @@ import { DeleteDialogComponent } from '../../shared/delete-dialog/delete-dialog.
|
|||||||
templateUrl: './view-collateral.component.html',
|
templateUrl: './view-collateral.component.html',
|
||||||
styleUrls: ['./view-collateral.component.scss']
|
styleUrls: ['./view-collateral.component.scss']
|
||||||
})
|
})
|
||||||
export class ViewCollateralComponent implements OnInit {
|
export class ViewCollateralComponent {
|
||||||
|
|
||||||
clientCollateralData: any;
|
clientCollateralData: any;
|
||||||
|
|
||||||
@@ -29,9 +29,6 @@ export class ViewCollateralComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes the Collateral and redirects to CLients Page.
|
* Deletes the Collateral and redirects to CLients Page.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Inject } from '@angular/core';
|
import { Component, Inject } from '@angular/core';
|
||||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -10,12 +10,9 @@ import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|||||||
templateUrl: './completion-dialog.component.html',
|
templateUrl: './completion-dialog.component.html',
|
||||||
styleUrls: ['./completion-dialog.component.scss']
|
styleUrls: ['./completion-dialog.component.scss']
|
||||||
})
|
})
|
||||||
export class CompletionDialogComponent implements OnInit {
|
export class CompletionDialogComponent {
|
||||||
|
|
||||||
constructor(public dialogRef: MatDialogRef<CompletionDialogComponent>,
|
constructor(public dialogRef: MatDialogRef<CompletionDialogComponent>,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Inject } from '@angular/core';
|
import { Component, Inject } from '@angular/core';
|
||||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -10,7 +10,7 @@ import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|||||||
templateUrl: './configuration-wizard.component.html',
|
templateUrl: './configuration-wizard.component.html',
|
||||||
styleUrls: ['./configuration-wizard.component.scss']
|
styleUrls: ['./configuration-wizard.component.scss']
|
||||||
})
|
})
|
||||||
export class ConfigurationWizardComponent implements OnInit {
|
export class ConfigurationWizardComponent {
|
||||||
|
|
||||||
show: number;
|
show: number;
|
||||||
/**
|
/**
|
||||||
@@ -19,7 +19,4 @@ export class ConfigurationWizardComponent implements OnInit {
|
|||||||
constructor(public dialogRef: MatDialogRef<ConfigurationWizardComponent>,
|
constructor(public dialogRef: MatDialogRef<ConfigurationWizardComponent>,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-5
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Inject } from '@angular/core';
|
import { Component, Inject } from '@angular/core';
|
||||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -10,7 +10,7 @@ import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|||||||
templateUrl: './continue-setup-dialog.component.html',
|
templateUrl: './continue-setup-dialog.component.html',
|
||||||
styleUrls: ['./continue-setup-dialog.component.scss']
|
styleUrls: ['./continue-setup-dialog.component.scss']
|
||||||
})
|
})
|
||||||
export class ContinueSetupDialogComponent implements OnInit {
|
export class ContinueSetupDialogComponent {
|
||||||
|
|
||||||
/* Current Step Name*/
|
/* Current Step Name*/
|
||||||
stepName: number;
|
stepName: number;
|
||||||
@@ -23,7 +23,4 @@ export class ContinueSetupDialogComponent implements OnInit {
|
|||||||
this.stepName = data.stepName;
|
this.stepName = data.stepName;
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Inject } from '@angular/core';
|
import { Component, Inject } from '@angular/core';
|
||||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -10,7 +10,7 @@ import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|||||||
templateUrl: './next-step-dialog.component.html',
|
templateUrl: './next-step-dialog.component.html',
|
||||||
styleUrls: ['./next-step-dialog.component.scss']
|
styleUrls: ['./next-step-dialog.component.scss']
|
||||||
})
|
})
|
||||||
export class NextStepDialogComponent implements OnInit {
|
export class NextStepDialogComponent {
|
||||||
|
|
||||||
/* Step Percentage */
|
/* Step Percentage */
|
||||||
stepPercentage: number;
|
stepPercentage: number;
|
||||||
@@ -29,7 +29,4 @@ export class NextStepDialogComponent implements OnInit {
|
|||||||
this.previousStepName = data.previousStepName;
|
this.previousStepName = data.previousStepName;
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit , TemplateRef, ElementRef , ViewChild, AfterViewInit} from '@angular/core';
|
import { Component, TemplateRef, ElementRef , ViewChild, AfterViewInit} from '@angular/core';
|
||||||
import { ActivatedRoute, Router, NavigationEnd, Data } from '@angular/router';
|
import { ActivatedRoute, Router, NavigationEnd, Data } from '@angular/router';
|
||||||
|
|
||||||
/** rxjs Imports */
|
/** rxjs Imports */
|
||||||
@@ -50,7 +50,7 @@ const routeAddBreadcrumbLink = 'addBreadcrumbLink';
|
|||||||
templateUrl: './breadcrumb.component.html',
|
templateUrl: './breadcrumb.component.html',
|
||||||
styleUrls: ['./breadcrumb.component.scss']
|
styleUrls: ['./breadcrumb.component.scss']
|
||||||
})
|
})
|
||||||
export class BreadcrumbComponent implements OnInit, AfterViewInit {
|
export class BreadcrumbComponent implements AfterViewInit {
|
||||||
|
|
||||||
/** Array of breadcrumbs. */
|
/** Array of breadcrumbs. */
|
||||||
breadcrumbs: Breadcrumb[];
|
breadcrumbs: Breadcrumb[];
|
||||||
@@ -74,9 +74,6 @@ export class BreadcrumbComponent implements OnInit, AfterViewInit {
|
|||||||
this.generateBreadcrumbs();
|
this.generateBreadcrumbs();
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Generates the array of breadcrumbs for the visited route.
|
* Generates the array of breadcrumbs for the visited route.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Content component.
|
* Content component.
|
||||||
@@ -9,11 +9,8 @@ import { Component, OnInit } from '@angular/core';
|
|||||||
templateUrl: './content.component.html',
|
templateUrl: './content.component.html',
|
||||||
styleUrls: ['./content.component.scss']
|
styleUrls: ['./content.component.scss']
|
||||||
})
|
})
|
||||||
export class ContentComponent implements OnInit {
|
export class ContentComponent {
|
||||||
|
|
||||||
constructor() { }
|
constructor() { }
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
}"
|
}"
|
||||||
[attr.role]="(isHandset$ | async) ? 'dialog' : 'navigation'"
|
[attr.role]="(isHandset$ | async) ? 'dialog' : 'navigation'"
|
||||||
[mode]="(isHandset$ | async) ? 'over' : 'side'"
|
[mode]="(isHandset$ | async) ? 'over' : 'side'"
|
||||||
[opened]="!(isHandset$ | async)">
|
[opened]="(isHandset$ | async) === false">
|
||||||
|
|
||||||
<mifosx-sidenav [sidenavCollapsed]="sidenavCollapsed"></mifosx-sidenav>
|
<mifosx-sidenav [sidenavCollapsed]="sidenavCollapsed"></mifosx-sidenav>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -85,7 +85,7 @@
|
|||||||
<mifosx-fixed-deposit-account-preview-step
|
<mifosx-fixed-deposit-account-preview-step
|
||||||
[fixedDepositsAccountTemplate]="fixedDepositsAccountTemplate"
|
[fixedDepositsAccountTemplate]="fixedDepositsAccountTemplate"
|
||||||
[fixedDepositsAccountProductTemplate]="fixedDepositsAccountProductTemplate"
|
[fixedDepositsAccountProductTemplate]="fixedDepositsAccountProductTemplate"
|
||||||
[fixedDepositAccountData]="fixedDepositAccount" (submit)="submit()">
|
[fixedDepositAccountData]="fixedDepositAccount" (submitEvent)="submit()">
|
||||||
</mifosx-fixed-deposit-account-preview-step>
|
</mifosx-fixed-deposit-account-preview-step>
|
||||||
|
|
||||||
</mat-step>
|
</mat-step>
|
||||||
|
|||||||
+1
-1
@@ -85,7 +85,7 @@
|
|||||||
<mifosx-fixed-deposit-account-preview-step
|
<mifosx-fixed-deposit-account-preview-step
|
||||||
[fixedDepositsAccountTemplate]="fixedDepositsAccountAndTemplate"
|
[fixedDepositsAccountTemplate]="fixedDepositsAccountAndTemplate"
|
||||||
[fixedDepositsAccountProductTemplate]="fixedDepositsAccountProductTemplate"
|
[fixedDepositsAccountProductTemplate]="fixedDepositsAccountProductTemplate"
|
||||||
[fixedDepositAccountData]="fixedDepositAccount" (submit)="submit()">
|
[fixedDepositAccountData]="fixedDepositAccount" (submitEvent)="submit()">
|
||||||
</mifosx-fixed-deposit-account-preview-step>
|
</mifosx-fixed-deposit-account-preview-step>
|
||||||
|
|
||||||
</mat-step>
|
</mat-step>
|
||||||
|
|||||||
+1
-1
@@ -352,7 +352,7 @@
|
|||||||
<button mat-raised-button [routerLink]="['../..']">
|
<button mat-raised-button [routerLink]="['../..']">
|
||||||
{{"labels.buttons.Cancel" | translate }}
|
{{"labels.buttons.Cancel" | translate }}
|
||||||
</button>
|
</button>
|
||||||
<button mat-raised-button color="primary" (click)="submit.emit()">
|
<button mat-raised-button color="primary" (click)="submitEvent.emit()">
|
||||||
{{"labels.buttons.Submit" | translate }}
|
{{"labels.buttons.Submit" | translate }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+1
-1
@@ -40,7 +40,7 @@ export class FixedDepositAccountPreviewStepComponent implements OnChanges {
|
|||||||
expandChartSlabIndex: number;
|
expandChartSlabIndex: number;
|
||||||
|
|
||||||
/** Form submission event */
|
/** Form submission event */
|
||||||
@Output() submit = new EventEmitter();
|
@Output() submitEvent = new EventEmitter();
|
||||||
|
|
||||||
constructor() { }
|
constructor() { }
|
||||||
|
|
||||||
|
|||||||
+2
-5
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { Currency } from 'app/shared/models/general.model';
|
import { Currency } from 'app/shared/models/general.model';
|
||||||
|
|
||||||
@@ -7,7 +7,7 @@ import { Currency } from 'app/shared/models/general.model';
|
|||||||
templateUrl: './general-tab.component.html',
|
templateUrl: './general-tab.component.html',
|
||||||
styleUrls: ['./general-tab.component.scss']
|
styleUrls: ['./general-tab.component.scss']
|
||||||
})
|
})
|
||||||
export class GeneralTabComponent implements OnInit {
|
export class GeneralTabComponent {
|
||||||
|
|
||||||
fixedDepositsAccountData: any;
|
fixedDepositsAccountData: any;
|
||||||
entityType: string;
|
entityType: string;
|
||||||
@@ -28,7 +28,4 @@ export class GeneralTabComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -84,7 +84,7 @@
|
|||||||
<mifosx-recurring-deposits-account-preview-step
|
<mifosx-recurring-deposits-account-preview-step
|
||||||
[recurringDepositsAccountTemplate]="recurringDepositsAccountTemplate"
|
[recurringDepositsAccountTemplate]="recurringDepositsAccountTemplate"
|
||||||
[recurringDepositsAccountProductTemplate]="recurringDepositsAccountProductTemplate"
|
[recurringDepositsAccountProductTemplate]="recurringDepositsAccountProductTemplate"
|
||||||
[recurringDepositAccountData]="recurringDepositAccountData" (submit)="submit()">
|
[recurringDepositAccountData]="recurringDepositAccountData" (submitEvent)="submit()">
|
||||||
</mifosx-recurring-deposits-account-preview-step>
|
</mifosx-recurring-deposits-account-preview-step>
|
||||||
|
|
||||||
</mat-step>
|
</mat-step>
|
||||||
|
|||||||
+2
-5
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
import { Component, ViewChild } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -21,7 +21,7 @@ import { Dates } from 'app/core/utils/dates';
|
|||||||
templateUrl: './create-recurring-deposits-account.component.html',
|
templateUrl: './create-recurring-deposits-account.component.html',
|
||||||
styleUrls: ['./create-recurring-deposits-account.component.scss']
|
styleUrls: ['./create-recurring-deposits-account.component.scss']
|
||||||
})
|
})
|
||||||
export class CreateRecurringDepositsAccountComponent implements OnInit {
|
export class CreateRecurringDepositsAccountComponent {
|
||||||
|
|
||||||
/** Imports all the step component */
|
/** Imports all the step component */
|
||||||
@ViewChild(RecurringDepositsAccountDetailsStepComponent, { static: true }) recurringDepositsAccountDetailsStep: RecurringDepositsAccountDetailsStepComponent;
|
@ViewChild(RecurringDepositsAccountDetailsStepComponent, { static: true }) recurringDepositsAccountDetailsStep: RecurringDepositsAccountDetailsStepComponent;
|
||||||
@@ -53,9 +53,6 @@ export class CreateRecurringDepositsAccountComponent implements OnInit {
|
|||||||
this.recurringDepositsAccountProductTemplate = $event;
|
this.recurringDepositsAccountProductTemplate = $event;
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Recurring Deposit Account Details Form Data */
|
/** Get Recurring Deposit Account Details Form Data */
|
||||||
get recurringDepositAccountDetailsForm() {
|
get recurringDepositAccountDetailsForm() {
|
||||||
return this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetailsForm;
|
return this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetailsForm;
|
||||||
|
|||||||
+1
-1
@@ -84,7 +84,7 @@
|
|||||||
<mifosx-recurring-deposits-account-preview-step
|
<mifosx-recurring-deposits-account-preview-step
|
||||||
[recurringDepositsAccountTemplate]="recurringDepositsAccountAndTemplate"
|
[recurringDepositsAccountTemplate]="recurringDepositsAccountAndTemplate"
|
||||||
[recurringDepositsAccountProductTemplate]="recurringDepositsAccountProductTemplate"
|
[recurringDepositsAccountProductTemplate]="recurringDepositsAccountProductTemplate"
|
||||||
[recurringDepositAccountData]="recurringDepositAccountData" (submit)="submit()">
|
[recurringDepositAccountData]="recurringDepositAccountData" (submitEvent)="submit()">
|
||||||
</mifosx-recurring-deposits-account-preview-step>
|
</mifosx-recurring-deposits-account-preview-step>
|
||||||
|
|
||||||
</mat-step>
|
</mat-step>
|
||||||
|
|||||||
+2
-5
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
import { Component, ViewChild } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -21,7 +21,7 @@ import { Dates } from 'app/core/utils/dates';
|
|||||||
templateUrl: './edit-recurring-deposit-account.component.html',
|
templateUrl: './edit-recurring-deposit-account.component.html',
|
||||||
styleUrls: ['./edit-recurring-deposit-account.component.scss']
|
styleUrls: ['./edit-recurring-deposit-account.component.scss']
|
||||||
})
|
})
|
||||||
export class EditRecurringDepositAccountComponent implements OnInit {
|
export class EditRecurringDepositAccountComponent {
|
||||||
|
|
||||||
/** Imports all the step component */
|
/** Imports all the step component */
|
||||||
@ViewChild(RecurringDepositsAccountDetailsStepComponent, { static: true }) recurringDepositsAccountDetailsStep: RecurringDepositsAccountDetailsStepComponent;
|
@ViewChild(RecurringDepositsAccountDetailsStepComponent, { static: true }) recurringDepositsAccountDetailsStep: RecurringDepositsAccountDetailsStepComponent;
|
||||||
@@ -53,9 +53,6 @@ export class EditRecurringDepositAccountComponent implements OnInit {
|
|||||||
this.recurringDepositsAccountProductTemplate = $event;
|
this.recurringDepositsAccountProductTemplate = $event;
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Get Recurring Deposit Account Details Form Data */
|
/** Get Recurring Deposit Account Details Form Data */
|
||||||
get recurringDepositAccountDetailsForm() {
|
get recurringDepositAccountDetailsForm() {
|
||||||
return this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetailsForm;
|
return this.recurringDepositsAccountDetailsStep.recurringDepositAccountDetailsForm;
|
||||||
|
|||||||
+1
-1
@@ -352,7 +352,7 @@
|
|||||||
<button mat-raised-button [routerLink]="['../..']">
|
<button mat-raised-button [routerLink]="['../..']">
|
||||||
{{"labels.buttons.Cancel" | translate }}
|
{{"labels.buttons.Cancel" | translate }}
|
||||||
</button>
|
</button>
|
||||||
<button mat-raised-button color="primary" (click)="submit.emit()">
|
<button mat-raised-button color="primary" (click)="submitEvent.emit()">
|
||||||
{{"labels.buttons.Submit" | translate }}
|
{{"labels.buttons.Submit" | translate }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+1
-1
@@ -24,7 +24,7 @@ export class RecurringDepositsAccountPreviewStepComponent implements OnChanges {
|
|||||||
@Input() recurringDepositsAccountProductTemplate: any;
|
@Input() recurringDepositsAccountProductTemplate: any;
|
||||||
@Input() recurringDepositAccountData: any;
|
@Input() recurringDepositAccountData: any;
|
||||||
/** Output the submit action */
|
/** Output the submit action */
|
||||||
@Output() submit = new EventEmitter();
|
@Output() submitEvent = new EventEmitter();
|
||||||
|
|
||||||
/** Charges Displayed Columns */
|
/** Charges Displayed Columns */
|
||||||
chargesDisplayedColumns: string[] = ['name', 'chargeCalculationType', 'amount', 'chargeTimeType', 'date', 'repaymentsEvery'];
|
chargesDisplayedColumns: string[] = ['name', 'chargeCalculationType', 'amount', 'chargeTimeType', 'date', 'repaymentsEvery'];
|
||||||
|
|||||||
+1
-1
@@ -75,7 +75,7 @@
|
|||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
<span *ngIf="recurringDepositsAccountData.status.value !== 'Submitted and pending approval' && charge.amountOutstanding !== 0">
|
<span *ngIf="recurringDepositsAccountData.status.value !== 'Submitted and pending approval' && charge.amountOutstanding !== 0">
|
||||||
<span *ngIf="charge.chargeTimeType.value == 'Monthly Fee' || charge.chargeTimeType.value == 'Annual Fee'|| charge.chargeTimeType.value == 'Specified due date'">
|
<span *ngIf="charge.chargeTimeType.value === 'Monthly Fee' || charge.chargeTimeType.value === 'Annual Fee'|| charge.chargeTimeType.value === 'Specified due date'">
|
||||||
<button class="account-action-button" mat-raised-button color="primary" matTooltip="{{ 'tooltips.Pay Charge' | translate}}"
|
<button class="account-action-button" mat-raised-button color="primary" matTooltip="{{ 'tooltips.Pay Charge' | translate}}"
|
||||||
*mifosxHasPermission="'PAY_SAVINGSACCOUNTCHARGE'" (click)="routeEdit($event); payCharge(charge.id)">
|
*mifosxHasPermission="'PAY_SAVINGSACCOUNTCHARGE'" (click)="routeEdit($event); payCharge(charge.id)">
|
||||||
<i class="fa fa-dollar"></i>
|
<i class="fa fa-dollar"></i>
|
||||||
|
|||||||
+2
-5
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, Inject } from '@angular/core';
|
import { Component, Inject } from '@angular/core';
|
||||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -6,7 +6,7 @@ import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
|||||||
templateUrl: './recurring-deposit-confirmation-dialog.component.html',
|
templateUrl: './recurring-deposit-confirmation-dialog.component.html',
|
||||||
styleUrls: ['./recurring-deposit-confirmation-dialog.component.scss']
|
styleUrls: ['./recurring-deposit-confirmation-dialog.component.scss']
|
||||||
})
|
})
|
||||||
export class RecurringDepositConfirmationDialogComponent implements OnInit {
|
export class RecurringDepositConfirmationDialogComponent {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param {MatDialogRef} dialogRef Component reference to dialog.
|
* @param {MatDialogRef} dialogRef Component reference to dialog.
|
||||||
@@ -15,7 +15,4 @@ export class RecurringDepositConfirmationDialogComponent implements OnInit {
|
|||||||
constructor(public dialogRef: MatDialogRef<RecurringDepositConfirmationDialogComponent>,
|
constructor(public dialogRef: MatDialogRef<RecurringDepositConfirmationDialogComponent>,
|
||||||
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
@Inject(MAT_DIALOG_DATA) public data: any) { }
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-4
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { Currency } from 'app/shared/models/general.model';
|
import { Currency } from 'app/shared/models/general.model';
|
||||||
|
|
||||||
@@ -7,7 +7,7 @@ import { Currency } from 'app/shared/models/general.model';
|
|||||||
templateUrl: './general-tab.component.html',
|
templateUrl: './general-tab.component.html',
|
||||||
styleUrls: ['./general-tab.component.scss']
|
styleUrls: ['./general-tab.component.scss']
|
||||||
})
|
})
|
||||||
export class GeneralTabComponent implements OnInit {
|
export class GeneralTabComponent {
|
||||||
|
|
||||||
recurringDepositsAccountData: any;
|
recurringDepositsAccountData: any;
|
||||||
isprematureAllowed = false;
|
isprematureAllowed = false;
|
||||||
@@ -29,7 +29,5 @@ export class GeneralTabComponent implements OnInit {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
ngOnInit(): void {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -2,7 +2,7 @@
|
|||||||
*ngIf="!(transactionData.reversed)">
|
*ngIf="!(transactionData.reversed)">
|
||||||
<span *mifosxHasPermission="'ADJUSTTRANSACTION_SAVINGSACCOUNT'">
|
<span *mifosxHasPermission="'ADJUSTTRANSACTION_SAVINGSACCOUNT'">
|
||||||
<button mat-raised-button color="primary"
|
<button mat-raised-button color="primary"
|
||||||
*ngIf="!(transactionData.transactionType.value == 'Transfer' || transactionData.reversed == 'true')"
|
*ngIf="!(transactionData.transactionType.value === 'Transfer' || transactionData.reversed === 'true')"
|
||||||
[routerLink]="'edit'">
|
[routerLink]="'edit'">
|
||||||
<fa-icon icon="edit" class="m-r-10"></fa-icon>{{"labels.buttons.Edit" | translate }}
|
<fa-icon icon="edit" class="m-r-10"></fa-icon>{{"labels.buttons.Edit" | translate }}
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -16,7 +16,7 @@ import { GroupsService } from '../../groups.service';
|
|||||||
templateUrl: './notes-tab.component.html',
|
templateUrl: './notes-tab.component.html',
|
||||||
styleUrls: ['./notes-tab.component.scss']
|
styleUrls: ['./notes-tab.component.scss']
|
||||||
})
|
})
|
||||||
export class NotesTabComponent implements OnInit {
|
export class NotesTabComponent {
|
||||||
|
|
||||||
/** Group ID */
|
/** Group ID */
|
||||||
entityId: string;
|
entityId: string;
|
||||||
@@ -42,9 +42,6 @@ export class NotesTabComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds a new note.
|
* Adds a new note.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { MatDialogRef } from '@angular/material/dialog';
|
import { MatDialogRef } from '@angular/material/dialog';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -6,12 +6,9 @@ import { MatDialogRef } from '@angular/material/dialog';
|
|||||||
templateUrl: './session-timeout-dialog.component.html',
|
templateUrl: './session-timeout-dialog.component.html',
|
||||||
styleUrls: ['./session-timeout-dialog.component.scss']
|
styleUrls: ['./session-timeout-dialog.component.scss']
|
||||||
})
|
})
|
||||||
export class SessionTimeoutDialogComponent implements OnInit {
|
export class SessionTimeoutDialogComponent {
|
||||||
|
|
||||||
constructor(public dialogRef: MatDialogRef<SessionTimeoutDialogComponent>) {
|
constructor(public dialogRef: MatDialogRef<SessionTimeoutDialogComponent>) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { MatDialogRef } from '@angular/material/dialog';
|
import { MatDialogRef } from '@angular/material/dialog';
|
||||||
import { environment } from '../../../environments/environment';
|
import { environment } from '../../../environments/environment';
|
||||||
|
|
||||||
@@ -7,7 +7,7 @@ import { environment } from '../../../environments/environment';
|
|||||||
templateUrl: './warning-dialog.component.html',
|
templateUrl: './warning-dialog.component.html',
|
||||||
styleUrls: ['./warning-dialog.component.scss']
|
styleUrls: ['./warning-dialog.component.scss']
|
||||||
})
|
})
|
||||||
export class WarningDialogComponent implements OnInit {
|
export class WarningDialogComponent {
|
||||||
|
|
||||||
title: string;
|
title: string;
|
||||||
content: string;
|
content: string;
|
||||||
@@ -19,7 +19,4 @@ export class WarningDialogComponent implements OnInit {
|
|||||||
this.buttonText = environment.warningDialog.buttonText;
|
this.buttonText = environment.warningDialog.buttonText;
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -76,7 +76,7 @@
|
|||||||
<ng-template matStepLabel>{{"labels.inputs.PREVIEW" | translate}}</ng-template>
|
<ng-template matStepLabel>{{"labels.inputs.PREVIEW" | translate}}</ng-template>
|
||||||
|
|
||||||
<mifosx-loans-account-preview-step [loansAccountTemplate]="loansAccountTemplate"
|
<mifosx-loans-account-preview-step [loansAccountTemplate]="loansAccountTemplate"
|
||||||
[loansAccountProductTemplate]="loansAccountProductTemplate" [loansAccount]="loansAccount" (submit)="submit()">
|
[loansAccountProductTemplate]="loansAccountProductTemplate" [loansAccount]="loansAccount" (submitEvent)="submit()">
|
||||||
</mifosx-loans-account-preview-step>
|
</mifosx-loans-account-preview-step>
|
||||||
|
|
||||||
</mat-step>
|
</mat-step>
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, QueryList, ViewChild, ViewChildren } from '@angular/core';
|
import { Component, QueryList, ViewChild, ViewChildren } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -21,7 +21,7 @@ import { LoansAccountDatatableStepComponent } from '../loans-account-stepper/loa
|
|||||||
templateUrl: './create-loans-account.component.html',
|
templateUrl: './create-loans-account.component.html',
|
||||||
styleUrls: ['./create-loans-account.component.scss']
|
styleUrls: ['./create-loans-account.component.scss']
|
||||||
})
|
})
|
||||||
export class CreateLoansAccountComponent implements OnInit {
|
export class CreateLoansAccountComponent {
|
||||||
|
|
||||||
/** Imports all the step component */
|
/** Imports all the step component */
|
||||||
@ViewChild(LoansAccountDetailsStepComponent, { static: true }) loansAccountDetailsStep: LoansAccountDetailsStepComponent;
|
@ViewChild(LoansAccountDetailsStepComponent, { static: true }) loansAccountDetailsStep: LoansAccountDetailsStepComponent;
|
||||||
@@ -63,8 +63,6 @@ export class CreateLoansAccountComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() { }
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets loans account product template and collateral template
|
* Sets loans account product template and collateral template
|
||||||
* @param {any} $event API response
|
* @param {any} $event API response
|
||||||
|
|||||||
+2
-4
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Inject, OnInit } from '@angular/core';
|
import { Component, Inject } from '@angular/core';
|
||||||
import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
|
import { UntypedFormBuilder, UntypedFormGroup, Validators } from '@angular/forms';
|
||||||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
||||||
|
|
||||||
@@ -7,7 +7,7 @@ import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';
|
|||||||
templateUrl: './loan-delinquency-action-dialog.component.html',
|
templateUrl: './loan-delinquency-action-dialog.component.html',
|
||||||
styleUrls: ['./loan-delinquency-action-dialog.component.scss']
|
styleUrls: ['./loan-delinquency-action-dialog.component.scss']
|
||||||
})
|
})
|
||||||
export class LoanDelinquencyActionDialogComponent implements OnInit {
|
export class LoanDelinquencyActionDialogComponent {
|
||||||
|
|
||||||
delinquencyActionForm: UntypedFormGroup;
|
delinquencyActionForm: UntypedFormGroup;
|
||||||
/** Minimum date allowed. */
|
/** Minimum date allowed. */
|
||||||
@@ -21,8 +21,6 @@ export class LoanDelinquencyActionDialogComponent implements OnInit {
|
|||||||
this.createDelinquencyActionForm();
|
this.createDelinquencyActionForm();
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void { }
|
|
||||||
|
|
||||||
createDelinquencyActionForm() {
|
createDelinquencyActionForm() {
|
||||||
this.delinquencyActionForm = this.formBuilder.group({
|
this.delinquencyActionForm = this.formBuilder.group({
|
||||||
'startDate': [new Date(), Validators.required],
|
'startDate': [new Date(), Validators.required],
|
||||||
|
|||||||
@@ -68,7 +68,7 @@
|
|||||||
<ng-template matStepLabel>{{"labels.inputs.PREVIEW" | translate}}</ng-template>
|
<ng-template matStepLabel>{{"labels.inputs.PREVIEW" | translate}}</ng-template>
|
||||||
|
|
||||||
<mifosx-loans-account-preview-step [loansAccountTemplate]="loansAccountAndTemplate"
|
<mifosx-loans-account-preview-step [loansAccountTemplate]="loansAccountAndTemplate"
|
||||||
[loansAccountProductTemplate]="loansAccountProductTemplate" [loansAccount]="loansAccount" (submit)="submit()">
|
[loansAccountProductTemplate]="loansAccountProductTemplate" [loansAccount]="loansAccount" (submitEvent)="submit()">
|
||||||
</mifosx-loans-account-preview-step>
|
</mifosx-loans-account-preview-step>
|
||||||
|
|
||||||
</mat-step>
|
</mat-step>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
import { Component, ViewChild } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { LoansService } from '../loans.service';
|
import { LoansService } from '../loans.service';
|
||||||
import { LoansAccountDetailsStepComponent } from '../loans-account-stepper/loans-account-details-step/loans-account-details-step.component';
|
import { LoansAccountDetailsStepComponent } from '../loans-account-stepper/loans-account-details-step/loans-account-details-step.component';
|
||||||
@@ -17,7 +17,7 @@ import { Dates } from 'app/core/utils/dates';
|
|||||||
templateUrl: './edit-loans-account.component.html',
|
templateUrl: './edit-loans-account.component.html',
|
||||||
styleUrls: ['./edit-loans-account.component.scss']
|
styleUrls: ['./edit-loans-account.component.scss']
|
||||||
})
|
})
|
||||||
export class EditLoansAccountComponent implements OnInit {
|
export class EditLoansAccountComponent {
|
||||||
|
|
||||||
@ViewChild(LoansAccountDetailsStepComponent, { static: true }) loansAccountDetailsStep: LoansAccountDetailsStepComponent;
|
@ViewChild(LoansAccountDetailsStepComponent, { static: true }) loansAccountDetailsStep: LoansAccountDetailsStepComponent;
|
||||||
@ViewChild(LoansAccountTermsStepComponent, { static: true }) loansAccountTermsStep: LoansAccountTermsStepComponent;
|
@ViewChild(LoansAccountTermsStepComponent, { static: true }) loansAccountTermsStep: LoansAccountTermsStepComponent;
|
||||||
@@ -53,9 +53,6 @@ export class EditLoansAccountComponent implements OnInit {
|
|||||||
this.loanId = this.route.snapshot.params['loanId'];
|
this.loanId = this.route.snapshot.params['loanId'];
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets loans account product template and collateral template
|
* Sets loans account product template and collateral template
|
||||||
* @param {any} $event API response
|
* @param {any} $event API response
|
||||||
|
|||||||
@@ -58,7 +58,7 @@
|
|||||||
<ng-template matStepLabel>{{"labels.inputs.PREVIEW" | translate}}</ng-template>
|
<ng-template matStepLabel>{{"labels.inputs.PREVIEW" | translate}}</ng-template>
|
||||||
|
|
||||||
<mifosx-loans-account-preview-step [loansAccountTemplate]="loansAccountTemplate"
|
<mifosx-loans-account-preview-step [loansAccountTemplate]="loansAccountTemplate"
|
||||||
[loansAccountProductTemplate]="loansAccountProductTemplate" [loansAccount]="loansAccount" (submit)="submit()">
|
[loansAccountProductTemplate]="loansAccountProductTemplate" [loansAccount]="loansAccount" (submitEvent)="submit()">
|
||||||
</mifosx-loans-account-preview-step>
|
</mifosx-loans-account-preview-step>
|
||||||
|
|
||||||
</mat-step>
|
</mat-step>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
import { Component, ViewChild } 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 { Dates } from 'app/core/utils/dates';
|
import { Dates } from 'app/core/utils/dates';
|
||||||
@@ -13,7 +13,7 @@ import { GlimTermsStepComponent } from './glim-account-stepper/glim-terms-step/g
|
|||||||
templateUrl: './create-glim-account.component.html',
|
templateUrl: './create-glim-account.component.html',
|
||||||
styleUrls: ['./create-glim-account.component.scss']
|
styleUrls: ['./create-glim-account.component.scss']
|
||||||
})
|
})
|
||||||
export class CreateGlimAccountComponent implements OnInit {
|
export class CreateGlimAccountComponent {
|
||||||
|
|
||||||
/** Imports all the step component */
|
/** Imports all the step component */
|
||||||
@ViewChild(GlimDetailsStepComponent, { static: true }) loansAccountDetailsStep: GlimDetailsStepComponent;
|
@ViewChild(GlimDetailsStepComponent, { static: true }) loansAccountDetailsStep: GlimDetailsStepComponent;
|
||||||
@@ -61,9 +61,6 @@ export class CreateGlimAccountComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Sets loans account product template and collateral template
|
* Sets loans account product template and collateral template
|
||||||
* @param {any} $event API response
|
* @param {any} $event API response
|
||||||
|
|||||||
+1
-1
@@ -269,7 +269,7 @@
|
|||||||
<button mat-raised-button [routerLink]="['../']">
|
<button mat-raised-button [routerLink]="['../']">
|
||||||
{{"labels.buttons.Cancel" | translate}}
|
{{"labels.buttons.Cancel" | translate}}
|
||||||
</button>
|
</button>
|
||||||
<button mat-raised-button color="primary" (click)="submit.emit()">
|
<button mat-raised-button color="primary" (click)="submitEvent.emit()">
|
||||||
{{"labels.buttons.Submit" | translate}}
|
{{"labels.buttons.Submit" | translate}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+3
-6
@@ -1,11 +1,11 @@
|
|||||||
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'mifosx-glim-preview-step',
|
selector: 'mifosx-glim-preview-step',
|
||||||
templateUrl: './glim-preview-step.component.html',
|
templateUrl: './glim-preview-step.component.html',
|
||||||
styleUrls: ['./glim-preview-step.component.scss']
|
styleUrls: ['./glim-preview-step.component.scss']
|
||||||
})
|
})
|
||||||
export class GlimPreviewStepComponent implements OnInit {
|
export class GlimPreviewStepComponent {
|
||||||
|
|
||||||
|
|
||||||
/** Loans Account Template */
|
/** Loans Account Template */
|
||||||
@@ -15,7 +15,7 @@ export class GlimPreviewStepComponent implements OnInit {
|
|||||||
/** Loans Account Data */
|
/** Loans Account Data */
|
||||||
@Input() loansAccount: any;
|
@Input() loansAccount: any;
|
||||||
/** Submit Loans Account */
|
/** Submit Loans Account */
|
||||||
@Output() submit = new EventEmitter();
|
@Output() submitEvent = new EventEmitter();
|
||||||
|
|
||||||
/** Charges Displayed Columns */
|
/** Charges Displayed Columns */
|
||||||
chargesDisplayedColumns: string[] = ['name', 'chargeCalculationType', 'amount', 'chargeTimeType', 'date'];
|
chargesDisplayedColumns: string[] = ['name', 'chargeCalculationType', 'amount', 'chargeTimeType', 'date'];
|
||||||
@@ -24,7 +24,4 @@ export class GlimPreviewStepComponent implements OnInit {
|
|||||||
|
|
||||||
constructor() { }
|
constructor() { }
|
||||||
|
|
||||||
ngOnInit(): void {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-2
@@ -62,7 +62,7 @@
|
|||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field fxFlex="48%" *ngIf="loansAccountTermsForm.controls.repaymentFrequencyType.value == 2">
|
<mat-form-field fxFlex="48%" *ngIf="loansAccountTermsForm.controls.repaymentFrequencyType.value === 2">
|
||||||
<mat-label>{{"labels.inputs.Select On" | translate}}</mat-label>
|
<mat-label>{{"labels.inputs.Select On" | translate}}</mat-label>
|
||||||
<mat-select formControlName="repaymentFrequencyNthDayType">
|
<mat-select formControlName="repaymentFrequencyNthDayType">
|
||||||
<mat-option
|
<mat-option
|
||||||
@@ -73,7 +73,7 @@
|
|||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field fxFlex="48%" *ngIf="loansAccountTermsForm.controls.repaymentFrequencyType.value == 2">
|
<mat-form-field fxFlex="48%" *ngIf="loansAccountTermsForm.controls.repaymentFrequencyType.value === 2">
|
||||||
<mat-label>{{"labels.inputs.Select Day" | translate}}</mat-label>
|
<mat-label>{{"labels.inputs.Select Day" | translate}}</mat-label>
|
||||||
<mat-select formControlName="repaymentFrequencyDayOfWeekType">
|
<mat-select formControlName="repaymentFrequencyDayOfWeekType">
|
||||||
<mat-option
|
<mat-option
|
||||||
|
|||||||
+1
-1
@@ -290,7 +290,7 @@
|
|||||||
<button mat-raised-button [routerLink]="['../..']">
|
<button mat-raised-button [routerLink]="['../..']">
|
||||||
{{"labels.buttons.Cancel" | translate}}
|
{{"labels.buttons.Cancel" | translate}}
|
||||||
</button>
|
</button>
|
||||||
<button mat-raised-button color="primary" (click)="submit.emit()">
|
<button mat-raised-button color="primary" (click)="submitEvent.emit()">
|
||||||
{{"labels.buttons.Submit" | translate}}
|
{{"labels.buttons.Submit" | translate}}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+3
-5
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, Output, EventEmitter, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
import { Component, Input, Output, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create Loans Account Preview Step
|
* Create Loans Account Preview Step
|
||||||
@@ -9,7 +9,7 @@ import { Component, OnInit, Input, Output, EventEmitter, OnDestroy, OnChanges, S
|
|||||||
templateUrl: './loans-account-preview-step.component.html',
|
templateUrl: './loans-account-preview-step.component.html',
|
||||||
styleUrls: ['./loans-account-preview-step.component.scss']
|
styleUrls: ['./loans-account-preview-step.component.scss']
|
||||||
})
|
})
|
||||||
export class LoansAccountPreviewStepComponent implements OnInit, OnChanges {
|
export class LoansAccountPreviewStepComponent implements OnChanges {
|
||||||
|
|
||||||
/** Loans Account Template */
|
/** Loans Account Template */
|
||||||
@Input() loansAccountTemplate: any = [];
|
@Input() loansAccountTemplate: any = [];
|
||||||
@@ -18,7 +18,7 @@ export class LoansAccountPreviewStepComponent implements OnInit, OnChanges {
|
|||||||
/** Loans Account Data */
|
/** Loans Account Data */
|
||||||
@Input() loansAccount: any;
|
@Input() loansAccount: any;
|
||||||
/** Submit Loans Account */
|
/** Submit Loans Account */
|
||||||
@Output() submit = new EventEmitter();
|
@Output() submitEvent = new EventEmitter();
|
||||||
|
|
||||||
/** Charges Displayed Columns */
|
/** Charges Displayed Columns */
|
||||||
chargesDisplayedColumns: string[] = ['name', 'chargeCalculationType', 'amount', 'chargeTimeType', 'date'];
|
chargesDisplayedColumns: string[] = ['name', 'chargeCalculationType', 'amount', 'chargeTimeType', 'date'];
|
||||||
@@ -29,8 +29,6 @@ export class LoansAccountPreviewStepComponent implements OnInit, OnChanges {
|
|||||||
|
|
||||||
constructor() { }
|
constructor() { }
|
||||||
|
|
||||||
ngOnInit() { }
|
|
||||||
|
|
||||||
ngOnChanges(changes: SimpleChanges): void {
|
ngOnChanges(changes: SimpleChanges): void {
|
||||||
this.productEnableDownPayment = this.loansAccountProductTemplate.product.enableDownPayment;
|
this.productEnableDownPayment = this.loansAccountProductTemplate.product.enableDownPayment;
|
||||||
}
|
}
|
||||||
|
|||||||
+2
-4
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Input, OnInit } from '@angular/core';
|
import { Component, Input } from '@angular/core';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
import { LoansService } from 'app/loans/loans.service';
|
import { LoansService } from 'app/loans/loans.service';
|
||||||
import { SettingsService } from 'app/settings/settings.service';
|
import { SettingsService } from 'app/settings/settings.service';
|
||||||
@@ -8,7 +8,7 @@ import { SettingsService } from 'app/settings/settings.service';
|
|||||||
templateUrl: './loans-account-schedule-step.component.html',
|
templateUrl: './loans-account-schedule-step.component.html',
|
||||||
styleUrls: ['./loans-account-schedule-step.component.scss']
|
styleUrls: ['./loans-account-schedule-step.component.scss']
|
||||||
})
|
})
|
||||||
export class LoansAccountScheduleStepComponent implements OnInit {
|
export class LoansAccountScheduleStepComponent {
|
||||||
|
|
||||||
/** Currency Code */
|
/** Currency Code */
|
||||||
@Input() currencyCode: string;
|
@Input() currencyCode: string;
|
||||||
@@ -29,8 +29,6 @@ export class LoansAccountScheduleStepComponent implements OnInit {
|
|||||||
this.loanId = this.route.snapshot.params['loanId'];
|
this.loanId = this.route.snapshot.params['loanId'];
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void { }
|
|
||||||
|
|
||||||
showRepaymentInfo(): void {
|
showRepaymentInfo(): void {
|
||||||
this.repaymentScheduleDetails = {periods: []};
|
this.repaymentScheduleDetails = {periods: []};
|
||||||
const locale = this.settingsService.language.code;
|
const locale = this.settingsService.language.code;
|
||||||
|
|||||||
+19
-19
@@ -83,7 +83,7 @@
|
|||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field fxFlex="14%" *ngIf="loansAccountTermsForm.controls.repaymentFrequencyType.value == 2">
|
<mat-form-field fxFlex="14%" *ngIf="loansAccountTermsForm.controls.repaymentFrequencyType.value === 2">
|
||||||
<mat-label>{{"labels.inputs.Select On" | translate}}</mat-label>
|
<mat-label>{{"labels.inputs.Select On" | translate}}</mat-label>
|
||||||
<mat-select formControlName="repaymentFrequencyNthDayType">
|
<mat-select formControlName="repaymentFrequencyNthDayType">
|
||||||
<mat-option *ngFor="let repaymentFrequencyNthDayType of repaymentFrequencyNthDayTypeData"
|
<mat-option *ngFor="let repaymentFrequencyNthDayType of repaymentFrequencyNthDayTypeData"
|
||||||
@@ -93,7 +93,7 @@
|
|||||||
</mat-select>
|
</mat-select>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|
||||||
<mat-form-field fxFlex="14%" *ngIf="loansAccountTermsForm.controls.repaymentFrequencyType.value == 2">
|
<mat-form-field fxFlex="14%" *ngIf="loansAccountTermsForm.controls.repaymentFrequencyType.value === 2">
|
||||||
<mat-label>{{"labels.inputs.Select Day" | translate}}</mat-label>
|
<mat-label>{{"labels.inputs.Select Day" | translate}}</mat-label>
|
||||||
<mat-select formControlName="repaymentFrequencyDayOfWeekType">
|
<mat-select formControlName="repaymentFrequencyDayOfWeekType">
|
||||||
<mat-option *ngFor="let repaymentFrequencyDayOfWeekType of repaymentFrequencyDaysOfWeekTypeData"
|
<mat-option *ngFor="let repaymentFrequencyDayOfWeekType of repaymentFrequencyDaysOfWeekTypeData"
|
||||||
@@ -329,15 +329,15 @@
|
|||||||
<span fxFlex="40%">{{"labels.inputs.Frequency Interval for recalculation" | translate}}</span>
|
<span fxFlex="40%">{{"labels.inputs.Frequency Interval for recalculation" | translate}}</span>
|
||||||
<span fxFlex="60%">
|
<span fxFlex="60%">
|
||||||
<span>{{ loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyType.value}}</span>
|
<span>{{ loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyType.value}}</span>
|
||||||
<span *ngIf="loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyType.id == 3 &&
|
<span *ngIf="loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyType.id === 3 &&
|
||||||
loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyWeekday != null">
|
loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyWeekday">
|
||||||
on {{ loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyWeekday.value}}</span>
|
on {{ loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyWeekday.value}}</span>
|
||||||
<span *ngIf="loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyType.id == 4 &&
|
<span *ngIf="loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyType.id === 4 &&
|
||||||
loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyOnDay != null">on day
|
loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyOnDay">on day
|
||||||
{{ loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyOnDay}}</span>
|
{{ loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyOnDay}}</span>
|
||||||
<span *ngIf="loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyType.id == 4 &&
|
<span *ngIf="loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyType.id === 4 &&
|
||||||
loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyOnDay == null &&
|
! loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyOnDay &&
|
||||||
loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyNthDay != null">on
|
loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyNthDay">on
|
||||||
{{ loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyNthDay.value}}
|
{{ loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyNthDay.value}}
|
||||||
{{ loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyWeekday.value}}</span>
|
{{ loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyWeekday.value}}</span>
|
||||||
</span>
|
</span>
|
||||||
@@ -346,7 +346,7 @@
|
|||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<div fxFlexFill
|
<div fxFlexFill
|
||||||
*ngIf="loansAccountTermsData?.isInterestRecalculationEnabled && loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyType.id != 1">
|
*ngIf="loansAccountTermsData?.isInterestRecalculationEnabled && loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyType.id !== 1">
|
||||||
<span fxFlex="40%">{{"labels.inputs.Frequency Interval for recalculation" | translate}}</span>
|
<span fxFlex="40%">{{"labels.inputs.Frequency Interval for recalculation" | translate}}</span>
|
||||||
<span fxFlex="60%">{{ loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyInterval}}</span>
|
<span fxFlex="60%">{{ loansAccountTermsData.interestRecalculationData.recalculationRestFrequencyInterval}}</span>
|
||||||
</div>
|
</div>
|
||||||
@@ -401,23 +401,23 @@
|
|||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<ng-container
|
<ng-container
|
||||||
*ngIf="loansAccountTermsData?.isInterestRecalculationEnabled && loansAccountTermsData.interestRecalculationData.interestRecalculationCompoundingType.id != 0">
|
*ngIf="loansAccountTermsData?.isInterestRecalculationEnabled && loansAccountTermsData.interestRecalculationData.interestRecalculationCompoundingType.id !== 0">
|
||||||
|
|
||||||
<div fxFlexFill>
|
<div fxFlexFill>
|
||||||
<span fxFlex="40%">{{"labels.inputs.Frequency for compounding" | translate}}</span>
|
<span fxFlex="40%">{{"labels.inputs.Frequency for compounding" | translate}}</span>
|
||||||
<span fxFlex="60%">{{
|
<span fxFlex="60%">{{
|
||||||
loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyType.value}}
|
loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyType.value}}
|
||||||
<span *ngIf="loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyType.id == 3 &&
|
<span *ngIf="loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyType.id === 3 &&
|
||||||
loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyWeekday != null">
|
loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyWeekday">
|
||||||
on {{ loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyWeekday.value}}
|
on {{ loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyWeekday.value}}
|
||||||
</span>
|
</span>
|
||||||
<span *ngIf="loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyType.id == 4 &&
|
<span *ngIf="loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyType.id === 4 &&
|
||||||
loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyOnDay != null">on day
|
loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyOnDay">on day
|
||||||
{{ loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyOnDay}}
|
{{ loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyOnDay}}
|
||||||
</span>
|
</span>
|
||||||
<span *ngIf="loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyType.id == 4 &&
|
<span *ngIf="loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyType.id === 4 &&
|
||||||
loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyOnDay == null &&
|
! loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyOnDay &&
|
||||||
loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyNthDay != null">on
|
loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyNthDay">on
|
||||||
{{ loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyNthDay.value}}
|
{{ loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyNthDay.value}}
|
||||||
{{ loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyWeekday.value}}
|
{{ loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyWeekday.value}}
|
||||||
</span>
|
</span>
|
||||||
@@ -426,7 +426,7 @@
|
|||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
<div fxFlexFill
|
<div fxFlexFill
|
||||||
*ngIf="loansAccountTermsData?.isInterestRecalculationEnabled && loansAccountTermsData.interestRecalculationData.interestRecalculationCompoundingType.id != 0 && loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyType.id != 1">
|
*ngIf="loansAccountTermsData?.isInterestRecalculationEnabled && loansAccountTermsData.interestRecalculationData.interestRecalculationCompoundingType.id !== 0 && loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyType.id !== 1">
|
||||||
<span fxFlex="40%">{{"labels.inputs.Frequency Interval for compounding" | translate}}</span>
|
<span fxFlex="40%">{{"labels.inputs.Frequency Interval for compounding" | translate}}</span>
|
||||||
<span fxFlex="60%">{{
|
<span fxFlex="60%">{{
|
||||||
loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyInterval}}</span>
|
loansAccountTermsData.interestRecalculationData.recalculationCompoundingFrequencyInterval}}</span>
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
<div fxFlexFill>
|
<div fxFlexFill>
|
||||||
<span fxFlex="50%">{{"labels.inputs.Repayments" | translate}}</span>
|
<span fxFlex="50%">{{"labels.inputs.Repayments" | translate}}</span>
|
||||||
<span fxFlex="50%">{{loanDetails.numberOfRepayments}} every {{loanDetails.repaymentEvery}} {{loanDetails.repaymentFrequencyType.value | translateKey:'catalogs' }}
|
<span fxFlex="50%">{{loanDetails.numberOfRepayments}} every {{loanDetails.repaymentEvery}} {{loanDetails.repaymentFrequencyType.value | translateKey:'catalogs' }}
|
||||||
<span *ngIf="loanDetails.repaymentFrequencyType?.id == 2 && loanDetails.repaymentFrequencyNthDayType?.id != 0 && loanDetails.repaymentFrequencyDayOfWeekType?.id != 0" class="m-l-10">
|
<span *ngIf="loanDetails.repaymentFrequencyType?.id === 2 && loanDetails.repaymentFrequencyNthDayType?.id !== 0 && loanDetails.repaymentFrequencyDayOfWeekType?.id !== 0" class="m-l-10">
|
||||||
<span *ngIf="loanDetails.repaymentFrequencyDayOfWeekType">
|
<span *ngIf="loanDetails.repaymentFrequencyDayOfWeekType">
|
||||||
<span class="m-l-10">{{"labels.commons.on" | translate}}</span>{{loanDetails.repaymentFrequencyNthDayType?.value}}
|
<span class="m-l-10">{{"labels.commons.on" | translate}}</span>{{loanDetails.repaymentFrequencyNthDayType?.value}}
|
||||||
<span class="m-l-10">{{loanDetails.repaymentFrequencyDayOfWeekType?.value | translateKey:'catalogs' }}</span>
|
<span class="m-l-10">{{loanDetails.repaymentFrequencyDayOfWeekType?.value | translateKey:'catalogs' }}</span>
|
||||||
@@ -166,7 +166,7 @@
|
|||||||
<span fxFlex="50%"> {{loanDetails.interestRecalculationData.calendarData.humanReadable}} </span>
|
<span fxFlex="50%"> {{loanDetails.interestRecalculationData.calendarData.humanReadable}} </span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div fxFlexFill *ngIf="loanDetails.isInterestRecalculationEnabled && loanDetails.interestRecalculationData.interestRecalculationCompoundingType.id !=0">
|
<div fxFlexFill *ngIf="loanDetails.isInterestRecalculationEnabled && loanDetails.interestRecalculationData.interestRecalculationCompoundingType.id !== 0">
|
||||||
<span fxFlex="50%"> {{"labels.inputs.Frequency for compounding" | translate}}</span>
|
<span fxFlex="50%"> {{"labels.inputs.Frequency for compounding" | translate}}</span>
|
||||||
<span fxFlex="50%"> {{loanDetails.interestRecalculationData.compoundingCalendarData.humanReadable}} </span>
|
<span fxFlex="50%"> {{loanDetails.interestRecalculationData.compoundingCalendarData.humanReadable}} </span>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -6,7 +6,7 @@ import { ActivatedRoute } from '@angular/router';
|
|||||||
templateUrl: './account-details.component.html',
|
templateUrl: './account-details.component.html',
|
||||||
styleUrls: ['./account-details.component.scss']
|
styleUrls: ['./account-details.component.scss']
|
||||||
})
|
})
|
||||||
export class AccountDetailsComponent implements OnInit {
|
export class AccountDetailsComponent {
|
||||||
|
|
||||||
loanDetails: any;
|
loanDetails: any;
|
||||||
dataObject: {
|
dataObject: {
|
||||||
@@ -20,7 +20,4 @@ export class AccountDetailsComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -79,12 +79,12 @@
|
|||||||
</button>
|
</button>
|
||||||
</span>
|
</span>
|
||||||
<button class="account-action-button" mat-raised-button color="accent" matTooltip="{{ 'tooltips.Adjust Charge' | translate}}"
|
<button class="account-action-button" mat-raised-button color="accent" matTooltip="{{ 'tooltips.Adjust Charge' | translate}}"
|
||||||
*ngIf="!charge.paid && status=='Active'"
|
*ngIf="!charge.paid && status==='Active'"
|
||||||
(click)="routeEdit($event); adjustCharge(charge.id)">
|
(click)="routeEdit($event); adjustCharge(charge.id)">
|
||||||
<i class="fa fa-pencil"></i>
|
<i class="fa fa-pencil"></i>
|
||||||
</button>
|
</button>
|
||||||
<button class="account-action-button" mat-raised-button color="primary" matTooltip="{{ 'tooltips.Pay Charge' | translate}}"
|
<button class="account-action-button" mat-raised-button color="primary" matTooltip="{{ 'tooltips.Pay Charge' | translate}}"
|
||||||
*ngIf="charge.chargePayable && !charge.paid && status=='Active'"
|
*ngIf="charge.chargePayable && !charge.paid && status==='Active'"
|
||||||
(click)="routeEdit($event); payCharge(charge.id)">
|
(click)="routeEdit($event); payCharge(charge.id)">
|
||||||
<i class="fa fa-dollar"></i>
|
<i class="fa fa-dollar"></i>
|
||||||
</button>
|
</button>
|
||||||
|
|||||||
+2
-6
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, OnDestroy } from '@angular/core';
|
import { Component, OnInit, Input } from '@angular/core';
|
||||||
import { UntypedFormGroup, UntypedFormBuilder, Validators, UntypedFormControl } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators, UntypedFormControl } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ import { Currency } from 'app/shared/models/general.model';
|
|||||||
templateUrl: './make-repayment.component.html',
|
templateUrl: './make-repayment.component.html',
|
||||||
styleUrls: ['./make-repayment.component.scss']
|
styleUrls: ['./make-repayment.component.scss']
|
||||||
})
|
})
|
||||||
export class MakeRepaymentComponent implements OnInit, OnDestroy {
|
export class MakeRepaymentComponent implements OnInit {
|
||||||
|
|
||||||
@Input() dataObject: any;
|
@Input() dataObject: any;
|
||||||
/** Loan Id */
|
/** Loan Id */
|
||||||
@@ -63,10 +63,6 @@ export class MakeRepaymentComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy(): void {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates the create close form.
|
* Creates the create close form.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, OnDestroy } from '@angular/core';
|
import { Component, OnInit, Input } from '@angular/core';
|
||||||
import { UntypedFormGroup, UntypedFormBuilder, Validators, UntypedFormControl } from '@angular/forms';
|
import { UntypedFormGroup, UntypedFormBuilder, Validators, UntypedFormControl } from '@angular/forms';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ import { Currency } from 'app/shared/models/general.model';
|
|||||||
templateUrl: './prepay-loan.component.html',
|
templateUrl: './prepay-loan.component.html',
|
||||||
styleUrls: ['./prepay-loan.component.scss']
|
styleUrls: ['./prepay-loan.component.scss']
|
||||||
})
|
})
|
||||||
export class PrepayLoanComponent implements OnInit, OnDestroy {
|
export class PrepayLoanComponent implements OnInit {
|
||||||
|
|
||||||
@Input() dataObject: any;
|
@Input() dataObject: any;
|
||||||
/** Loan Id */
|
/** Loan Id */
|
||||||
@@ -71,9 +71,6 @@ export class PrepayLoanComponent implements OnInit, OnDestroy {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnDestroy(): void {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Creates the prepay loan form.
|
* Creates the prepay loan form.
|
||||||
*/
|
*/
|
||||||
|
|||||||
+1
-1
@@ -161,7 +161,7 @@
|
|||||||
<fa-icon icon="eye" class="m-r-10"></fa-icon>
|
<fa-icon icon="eye" class="m-r-10"></fa-icon>
|
||||||
</button>
|
</button>
|
||||||
<button mat-raised-button class="account-action-button" color="primary"
|
<button mat-raised-button class="account-action-button" color="primary"
|
||||||
*ngIf="guarantor.status && guarantor.guarantorType.id == 3 && guarantor.id">
|
*ngIf="guarantor.status && guarantor.guarantorType.id === 3 && guarantor.id">
|
||||||
<fa-icon icon="edit" class="m-r-10"></fa-icon>
|
<fa-icon icon="edit" class="m-r-10"></fa-icon>
|
||||||
</button>
|
</button>
|
||||||
<span *ngIf="guarantor.status">
|
<span *ngIf="guarantor.status">
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -15,7 +15,7 @@ import { SettingsService } from 'app/settings/settings.service';
|
|||||||
templateUrl: './loan-documents-tab.component.html',
|
templateUrl: './loan-documents-tab.component.html',
|
||||||
styleUrls: ['./loan-documents-tab.component.scss']
|
styleUrls: ['./loan-documents-tab.component.scss']
|
||||||
})
|
})
|
||||||
export class LoanDocumentsTabComponent implements OnInit {
|
export class LoanDocumentsTabComponent {
|
||||||
|
|
||||||
/** Stores the resolved loan documents data */
|
/** Stores the resolved loan documents data */
|
||||||
entityDocuments: any;
|
entityDocuments: any;
|
||||||
@@ -37,8 +37,6 @@ export class LoanDocumentsTabComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() { }
|
|
||||||
|
|
||||||
getLoanDocumentsData(data: any) {
|
getLoanDocumentsData(data: any) {
|
||||||
data.forEach((ele: any) => {
|
data.forEach((ele: any) => {
|
||||||
ele.docUrl = this.settingsService.serverUrl + '/loans/' + ele.parentEntityId + '/documents/' + ele.id + '/attachment?tenantIdentifier=' + environment.fineractPlatformTenantId;
|
ele.docUrl = this.settingsService.serverUrl + '/loans/' + ele.parentEntityId + '/documents/' + ele.id + '/attachment?tenantIdentifier=' + environment.fineractPlatformTenantId;
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
<span class="m-r-10">{{'labels.text.' + entityType | translate}} {{"labels.inputs.name" | translate}} :</span> {{loanDetailsData.clientName ||
|
<span class="m-r-10">{{'labels.text.' + entityType | translate}} {{"labels.inputs.name" | translate}} :</span> {{loanDetailsData.clientName ||
|
||||||
loanDetailsData.groupName}}<span class="m-l-5">({{loanDetailsData.clientAccountNo}})</span><br />
|
loanDetailsData.groupName}}<span class="m-l-5">({{loanDetailsData.clientAccountNo}})</span><br />
|
||||||
</span>
|
</span>
|
||||||
<div *ngIf="loanDisplayArrearsDelinquency != 1">
|
<div *ngIf="loanDisplayArrearsDelinquency !== 1">
|
||||||
<table class="account-overview">
|
<table class="account-overview">
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr *ngIf="loanDetailsData.delinquencyRange">
|
<tr *ngIf="loanDetailsData.delinquencyRange">
|
||||||
@@ -43,7 +43,7 @@
|
|||||||
<td>{{loanDetailsData?.delinquent.pastDueDays | formatNumber }}</td>
|
<td>{{loanDetailsData?.delinquent.pastDueDays | formatNumber }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr *ngIf="loanDetailsData.delinquent && loanDetailsData.delinquent.delinquentDays > 0
|
<tr *ngIf="loanDetailsData.delinquent && loanDetailsData.delinquent.delinquentDays > 0
|
||||||
&& loanDetailsData.delinquent.pastDueDays != loanDetailsData.delinquent.delinquentDays">
|
&& loanDetailsData.delinquent.pastDueDays !== loanDetailsData.delinquent.delinquentDays">
|
||||||
<td>{{"labels.inputs.Delinquent Days" | translate}} :</td>
|
<td>{{"labels.inputs.Delinquent Days" | translate}} :</td>
|
||||||
<td>{{loanDetailsData?.delinquent.delinquentDays | formatNumber }}</td>
|
<td>{{loanDetailsData?.delinquent.delinquentDays | formatNumber }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Components */
|
/** Custom Components */
|
||||||
@@ -12,7 +12,7 @@ import { AuthenticationService } from '../../../core/authentication/authenticati
|
|||||||
templateUrl: './notes-tab.component.html',
|
templateUrl: './notes-tab.component.html',
|
||||||
styleUrls: ['./notes-tab.component.scss']
|
styleUrls: ['./notes-tab.component.scss']
|
||||||
})
|
})
|
||||||
export class NotesTabComponent implements OnInit {
|
export class NotesTabComponent {
|
||||||
|
|
||||||
entityId: string;
|
entityId: string;
|
||||||
username: string;
|
username: string;
|
||||||
@@ -29,8 +29,6 @@ export class NotesTabComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() { }
|
|
||||||
|
|
||||||
addNote(noteContent: any) {
|
addNote(noteContent: any) {
|
||||||
this.loansService.createLoanNote(this.entityId, noteContent).subscribe((response: any) => {
|
this.loansService.createLoanNote(this.entityId, noteContent).subscribe((response: any) => {
|
||||||
this.entityNotes.push({
|
this.entityNotes.push({
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, Input, OnInit } from '@angular/core';
|
import { Component, Input } 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 { TranslateService } from '@ngx-translate/core';
|
import { TranslateService } from '@ngx-translate/core';
|
||||||
@@ -13,7 +13,7 @@ import { ConfirmationDialogComponent } from 'app/shared/confirmation-dialog/conf
|
|||||||
templateUrl: './reschedule-loan-tab.component.html',
|
templateUrl: './reschedule-loan-tab.component.html',
|
||||||
styleUrls: ['./reschedule-loan-tab.component.scss']
|
styleUrls: ['./reschedule-loan-tab.component.scss']
|
||||||
})
|
})
|
||||||
export class RescheduleLoanTabComponent implements OnInit {
|
export class RescheduleLoanTabComponent {
|
||||||
@Input() loanStatus: LoanStatus;
|
@Input() loanStatus: LoanStatus;
|
||||||
|
|
||||||
loanRescheduleData: any;
|
loanRescheduleData: any;
|
||||||
@@ -33,9 +33,6 @@ export class RescheduleLoanTabComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
|
||||||
}
|
|
||||||
|
|
||||||
manageRequest(request: any, command: string): void {
|
manageRequest(request: any, command: string): void {
|
||||||
const approveLoanRescheduleDialogRef = this.dialog.open(ConfirmationDialogComponent, {
|
const approveLoanRescheduleDialogRef = this.dialog.open(ConfirmationDialogComponent, {
|
||||||
data: { heading: `${command}` + this.translateService.instant('labels.heading.Loan Reschedule'), dialogContext: this.translateService.instant('labels.dialogContext.Are you sure you want') + `${command}` + this.translateService.instant('labels.dialogContext.the Loan Reschedule') + `${request.id}` }
|
data: { heading: `${command}` + this.translateService.instant('labels.heading.Loan Reschedule'), dialogContext: this.translateService.instant('labels.dialogContext.Are you sure you want') + `${command}` + this.translateService.instant('labels.dialogContext.the Loan Reschedule') + `${request.id}` }
|
||||||
|
|||||||
+2
-2
@@ -23,8 +23,8 @@
|
|||||||
<ng-container matColumnDef="beneficiary">
|
<ng-container matColumnDef="beneficiary">
|
||||||
<th mat-header-cell *matHeaderCellDef> {{"labels.inputs.Beneficiary" | translate}} </th>
|
<th mat-header-cell *matHeaderCellDef> {{"labels.inputs.Beneficiary" | translate}} </th>
|
||||||
<td mat-cell *matCellDef="let instruction">
|
<td mat-cell *matCellDef="let instruction">
|
||||||
<span *ngIf="instruction.fromClient.id != instruction.toClient.id"> {{instruction.toClient.displayName}} </span>
|
<span *ngIf="instruction.fromClient.id !== instruction.toClient.id"> {{instruction.toClient.displayName}} </span>
|
||||||
<span *ngIf="instruction.fromClient.id == instruction.toClient.id">{{"labels.inputs.Own Account" | translate}}</span>
|
<span *ngIf="instruction.fromClient.id === instruction.toClient.id">{{"labels.inputs.Own Account" | translate}}</span>
|
||||||
</td>
|
</td>
|
||||||
</ng-container>
|
</ng-container>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, ViewChild } from '@angular/core';
|
import { Component, Input, ViewChild } from '@angular/core';
|
||||||
|
|
||||||
/** Custom Components */
|
/** Custom Components */
|
||||||
import { LoanAccountTableComponent } from '../loan-account-table/loan-account-table.component';
|
import { LoanAccountTableComponent } from '../loan-account-table/loan-account-table.component';
|
||||||
@@ -11,7 +11,7 @@ import { SavingsAccountTableComponent } from '../savings-account-table/savings-a
|
|||||||
templateUrl: './center-navigation.component.html',
|
templateUrl: './center-navigation.component.html',
|
||||||
styleUrls: ['./center-navigation.component.scss']
|
styleUrls: ['./center-navigation.component.scss']
|
||||||
})
|
})
|
||||||
export class CenterNavigationComponent implements OnInit {
|
export class CenterNavigationComponent {
|
||||||
|
|
||||||
@ViewChild(LoanAccountTableComponent) loanAccountTableComponent: LoanAccountTableComponent;
|
@ViewChild(LoanAccountTableComponent) loanAccountTableComponent: LoanAccountTableComponent;
|
||||||
@ViewChild(SavingsAccountTableComponent) savingsAccountTableComponent: SavingsAccountTableComponent;
|
@ViewChild(SavingsAccountTableComponent) savingsAccountTableComponent: SavingsAccountTableComponent;
|
||||||
@@ -23,7 +23,4 @@ export class CenterNavigationComponent implements OnInit {
|
|||||||
|
|
||||||
constructor() { }
|
constructor() { }
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, ViewChild } from '@angular/core';
|
import { Component, Input, ViewChild } from '@angular/core';
|
||||||
|
|
||||||
/** Custom Components */
|
/** Custom Components */
|
||||||
import { LoanAccountTableComponent } from '../loan-account-table/loan-account-table.component';
|
import { LoanAccountTableComponent } from '../loan-account-table/loan-account-table.component';
|
||||||
@@ -12,7 +12,7 @@ import { MemberGroupsComponent } from '../member-groups/member-groups.component'
|
|||||||
templateUrl: './client-navigation.component.html',
|
templateUrl: './client-navigation.component.html',
|
||||||
styleUrls: ['./client-navigation.component.scss']
|
styleUrls: ['./client-navigation.component.scss']
|
||||||
})
|
})
|
||||||
export class ClientNavigationComponent implements OnInit {
|
export class ClientNavigationComponent {
|
||||||
|
|
||||||
@ViewChild(LoanAccountTableComponent) loanAccountTableComponent: LoanAccountTableComponent;
|
@ViewChild(LoanAccountTableComponent) loanAccountTableComponent: LoanAccountTableComponent;
|
||||||
@ViewChild(SavingsAccountTableComponent) savingsAccountTableComponent: SavingsAccountTableComponent;
|
@ViewChild(SavingsAccountTableComponent) savingsAccountTableComponent: SavingsAccountTableComponent;
|
||||||
@@ -24,7 +24,4 @@ export class ClientNavigationComponent implements OnInit {
|
|||||||
|
|
||||||
constructor() { }
|
constructor() { }
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, ViewChild } from '@angular/core';
|
import { Component, Input, ViewChild } from '@angular/core';
|
||||||
|
|
||||||
/** Custom Components */
|
/** Custom Components */
|
||||||
import { LoanAccountTableComponent } from '../loan-account-table/loan-account-table.component';
|
import { LoanAccountTableComponent } from '../loan-account-table/loan-account-table.component';
|
||||||
@@ -11,7 +11,7 @@ import { SavingsAccountTableComponent } from '../savings-account-table/savings-a
|
|||||||
templateUrl: './group-navigation.component.html',
|
templateUrl: './group-navigation.component.html',
|
||||||
styleUrls: ['./group-navigation.component.scss']
|
styleUrls: ['./group-navigation.component.scss']
|
||||||
})
|
})
|
||||||
export class GroupNavigationComponent implements OnInit {
|
export class GroupNavigationComponent {
|
||||||
|
|
||||||
@ViewChild(LoanAccountTableComponent) loanAccountTableComponent: LoanAccountTableComponent;
|
@ViewChild(LoanAccountTableComponent) loanAccountTableComponent: LoanAccountTableComponent;
|
||||||
@ViewChild(SavingsAccountTableComponent) savingsAccountTableComponent: SavingsAccountTableComponent;
|
@ViewChild(SavingsAccountTableComponent) savingsAccountTableComponent: SavingsAccountTableComponent;
|
||||||
@@ -22,7 +22,4 @@ export class GroupNavigationComponent implements OnInit {
|
|||||||
|
|
||||||
constructor() { }
|
constructor() { }
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, ViewChild } from '@angular/core';
|
import { Component, Input, ViewChild } 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 { MatTableDataSource } from '@angular/material/table';
|
import { MatTableDataSource } from '@angular/material/table';
|
||||||
@@ -12,7 +12,7 @@ import { AccountsFilterPipe } from '../../pipes/accounts-filter.pipe';
|
|||||||
templateUrl: './loan-account-table.component.html',
|
templateUrl: './loan-account-table.component.html',
|
||||||
styleUrls: ['./loan-account-table.component.scss']
|
styleUrls: ['./loan-account-table.component.scss']
|
||||||
})
|
})
|
||||||
export class LoanAccountTableComponent implements OnInit {
|
export class LoanAccountTableComponent {
|
||||||
|
|
||||||
/** Columns to be displayed in the loan accounts table. */
|
/** Columns to be displayed in the loan accounts table. */
|
||||||
displayedColumns: string[] = ['accountNo', 'productName', 'Type', 'Status'];
|
displayedColumns: string[] = ['accountNo', 'productName', 'Type', 'Status'];
|
||||||
@@ -50,9 +50,6 @@ export class LoanAccountTableComponent implements OnInit {
|
|||||||
this.dataSource.filter = filterValue.trim().toLowerCase();
|
this.dataSource.filter = filterValue.trim().toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Toggles the loan status
|
* Toggles the loan status
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, ViewChild } from '@angular/core';
|
import { Component, Input, ViewChild } 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 { MatTableDataSource } from '@angular/material/table';
|
import { MatTableDataSource } from '@angular/material/table';
|
||||||
@@ -9,7 +9,7 @@ import { MatTableDataSource } from '@angular/material/table';
|
|||||||
templateUrl: './member-groups.component.html',
|
templateUrl: './member-groups.component.html',
|
||||||
styleUrls: ['./member-groups.component.scss']
|
styleUrls: ['./member-groups.component.scss']
|
||||||
})
|
})
|
||||||
export class MemberGroupsComponent implements OnInit {
|
export class MemberGroupsComponent {
|
||||||
|
|
||||||
/** Columns to be displayed in the member groups table. */
|
/** Columns to be displayed in the member groups table. */
|
||||||
displayedColumns: string[] = ['accountNo', 'name'];
|
displayedColumns: string[] = ['accountNo', 'name'];
|
||||||
@@ -38,6 +38,4 @@ export class MemberGroupsComponent implements OnInit {
|
|||||||
this.dataSource.filter = filterValue.trim().toLowerCase();
|
this.dataSource.filter = filterValue.trim().toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() { }
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,20 +1,17 @@
|
|||||||
|
|
||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input } from '@angular/core';
|
import { Component, Input } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'mifosx-office-navigation',
|
selector: 'mifosx-office-navigation',
|
||||||
templateUrl: './office-navigation.component.html',
|
templateUrl: './office-navigation.component.html',
|
||||||
styleUrls: ['./office-navigation.component.scss']
|
styleUrls: ['./office-navigation.component.scss']
|
||||||
})
|
})
|
||||||
export class OfficeNavigationComponent implements OnInit {
|
export class OfficeNavigationComponent {
|
||||||
|
|
||||||
@Input() officeData: any;
|
@Input() officeData: any;
|
||||||
@Input() employeeData: any;
|
@Input() employeeData: any;
|
||||||
|
|
||||||
constructor() { }
|
constructor() { }
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, ViewChild } from '@angular/core';
|
import { Component, Input, ViewChild } 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 { MatTableDataSource } from '@angular/material/table';
|
import { MatTableDataSource } from '@angular/material/table';
|
||||||
@@ -12,7 +12,7 @@ import { AccountsFilterPipe } from '../../pipes/accounts-filter.pipe';
|
|||||||
templateUrl: './savings-account-table.component.html',
|
templateUrl: './savings-account-table.component.html',
|
||||||
styleUrls: ['./savings-account-table.component.scss']
|
styleUrls: ['./savings-account-table.component.scss']
|
||||||
})
|
})
|
||||||
export class SavingsAccountTableComponent implements OnInit {
|
export class SavingsAccountTableComponent {
|
||||||
|
|
||||||
/** Columns to be displayed in the savings accounts table. */
|
/** Columns to be displayed in the savings accounts table. */
|
||||||
displayedColumns: string[] = ['accountNo', 'productName', 'accountBalance', 'Status'];
|
displayedColumns: string[] = ['accountNo', 'productName', 'accountBalance', 'Status'];
|
||||||
@@ -50,9 +50,6 @@ export class SavingsAccountTableComponent implements OnInit {
|
|||||||
this.dataSource.filter = filterValue.trim().toLowerCase();
|
this.dataSource.filter = filterValue.trim().toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Toggles the savings status
|
* Toggles the savings status
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input, ViewChild } from '@angular/core';
|
import { Component, Input, ViewChild } 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 { MatTableDataSource } from '@angular/material/table';
|
import { MatTableDataSource } from '@angular/material/table';
|
||||||
@@ -12,7 +12,7 @@ import { AccountsFilterPipe } from '../../pipes/accounts-filter.pipe';
|
|||||||
templateUrl: './share-account-table.component.html',
|
templateUrl: './share-account-table.component.html',
|
||||||
styleUrls: ['./share-account-table.component.scss']
|
styleUrls: ['./share-account-table.component.scss']
|
||||||
})
|
})
|
||||||
export class ShareAccountTableComponent implements OnInit {
|
export class ShareAccountTableComponent {
|
||||||
|
|
||||||
/** Columns to be displayed in the share accounts table. */
|
/** Columns to be displayed in the share accounts table. */
|
||||||
displayedColumns: string[] = ['accountNo', 'productName', 'totalApprovedShares', 'Status'];
|
displayedColumns: string[] = ['accountNo', 'productName', 'totalApprovedShares', 'Status'];
|
||||||
@@ -50,9 +50,6 @@ export class ShareAccountTableComponent implements OnInit {
|
|||||||
this.dataSource.filter = filterValue.trim().toLowerCase();
|
this.dataSource.filter = filterValue.trim().toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Toggles the share status
|
* Toggles the share status
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -1,19 +1,16 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit, Input } from '@angular/core';
|
import { Component, Input } from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'mifosx-staff-navigation',
|
selector: 'mifosx-staff-navigation',
|
||||||
templateUrl: './staff-navigation.component.html',
|
templateUrl: './staff-navigation.component.html',
|
||||||
styleUrls: ['./staff-navigation.component.scss']
|
styleUrls: ['./staff-navigation.component.scss']
|
||||||
})
|
})
|
||||||
export class StaffNavigationComponent implements OnInit {
|
export class StaffNavigationComponent {
|
||||||
|
|
||||||
@Input() employeeData: any;
|
@Input() employeeData: any;
|
||||||
@Input() centerData: any;
|
@Input() centerData: any;
|
||||||
|
|
||||||
constructor() { }
|
constructor() { }
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { MatDialog } from '@angular/material/dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ import { DeleteDialogComponent } from 'app/shared/delete-dialog/delete-dialog.co
|
|||||||
templateUrl: './view-adhoc-query.component.html',
|
templateUrl: './view-adhoc-query.component.html',
|
||||||
styleUrls: ['./view-adhoc-query.component.scss']
|
styleUrls: ['./view-adhoc-query.component.scss']
|
||||||
})
|
})
|
||||||
export class ViewAdhocQueryComponent implements OnInit {
|
export class ViewAdhocQueryComponent {
|
||||||
|
|
||||||
/** Adhoc query data. */
|
/** Adhoc query data. */
|
||||||
adhocQueryData: any;
|
adhocQueryData: any;
|
||||||
@@ -38,9 +38,6 @@ export class ViewAdhocQueryComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieves the report run frequency value from id
|
* Retrieves the report run frequency value from id
|
||||||
* @returns {string} Report run frequency value.
|
* @returns {string} Report run frequency value.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Bulk Import component.
|
* Bulk Import component.
|
||||||
@@ -9,14 +9,12 @@ import { Component, OnInit } from '@angular/core';
|
|||||||
templateUrl: './bulk-import.component.html',
|
templateUrl: './bulk-import.component.html',
|
||||||
styleUrls: ['./bulk-import.component.scss']
|
styleUrls: ['./bulk-import.component.scss']
|
||||||
})
|
})
|
||||||
export class BulkImportComponent implements OnInit {
|
export class BulkImportComponent {
|
||||||
// Initialize an array of 17 boolean values, all set to false
|
// Initialize an array of 17 boolean values, all set to false
|
||||||
arrowBooleans: boolean[] = new Array(17).fill(false);
|
arrowBooleans: boolean[] = new Array(17).fill(false);
|
||||||
|
|
||||||
constructor() {}
|
constructor() {}
|
||||||
|
|
||||||
ngOnInit() {}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Popover function
|
* Popover function
|
||||||
* @param arrowNumber - The index of the boolean value to toggle.
|
* @param arrowNumber - The index of the boolean value to toggle.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -10,7 +10,7 @@ import { ActivatedRoute } from '@angular/router';
|
|||||||
templateUrl: './view-employee.component.html',
|
templateUrl: './view-employee.component.html',
|
||||||
styleUrls: ['./view-employee.component.scss']
|
styleUrls: ['./view-employee.component.scss']
|
||||||
})
|
})
|
||||||
export class ViewEmployeeComponent implements OnInit {
|
export class ViewEmployeeComponent {
|
||||||
|
|
||||||
/** Employee data. */
|
/** Employee data. */
|
||||||
employeeData: any;
|
employeeData: any;
|
||||||
@@ -25,7 +25,4 @@ export class ViewEmployeeComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ActivatedRoute } from '@angular/router';
|
import { ActivatedRoute } from '@angular/router';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
@@ -6,7 +6,7 @@ import { ActivatedRoute } from '@angular/router';
|
|||||||
templateUrl: './view-fund.component.html',
|
templateUrl: './view-fund.component.html',
|
||||||
styleUrls: ['./view-fund.component.scss']
|
styleUrls: ['./view-fund.component.scss']
|
||||||
})
|
})
|
||||||
export class ViewFundComponent implements OnInit {
|
export class ViewFundComponent {
|
||||||
|
|
||||||
/** Fund data. */
|
/** Fund data. */
|
||||||
fundData: any;
|
fundData: any;
|
||||||
@@ -21,7 +21,4 @@ export class ViewFundComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { AfterViewInit, Component, ElementRef, OnInit, TemplateRef, ViewChild } from '@angular/core';
|
import { AfterViewInit, Component, ElementRef, TemplateRef, ViewChild } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
|
|
||||||
/** Custom Services */
|
/** Custom Services */
|
||||||
@@ -14,7 +14,7 @@ import { PopoverService } from '../configuration-wizard/popover/popover.service'
|
|||||||
templateUrl: './organization.component.html',
|
templateUrl: './organization.component.html',
|
||||||
styleUrls: ['./organization.component.scss']
|
styleUrls: ['./organization.component.scss']
|
||||||
})
|
})
|
||||||
export class OrganizationComponent implements OnInit, AfterViewInit {
|
export class OrganizationComponent implements AfterViewInit {
|
||||||
|
|
||||||
shouldShowFundMapping = false;
|
shouldShowFundMapping = false;
|
||||||
/* Reference of manage offices */
|
/* Reference of manage offices */
|
||||||
@@ -55,9 +55,6 @@ export class OrganizationComponent implements OnInit, AfterViewInit {
|
|||||||
private configurationWizardService: ConfigurationWizardService,
|
private configurationWizardService: ConfigurationWizardService,
|
||||||
private popoverService: PopoverService) { }
|
private popoverService: PopoverService) { }
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Popover function
|
* Popover function
|
||||||
* @param template TemplateRef<any>.
|
* @param template TemplateRef<any>.
|
||||||
|
|||||||
@@ -52,7 +52,7 @@
|
|||||||
|
|
||||||
<mifosx-campaign-preview-step
|
<mifosx-campaign-preview-step
|
||||||
[smsCampaignTemplate]="smsCampaignTemplate"
|
[smsCampaignTemplate]="smsCampaignTemplate"
|
||||||
[campaign]="smsCampaign" (submit)="submit()"
|
[campaign]="smsCampaign" (submitEvent)="submit()"
|
||||||
>
|
>
|
||||||
</mifosx-campaign-preview-step>
|
</mifosx-campaign-preview-step>
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,7 @@
|
|||||||
<mifosx-campaign-preview-step
|
<mifosx-campaign-preview-step
|
||||||
[campaign]="smsCampaign"
|
[campaign]="smsCampaign"
|
||||||
[editedCampaignMessage]="campaignMessage"
|
[editedCampaignMessage]="campaignMessage"
|
||||||
[smsCampaignTemplate]="smsCampaignTemplate" (submit)="submit()"
|
[smsCampaignTemplate]="smsCampaignTemplate" (submitEvent)="submit()"
|
||||||
>
|
>
|
||||||
</mifosx-campaign-preview-step>
|
</mifosx-campaign-preview-step>
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -29,7 +29,7 @@
|
|||||||
<button mat-raised-button [routerLink]="['../']">
|
<button mat-raised-button [routerLink]="['../']">
|
||||||
{{'labels.buttons.Cancel' | translate }}
|
{{'labels.buttons.Cancel' | translate }}
|
||||||
</button>
|
</button>
|
||||||
<button mat-raised-button color="primary" (click)="submit.emit()">
|
<button mat-raised-button color="primary" (click)="submitEvent.emit()">
|
||||||
{{'labels.buttons.Submit' | translate }}
|
{{'labels.buttons.Submit' | translate }}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
+1
-1
@@ -24,7 +24,7 @@ export class CampaignPreviewStepComponent implements OnInit {
|
|||||||
smsProviders: any[];
|
smsProviders: any[];
|
||||||
|
|
||||||
/** Emits submit() event */
|
/** Emits submit() event */
|
||||||
@Output() submit = new EventEmitter;
|
@Output() submitEvent = new EventEmitter;
|
||||||
|
|
||||||
constructor() { }
|
constructor() { }
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { ActivatedRoute, Router } from '@angular/router';
|
import { ActivatedRoute, Router } from '@angular/router';
|
||||||
import { MatDialog } from '@angular/material/dialog';
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
|
|
||||||
@@ -17,7 +17,7 @@ import { DeleteDialogComponent } from '../../../shared/delete-dialog/delete-dial
|
|||||||
templateUrl: './view-teller.component.html',
|
templateUrl: './view-teller.component.html',
|
||||||
styleUrls: ['./view-teller.component.scss']
|
styleUrls: ['./view-teller.component.scss']
|
||||||
})
|
})
|
||||||
export class ViewTellerComponent implements OnInit {
|
export class ViewTellerComponent {
|
||||||
|
|
||||||
/** Teller data. */
|
/** Teller data. */
|
||||||
tellerData: any;
|
tellerData: any;
|
||||||
@@ -38,9 +38,6 @@ export class ViewTellerComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes the teller and redirects to tellers.
|
* Deletes the teller and redirects to tellers.
|
||||||
*/
|
*/
|
||||||
|
|||||||
@@ -95,12 +95,12 @@
|
|||||||
* In shares case: Only for charge time type: SHARE_PURCHASE and SHARE_REDEEM and with charge calculation type as % amount only
|
* In shares case: Only for charge time type: SHARE_PURCHASE and SHARE_REDEEM and with charge calculation type as % amount only
|
||||||
-->
|
-->
|
||||||
<mat-form-field fxFlex="48%"
|
<mat-form-field fxFlex="48%"
|
||||||
*ngIf="(chargeForm.controls.chargeAppliesTo.value === 1 && (chargeForm.controls.chargeCalculationType.value === 2 || chargeForm.controls.chargeCalculationType.value === 3 || chargeForm.controls.chargeCalculationType.value === 4 || chargeForm.controls.chargeCalculationType.value==5)) || (chargeForm.controls.chargeAppliesTo.value === 2 && (chargeForm.controls.chargeTimeType.value === 16 || chargeForm.controls.chargeTimeType.value === 5)&&(chargeForm.controls.chargeCalculationType.value === 2)) || (chargeForm.controls.chargeAppliesTo.value === 4 && (chargeForm.controls.chargeTimeType.value==14 || chargeForm.controls.chargeTimeType.value==15) && chargeForm.controls.chargeCalculationType.value === 2)">
|
*ngIf="(chargeForm.controls.chargeAppliesTo.value === 1 && (chargeForm.controls.chargeCalculationType.value === 2 || chargeForm.controls.chargeCalculationType.value === 3 || chargeForm.controls.chargeCalculationType.value === 4 || chargeForm.controls.chargeCalculationType.value===5)) || (chargeForm.controls.chargeAppliesTo.value === 2 && (chargeForm.controls.chargeTimeType.value === 16 || chargeForm.controls.chargeTimeType.value === 5)&&(chargeForm.controls.chargeCalculationType.value === 2)) || (chargeForm.controls.chargeAppliesTo.value === 4 && (chargeForm.controls.chargeTimeType.value===14 || chargeForm.controls.chargeTimeType.value===15) && chargeForm.controls.chargeCalculationType.value === 2)">
|
||||||
<mat-label>{{"labels.inputs.Minimum Charge Cap" | translate}}</mat-label>
|
<mat-label>{{"labels.inputs.Minimum Charge Cap" | translate}}</mat-label>
|
||||||
<input matInput autofocus formControlName="minCap">
|
<input matInput autofocus formControlName="minCap">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
<mat-form-field fxFlex="48%"
|
<mat-form-field fxFlex="48%"
|
||||||
*ngIf="(chargeForm.controls.chargeAppliesTo.value === 1 && (chargeForm.controls.chargeCalculationType.value === 2 || chargeForm.controls.chargeCalculationType.value === 3 || chargeForm.controls.chargeCalculationType.value === 4 || chargeForm.controls.chargeCalculationType.value==5)) || (chargeForm.controls.chargeAppliesTo.value === 2 && (chargeForm.controls.chargeTimeType.value === 16 || chargeForm.controls.chargeTimeType.value === 5)&&(chargeForm.controls.chargeCalculationType.value === 2)) || (chargeForm.controls.chargeAppliesTo.value === 4 && (chargeForm.controls.chargeTimeType.value==14 || chargeForm.controls.chargeTimeType.value==15) && chargeForm.controls.chargeCalculationType.value === 2)">
|
*ngIf="(chargeForm.controls.chargeAppliesTo.value === 1 && (chargeForm.controls.chargeCalculationType.value === 2 || chargeForm.controls.chargeCalculationType.value === 3 || chargeForm.controls.chargeCalculationType.value === 4 || chargeForm.controls.chargeCalculationType.value===5)) || (chargeForm.controls.chargeAppliesTo.value === 2 && (chargeForm.controls.chargeTimeType.value === 16 || chargeForm.controls.chargeTimeType.value === 5)&&(chargeForm.controls.chargeCalculationType.value === 2)) || (chargeForm.controls.chargeAppliesTo.value === 4 && (chargeForm.controls.chargeTimeType.value===14 || chargeForm.controls.chargeTimeType.value===15) && chargeForm.controls.chargeCalculationType.value === 2)">
|
||||||
<mat-label>{{"labels.inputs.Maximum Charge Cap" | translate}}</mat-label>
|
<mat-label>{{"labels.inputs.Maximum Charge Cap" | translate}}</mat-label>
|
||||||
<input matInput autofocus formControlName="maxCap">
|
<input matInput autofocus formControlName="maxCap">
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
|
|||||||
@@ -105,20 +105,20 @@
|
|||||||
{{ chargeData.active === true | yesNo }}
|
{{ chargeData.active === true | yesNo }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div fxFlex="50%" class="mat-body-strong" *ngIf="chargeData.chargeTimeType.id == 9 && chargeData.feeFrequency">
|
<div fxFlex="50%" class="mat-body-strong" *ngIf="chargeData.chargeTimeType.id === 9 && chargeData.feeFrequency">
|
||||||
{{"labels.inputs.Add Fee Frequency" | translate}}
|
{{"labels.inputs.Add Fee Frequency" | translate}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div fxFlex="50%"
|
<div fxFlex="50%"
|
||||||
*ngIf="chargeData.chargeTimeType.id == 9 && chargeData.feeFrequency && chargeData.feeFrequency">
|
*ngIf="chargeData.chargeTimeType.id === 9 && chargeData.feeFrequency && chargeData.feeFrequency">
|
||||||
{{ chargeData.feeFrequency.value | translateKey:'catalogs' }}
|
{{ chargeData.feeFrequency.value | translateKey:'catalogs' }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div fxFlex="50%" class="mat-body-strong" *ngIf="chargeData.chargeTimeType.id == 9 && chargeData.feeInterval">
|
<div fxFlex="50%" class="mat-body-strong" *ngIf="chargeData.chargeTimeType.id === 9 && chargeData.feeInterval">
|
||||||
{{"labels.inputs.Frequency Interval" | translate}}
|
{{"labels.inputs.Frequency Interval" | translate}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div fxFlex="50%" *ngIf="chargeData.chargeTimeType.id == 9 && chargeData.feeInterval">
|
<div fxFlex="50%" *ngIf="chargeData.chargeTimeType.id === 9 && chargeData.feeInterval">
|
||||||
{{ chargeData.feeInterval }}
|
{{ chargeData.feeInterval }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
/** Angular Imports */
|
/** Angular Imports */
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component } 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';
|
||||||
|
|
||||||
@@ -18,7 +18,7 @@ import { DeleteDialogComponent } from '../../../shared/delete-dialog/delete-dial
|
|||||||
templateUrl: './view-charge.component.html',
|
templateUrl: './view-charge.component.html',
|
||||||
styleUrls: ['./view-charge.component.scss']
|
styleUrls: ['./view-charge.component.scss']
|
||||||
})
|
})
|
||||||
export class ViewChargeComponent implements OnInit {
|
export class ViewChargeComponent {
|
||||||
|
|
||||||
/** Charge data. */
|
/** Charge data. */
|
||||||
chargeData: any;
|
chargeData: any;
|
||||||
@@ -49,9 +49,6 @@ export class ViewChargeComponent implements OnInit {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit() {
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Deletes the charge and redirects to charges.
|
* Deletes the charge and redirects to charges.
|
||||||
*/
|
*/
|
||||||
|
|||||||
+1
-1
@@ -96,7 +96,7 @@
|
|||||||
[chartSlabsDisplayedColumns]="fixedDepositProductInterestRateChartStep.chartSlabsDisplayedColumns"
|
[chartSlabsDisplayedColumns]="fixedDepositProductInterestRateChartStep.chartSlabsDisplayedColumns"
|
||||||
[accountingRuleData]="accountingRuleData"
|
[accountingRuleData]="accountingRuleData"
|
||||||
[fixedDepositProduct]="fixedDepositProduct"
|
[fixedDepositProduct]="fixedDepositProduct"
|
||||||
(submit)="submit()"
|
(submitEvent)="submit()"
|
||||||
>
|
>
|
||||||
</mifosx-fixed-deposit-product-preview-step>
|
</mifosx-fixed-deposit-product-preview-step>
|
||||||
|
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user