diff --git a/package.json b/package.json index cee4751d30..7c35ffb7cb 100644 --- a/package.json +++ b/package.json @@ -12,7 +12,7 @@ "license": "MPL-2.0", "scripts": { "ng": "ng", - "build": "npm run env -s && ng build --prod --output-hashing=none", + "build": "node version.js && npm run env -s && ng build --prod --output-hashing=none", "build:prod": "node --max-old-space-size=16384 ./node_modules/@angular/cli/bin/ng build --prod --output-hashing=none --base-href=/web-app/", "start": "npm run env -s && ng serve --aot --proxy-config proxy.conf.js", "serve:dev": "npm run env -s && ng serve", diff --git a/src/app/clients/clients-view/family-members-tab/family-members-tab.component.html b/src/app/clients/clients-view/family-members-tab/family-members-tab.component.html index e65b1a20f0..49657f55fa 100644 --- a/src/app/clients/clients-view/family-members-tab/family-members-tab.component.html +++ b/src/app/clients/clients-view/family-members-tab/family-members-tab.component.html @@ -6,7 +6,8 @@

Family Members

@@ -45,7 +46,7 @@

Family Members

Martial Status : {{member.maritalStatus}}
Gender : {{member.gender}}
Profession : {{member.profession}}
- Date Of Birth : {{member.dateOfBirth | dateFormat}}
+ Date Of Birth : {{member.dateOfBirth | dateFormat}}

diff --git a/src/app/loans/loans-view/external-asset-owner-tab/external-asset-transfer/external-asset-transfer.component.html b/src/app/loans/loans-view/external-asset-owner-tab/external-asset-transfer/external-asset-transfer.component.html index 0cef3e2d6d..a004159cd8 100644 --- a/src/app/loans/loans-view/external-asset-owner-tab/external-asset-transfer/external-asset-transfer.component.html +++ b/src/app/loans/loans-view/external-asset-owner-tab/external-asset-transfer/external-asset-transfer.component.html @@ -1,72 +1,70 @@ -
- - - - - - - - - - - - - - - - - - - -
- Status : - -
- - {{transferData.status}} -
-
- Owner External Id : - - -
- Settlement Date : - - {{transferData.settlementDate | dateFormat}} - - Effective Date : - - {{transferData.effectiveFrom | dateFormat}} -
- Details : - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Principal Outstanding :{{transferData.details.totalPrincipalOutstanding | formatNumber}}
Interest Outstanding :{{transferData.details.totalInterestOutstanding | formatNumber}}
Fees Outstanding :{{transferData.details.totalFeeChargesOutstanding | formatNumber}}
Penalties Outstanding :{{transferData.details.totalPenaltyChargesOutstanding | formatNumber}}
Outstanding :{{transferData.details.totalOutstanding | formatNumber}}
Overpaid :{{transferData.details.totalOverpaid | formatNumber}}
-
-
+ + + + + + + + + + + + + + + + + + + +
+ Status : + +
+ + {{transferData.status}} +
+
+ Owner External Id : + + +
+ Settlement Date : + + {{transferData.settlementDate | dateFormat}} + + Effective Date : + + {{transferData.effectiveFrom | dateFormat}} +
+ Details : + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Principal Outstanding :{{transferData.details.totalPrincipalOutstanding | formatNumber}}
Interest Outstanding :{{transferData.details.totalInterestOutstanding | formatNumber}}
Fees Outstanding :{{transferData.details.totalFeeChargesOutstanding | formatNumber}}
Penalties Outstanding :{{transferData.details.totalPenaltyChargesOutstanding | formatNumber}}
Outstanding :{{transferData.details.totalOutstanding | formatNumber}}
Overpaid :{{transferData.details.totalOverpaid | formatNumber}}
+
diff --git a/src/app/loans/loans-view/external-asset-owner-tab/external-asset-transfer/external-asset-transfer.component.ts b/src/app/loans/loans-view/external-asset-owner-tab/external-asset-transfer/external-asset-transfer.component.ts index 872d1aac8f..3e66403c83 100644 --- a/src/app/loans/loans-view/external-asset-owner-tab/external-asset-transfer/external-asset-transfer.component.ts +++ b/src/app/loans/loans-view/external-asset-owner-tab/external-asset-transfer/external-asset-transfer.component.ts @@ -6,16 +6,12 @@ import { ExternalAssetOwner } from 'app/loans/services/external-asset-owner'; templateUrl: './external-asset-transfer.component.html', styleUrls: ['./external-asset-transfer.component.scss'] }) -export class ExternalAssetTransferComponent implements OnInit { +export class ExternalAssetTransferComponent { /** Input Fields Data */ @Input() transferData: any; constructor(private externalAssetOwner: ExternalAssetOwner) { } - ngOnInit(): void { - console.log(this.transferData); - } - itemStatus(status: string): string { return this.externalAssetOwner.itemStatus(status); } diff --git a/src/app/organization/investors/investors.component.html b/src/app/organization/investors/investors.component.html index 92fbc31304..e21ccda156 100644 --- a/src/app/organization/investors/investors.component.html +++ b/src/app/organization/investors/investors.component.html @@ -2,7 +2,12 @@
- + + Search by Text + + + + Effective Date From @@ -10,7 +15,7 @@ - + Effective Date To @@ -18,7 +23,7 @@ - + Settlement Date From @@ -26,7 +31,7 @@ - + Settlement Date To @@ -34,102 +39,118 @@ - - Transaction ID - - - - +
- +
-
+
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Status -
- - {{item.status}} -
-
Effective From Date {{ item.effectiveFrom | dateFormat }} Owner - - Loan {{ item.loan.loanId }} Transfer - - Settlement Date {{ item.settlementDate | dateFormat }} Purchase Price Ratio {{ item.purchasePriceRatio | number }} Total Amount - - {{ item.details.totalOutstanding | number }} - - Actions - - -
- -
-
+ + + + + + + + + + + + +
+
+ + {{record.status}} +
+
Owner ExternalId + + Effective From {{ record.effectiveFrom | dateFormat }}
+
+ + + + +
+ +
+ + + + + + + + + + + + + + + + + + + +
+ Status : + +
+ + {{record.status}} +
+
+ Owner External Id : + + +
+ Settlement Date : + + {{record.settlementDate | dateFormat}} + + Effective Date : + + {{record.effectiveFrom | dateFormat}} +
+ Details : + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Principal Outstanding :{{record.details.totalPrincipalOutstanding | formatNumber}}
Interest Outstanding :{{record.details.totalInterestOutstanding | formatNumber}}
Fees Outstanding :{{record.details.totalFeeChargesOutstanding | formatNumber}}
Penalties Outstanding :{{record.details.totalPenaltyChargesOutstanding | formatNumber}}
Outstanding :{{record.details.totalOutstanding | formatNumber}}
Overpaid :{{record.details.totalOverpaid | formatNumber}}
+
+
+ +
+
diff --git a/src/app/organization/investors/investors.component.scss b/src/app/organization/investors/investors.component.scss index 82de602797..b319a9e03b 100644 --- a/src/app/organization/investors/investors.component.scss +++ b/src/app/organization/investors/investors.component.scss @@ -2,39 +2,25 @@ color: black; } -.account-action-button{ - min-width: 26px; - padding: 0 0 3px 0; - margin: 0 2%; - line-height: 25px; +.external-asset-transfer { + margin-top: 10px; + min-height: 160px; } -.item-detail { - overflow: hidden; - display: flex; -} - -tr.detail-row { - height: 0; -} - -tr.element-row:hover { - cursor: pointer; -} +.record { + .record-actions{ + margin-top: 1%; + button{ + margin-right: 1%; + } + } + h3 { + margin: 1% auto; + } -tr.element-row:not(.expanded-row):hover { - background: whitesmoke; + p { + line-height: 30px; + margin-left: 2%; + } } -tr.element-row:not(.expanded-row):active { - background: #efefef; -} - -.element-row td { - border-bottom-width: 0; -} - -.element-detail { - overflow: hidden; - display: flex; -} diff --git a/src/app/organization/investors/investors.component.ts b/src/app/organization/investors/investors.component.ts index 2c21e97258..64ff4e4abf 100644 --- a/src/app/organization/investors/investors.component.ts +++ b/src/app/organization/investors/investors.component.ts @@ -28,6 +28,7 @@ export class InvestorsComponent implements OnInit { /** Maximum transaction date allowed. */ maxDate = new Date(); + searchResults: any[] = []; searchText = new FormControl(''); effectiveFromDate = new FormControl(''); effectiveToDate = new FormControl(''); @@ -138,11 +139,16 @@ export class InvestorsComponent implements OnInit { this.totalRows = response.totalElements; this.existsDataToFilter = (response.totalElements > 0); this.dataSource.data = response.content; + this.searchResults = response.content; this.isLoading = false; }); } + transform(data: any): any { + return data; + } + pageChanged(event: PageEvent) { this.pageSize = event.pageSize; this.currentPage = event.pageIndex; diff --git a/src/app/reports/run-report/run-report.component.ts b/src/app/reports/run-report/run-report.component.ts index bd245d0ee0..db6671d1ba 100644 --- a/src/app/reports/run-report/run-report.component.ts +++ b/src/app/reports/run-report/run-report.component.ts @@ -233,7 +233,11 @@ export class RunReportComponent implements OnInit { formattedResponse[newKey] = value['id']; break; case 'date': - formattedResponse[newKey] = this.dateUtils.formatDate(value, this.settingsService.dateFormat); + if (this.isTableReport()) { + formattedResponse[newKey] = this.dateUtils.formatDate(value, Dates.DEFAULT_DATEFORMAT); + } else { + formattedResponse[newKey] = this.dateUtils.formatDate(value, this.settingsService.dateFormat); + } this.reportUsesDates = true; break; case 'none': @@ -254,10 +258,14 @@ export class RunReportComponent implements OnInit { ...userResponseValues, }; if (this.reportUsesDates) { + let dateFormat = this.settingsService.dateFormat; + if (this.isTableReport()) { + dateFormat = Dates.DEFAULT_DATEFORMAT; + } formData = { ...userResponseValues, locale: this.settingsService.language.code, - dateFormat: this.settingsService.dateFormat + dateFormat: dateFormat }; } if (this.reportToBeExportedInRepository) { diff --git a/src/app/shared/footer/footer.component.html b/src/app/shared/footer/footer.component.html index bb511beb0e..12a0bab323 100644 --- a/src/app/shared/footer/footer.component.html +++ b/src/app/shared/footer/footer.component.html @@ -2,22 +2,22 @@
- +
- + - - - - - + + + + +
diff --git a/src/app/shared/footer/footer.component.scss b/src/app/shared/footer/footer.component.scss index eca5376a45..53ceadcd9e 100644 --- a/src/app/shared/footer/footer.component.scss +++ b/src/app/shared/footer/footer.component.scss @@ -1,3 +1,5 @@ +@import "assets/styles/helper"; + #footer { align-items: center; @@ -14,6 +16,14 @@ width: 4rem; } + .business-date { + color: $status-approved; + } + + .versions { + color: $status-inactive; + } + table { border: none; diff --git a/src/app/shared/footer/footer.component.ts b/src/app/shared/footer/footer.component.ts index 177662bfcb..cadf34fe66 100644 --- a/src/app/shared/footer/footer.component.ts +++ b/src/app/shared/footer/footer.component.ts @@ -24,7 +24,11 @@ export class FooterComponent implements OnInit, OnDestroy { /** Mifos X version. */ versions: any = { - mifos: environment.version + mifos: environment.version, + fineract: { + version: '', + hash: '' + } }; /** Mifos X hash */ hash: string = environment.hash; @@ -67,10 +71,9 @@ export class FooterComponent implements OnInit, OnDestroy { this.getConfigurations(); this.server = this.settingsService.server; this.versionService.getBackendInfo().subscribe((data: any) => { - const buildVersion: string = data.git.build.version; - this.versions.fineract = { - version: buildVersion.split('-') - }; + const buildVersion: string = data.git.build.version.split('-'); + this.versions.fineract.version = buildVersion[0]; + this.versions.fineract.hash = buildVersion[1]; }); }