Fixed Deposit account Transaction tab
This commit is contained in:
committed by
Adam Saghy
parent
4271ca92dc
commit
6083af05ef
+6
-4
@@ -90,10 +90,12 @@
|
|||||||
[active]="IRC.isActive">
|
[active]="IRC.isActive">
|
||||||
{{"labels.inputs.Interest Rate Chart" | translate }}
|
{{"labels.inputs.Interest Rate Chart" | translate }}
|
||||||
</a>
|
</a>
|
||||||
<a mat-tab-link [routerLink]="['./transactions']" routerLinkActive #transactions="routerLinkActive"
|
<span *ngIf="showTransactions">
|
||||||
[active]="transactions.isActive">
|
<a mat-tab-link [routerLink]="['./transactions']" routerLinkActive #transactions="routerLinkActive"
|
||||||
{{"labels.inputs.Transactions" | translate }}
|
[active]="transactions.isActive">
|
||||||
</a>
|
{{"labels.inputs.Transactions" | translate }}
|
||||||
|
</a>
|
||||||
|
</span>
|
||||||
<a mat-tab-link [routerLink]="['./charges']" routerLinkActive #charges="routerLinkActive"
|
<a mat-tab-link [routerLink]="['./charges']" routerLinkActive #charges="routerLinkActive"
|
||||||
[active]="charges.isActive">
|
[active]="charges.isActive">
|
||||||
{{"labels.inputs.Charges" | translate }}
|
{{"labels.inputs.Charges" | translate }}
|
||||||
|
|||||||
+3
@@ -36,6 +36,7 @@ export class FixedDepositAccountViewComponent implements OnInit {
|
|||||||
/** Entity Type */
|
/** Entity Type */
|
||||||
entityType: string;
|
entityType: string;
|
||||||
currency: Currency;
|
currency: Currency;
|
||||||
|
showTransactions = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Fetches fixed deposits account data from `resolve`
|
* Fetches fixed deposits account data from `resolve`
|
||||||
@@ -54,6 +55,8 @@ export class FixedDepositAccountViewComponent implements OnInit {
|
|||||||
this.fixedDepositsAccountData = data.fixedDepositsAccountData;
|
this.fixedDepositsAccountData = data.fixedDepositsAccountData;
|
||||||
this.savingsDatatables = data.savingsDatatables;
|
this.savingsDatatables = data.savingsDatatables;
|
||||||
this.currency = this.fixedDepositsAccountData.currency;
|
this.currency = this.fixedDepositsAccountData.currency;
|
||||||
|
const status: any = data.fixedDepositsAccountData.status;
|
||||||
|
this.showTransactions = (status.id >= 300);
|
||||||
});
|
});
|
||||||
if (this.router.url.includes('clients')) {
|
if (this.router.url.includes('clients')) {
|
||||||
this.entityType = 'Client';
|
this.entityType = 'Client';
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
<div class="tab-container mat-typography" *ngIf="showTransactionsData">
|
<div class="tab-container mat-typography">
|
||||||
|
|
||||||
<div fxLayoutAlign="start">
|
<div fxLayoutAlign="start">
|
||||||
<div class="m-b-20">
|
<div class="m-b-20">
|
||||||
|
|||||||
-5
@@ -13,9 +13,6 @@ import { ActivatedRoute, Router } from '@angular/router';
|
|||||||
})
|
})
|
||||||
export class TransactionsTabComponent implements OnInit {
|
export class TransactionsTabComponent implements OnInit {
|
||||||
|
|
||||||
/** Fixed Deposits Account Status */
|
|
||||||
status: string;
|
|
||||||
showTransactionsData = false;
|
|
||||||
/** Transactions Data */
|
/** Transactions Data */
|
||||||
transactionsData: any;
|
transactionsData: any;
|
||||||
/** Columns to be displayed in transactions table. */
|
/** Columns to be displayed in transactions table. */
|
||||||
@@ -32,8 +29,6 @@ export class TransactionsTabComponent implements OnInit {
|
|||||||
private router: Router) {
|
private router: Router) {
|
||||||
this.route.parent.data.subscribe((data: { fixedDepositsAccountData: any }) => {
|
this.route.parent.data.subscribe((data: { fixedDepositsAccountData: any }) => {
|
||||||
this.transactionsData = data.fixedDepositsAccountData.transactions;
|
this.transactionsData = data.fixedDepositsAccountData.transactions;
|
||||||
this.status = data.fixedDepositsAccountData.status.value;
|
|
||||||
this.showTransactionsData = (this.status === 'Active');
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 6.7 KiB |
Reference in New Issue
Block a user