diff --git a/src/app/centers/centers-view/centers-view.component.html b/src/app/centers/centers-view/centers-view.component.html index 41571f05e..9e26b4bbd 100644 --- a/src/app/centers/centers-view/centers-view.component.html +++ b/src/app/centers/centers-view/centers-view.component.html @@ -28,7 +28,8 @@ Account #:{{centerViewData.accountNo}}
Office: {{centerViewData.officeName}}
- External Id: {{centerViewData.externalId}}
+ External Id: +
Staff: {{centerViewData.staffName}}
diff --git a/src/app/clients/client-stepper/client-preview-step/client-preview-step.component.html b/src/app/clients/client-stepper/client-preview-step/client-preview-step.component.html index bfa6df462..d6acccece 100644 --- a/src/app/clients/client-stepper/client-preview-step/client-preview-step.component.html +++ b/src/app/clients/client-stepper/client-preview-step/client-preview-step.component.html @@ -32,7 +32,9 @@
External Id - {{ client.externalId }} + + +
diff --git a/src/app/clients/clients-view/clients-view.component.html b/src/app/clients/clients-view/clients-view.component.html index 79352a8ac..aad54bc78 100644 --- a/src/app/clients/clients-view/clients-view.component.html +++ b/src/app/clients/clients-view/clients-view.component.html @@ -33,7 +33,7 @@

- Client Name : {{clientViewData.displayName}} + Client Name :

diff --git a/src/app/loans/loans-view/external-asset-owner-tab/external-asset-owner-tab.component.ts b/src/app/loans/loans-view/external-asset-owner-tab/external-asset-owner-tab.component.ts index 3ee3bc753..8ee7ab32b 100644 --- a/src/app/loans/loans-view/external-asset-owner-tab/external-asset-owner-tab.component.ts +++ b/src/app/loans/loans-view/external-asset-owner-tab/external-asset-owner-tab.component.ts @@ -11,6 +11,7 @@ import { CancelDialogComponent } from 'app/shared/cancel-dialog/cancel-dialog.co }) export class ExternalAssetOwnerTabComponent implements OnInit { + defaultDate = '9999-12-31'; loanTransfersData: any[] = []; activeTransferData: any; loanTransferColumns: string[] = ['status', 'effectiveFrom', 'ownerExternalId', 'transferExternalId', 'settlementDate', 'purchasePriceRatio', 'actions']; @@ -27,8 +28,6 @@ export class ExternalAssetOwnerTabComponent implements OnInit { this.loanTransfersData = data.loanTransfersData.empty ? [] : data.loanTransfersData.content; this.activeTransferData = data.activeTransferData || null; this.existActiveTransfer = (data.activeTransferData && data.activeTransferData.transferId != null); - console.log(this.existActiveTransfer); - console.log(this.activeTransferData); }); } @@ -40,7 +39,7 @@ export class ExternalAssetOwnerTabComponent implements OnInit { } itemCurrentStatus(item: any): string { - if (item.status === 'BUYBACK' && item.effectiveTo === '9999-12-31') { + if (this.isBuyBackPending(item)) { return item.status + ' PENDING'; } return item.status; @@ -54,6 +53,14 @@ export class ExternalAssetOwnerTabComponent implements OnInit { return (item.status === 'PENDING'); } + isPendingOrCanceled(item: any): boolean { + return ((item.status === 'PENDING') || (item.status === 'CANCELLED') || this.isBuyBackPending(item)); + } + + isBuyBackPending(item: any): boolean { + return (item.status === 'BUYBACK' && item.effectiveTo === this.defaultDate); + } + canBeCancelled(): boolean { return this.validateStatus('PENDING'); } @@ -62,7 +69,7 @@ export class ExternalAssetOwnerTabComponent implements OnInit { if (this.currentItem == null) { return true; } - return ['', 'BUYBACK'].includes(this.currentItem.status); + return ['', 'CANCELLED'].includes(this.currentItem.status) || (this.currentItem.status === 'BUYBACK' && this.currentItem.effectiveTo !== this.defaultDate); } canBeBuyed(): boolean { @@ -89,9 +96,9 @@ export class ExternalAssetOwnerTabComponent implements OnInit { const payload: any = { transferExternalId: this.currentItem.transferExternalId }; - this.externalAssetOwnerService.executeExternalAssetOwnerLoanCommand(this.currentItem.loan.loanId, payload, 'cancel') + this.externalAssetOwnerService.executeExternalAssetOwnerTransferCommand(this.currentItem.transferId, payload, 'cancel') .subscribe((result: any) => { - console.log(result); + this.reload(); }); } }); @@ -105,4 +112,9 @@ export class ExternalAssetOwnerTabComponent implements OnInit { ev.stopPropagation(); } + reload() { + const url: string = this.router.url; + this.router.navigateByUrl(`/`, {skipLocationChange: true}) + .then(() => this.router.navigate([url])); + } } diff --git a/src/app/loans/loans-view/general-tab/general-tab.component.html b/src/app/loans/loans-view/general-tab/general-tab.component.html index 6d1ba4069..a6e162a99 100644 --- a/src/app/loans/loans-view/general-tab/general-tab.component.html +++ b/src/app/loans/loans-view/general-tab/general-tab.component.html @@ -113,7 +113,9 @@ - {{loanDetails.externalId}} + + + Not Available @@ -159,11 +161,13 @@ - {{loanDetails.currency.name }} + {{loanDetails.currency.name }} {{loanDetails.currency.code}} - {{loanDetails.externalId}} + + + Not Available diff --git a/src/app/loans/loans-view/loan-account-actions/view-guarantors/view-guarantors.component.html b/src/app/loans/loans-view/loan-account-actions/view-guarantors/view-guarantors.component.html index 67b9c4276..c41336aea 100644 --- a/src/app/loans/loans-view/loan-account-actions/view-guarantors/view-guarantors.component.html +++ b/src/app/loans/loans-view/loan-account-actions/view-guarantors/view-guarantors.component.html @@ -25,7 +25,9 @@ External Id - {{dataObject.externalId}} + + + diff --git a/src/app/loans/loans-view/loans-view.component.html b/src/app/loans/loans-view/loans-view.component.html index 8a31e9c8d..962d2f419 100644 --- a/src/app/loans/loans-view/loans-view.component.html +++ b/src/app/loans/loans-view/loans-view.component.html @@ -20,8 +20,7 @@

- Loan Product: {{loanDetailsData.loanProductName}}({{loanDetailsData.accountNo}}) + Loan Product: {{loanDetailsData.loanProductName}}

{{entityType}} Name: {{loanDetailsData.clientName || diff --git a/src/app/loans/loans-view/transactions/view-transaction/view-transaction.component.html b/src/app/loans/loans-view/transactions/view-transaction/view-transaction.component.html index e02dd7bd6..4efdd2198 100644 --- a/src/app/loans/loans-view/transactions/view-transaction/view-transaction.component.html +++ b/src/app/loans/loans-view/transactions/view-transaction/view-transaction.component.html @@ -81,7 +81,7 @@
- {{ transactionData.externalId }} +
diff --git a/src/app/navigation/center-navigation/center-navigation.component.html b/src/app/navigation/center-navigation/center-navigation.component.html index 26bfce818..0a83bef3d 100644 --- a/src/app/navigation/center-navigation/center-navigation.component.html +++ b/src/app/navigation/center-navigation/center-navigation.component.html @@ -4,7 +4,7 @@

- {{ centerData.name }} + {{ centerData.name }} @@ -12,7 +12,12 @@

- Account No: {{ centerData.accountNo }} | {{ centerData.externalId ? '| External ID: ' + centerData.externalId : '' }} + Account No: + +

+

+ External Id: +

@@ -105,7 +110,7 @@ {{ groupData ? groupData.length : '' }}
- + @@ -115,7 +120,7 @@ - + diff --git a/src/app/navigation/office-navigation/office-navigation.component.html b/src/app/navigation/office-navigation/office-navigation.component.html index b09310f40..9185a0d79 100644 --- a/src/app/navigation/office-navigation/office-navigation.component.html +++ b/src/app/navigation/office-navigation/office-navigation.component.html @@ -4,16 +4,16 @@

- {{ officeData.name }} + {{ officeData.name }}

-

- {{ officeData.externalId ? 'External ID: ' + officeData.externalId : '' }} +

+ External Id:

- + diff --git a/src/app/organization/manage-funds/manage-funds.component.html b/src/app/organization/manage-funds/manage-funds.component.html index 3ea6780f6..9b5d457ec 100644 --- a/src/app/organization/manage-funds/manage-funds.component.html +++ b/src/app/organization/manage-funds/manage-funds.component.html @@ -27,7 +27,9 @@ External Id - {{ charge.externalId }} + + + diff --git a/src/app/organization/manage-funds/view-fund/view-fund.component.html b/src/app/organization/manage-funds/view-fund/view-fund.component.html index 56bd361ab..32272659b 100644 --- a/src/app/organization/manage-funds/view-fund/view-fund.component.html +++ b/src/app/organization/manage-funds/view-fund/view-fund.component.html @@ -26,7 +26,7 @@
- {{ fundData.externalId }} +
diff --git a/src/app/organization/offices/offices.component.html b/src/app/organization/offices/offices.component.html index 85e2f40c8..c20716a8d 100644 --- a/src/app/organization/offices/offices.component.html +++ b/src/app/organization/offices/offices.component.html @@ -170,11 +170,11 @@
- {{'External ID'|translate}} + {{'External Id'|translate}}
- {{ office.externalId }} +
diff --git a/src/app/organization/offices/view-office/general-tab/general-tab.component.html b/src/app/organization/offices/view-office/general-tab/general-tab.component.html index 2ab1a4ccd..31f3bda36 100644 --- a/src/app/organization/offices/view-office/general-tab/general-tab.component.html +++ b/src/app/organization/offices/view-office/general-tab/general-tab.component.html @@ -34,8 +34,11 @@
External Id
-
- {{ officeData.externalId ? officeData.externalId : 'Unassigned' }} +
+ +
+
+ Unassigned
diff --git a/src/app/savings/savings-account-stepper/savings-account-preview-step/savings-account-preview-step.component.html b/src/app/savings/savings-account-stepper/savings-account-preview-step/savings-account-preview-step.component.html index c166d8713..4517f2a28 100644 --- a/src/app/savings/savings-account-stepper/savings-account-preview-step/savings-account-preview-step.component.html +++ b/src/app/savings/savings-account-stepper/savings-account-preview-step/savings-account-preview-step.component.html @@ -16,7 +16,12 @@
External Id - {{ savingsAccount.externalId || 'Unassigned' }} + + + + + Unassigned +
diff --git a/src/app/savings/savings-account-view/savings-account-view.component.html b/src/app/savings/savings-account-view/savings-account-view.component.html index 9a65ae47a..07557a80f 100644 --- a/src/app/savings/savings-account-view/savings-account-view.component.html +++ b/src/app/savings/savings-account-view/savings-account-view.component.html @@ -18,7 +18,8 @@ [matTooltip]="savingsAccountData.status.value" *ngIf="!savingsAccountData.subStatus.block"> - Savings Product : {{savingsAccountData.savingsProductName}}({{savingsAccountData.accountNo}}) + Savings Product : {{savingsAccountData.savingsProductName}} +
@@ -37,7 +37,7 @@ - + @@ -46,7 +46,7 @@ - + @@ -69,11 +69,21 @@ External Id - {{sharesAccountData.externalId ? sharesAccountData.externalId : 'Not Provided'}} + + + + + Unassigned + Linked Savings Account(Dividend Posting) - {{sharesAccountData.savingsAccountNumber ? sharesAccountData.savingsAccountNumber : 'Unassigned'}} + + + + + Unassigned + diff --git a/src/app/system/manage-jobs/scheduler-jobs/manage-scheduler-jobs.component.html b/src/app/system/manage-jobs/scheduler-jobs/manage-scheduler-jobs.component.html index 2efc9dd8e..2789e86a5 100644 --- a/src/app/system/manage-jobs/scheduler-jobs/manage-scheduler-jobs.component.html +++ b/src/app/system/manage-jobs/scheduler-jobs/manage-scheduler-jobs.component.html @@ -24,7 +24,7 @@
- @@ -119,7 +119,7 @@
-