@sachin9822/reports-lib 0.0.149 → 0.0.150
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.mjs +22 -8
- package/esm2020/lib/components/accounting-report/accounting-report.component.mjs +254 -0
- package/esm2020/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.mjs +463 -0
- package/esm2020/lib/components/branch-activity-send-report/branch-activity-send-report.component.mjs +33 -53
- package/esm2020/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.mjs +348 -0
- package/esm2020/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.mjs +28 -77
- package/esm2020/lib/models/accounting-report/accounting-report-entry-model.mjs +2 -0
- package/esm2020/lib/models/accounting-report/accounting-report-model.mjs +2 -0
- package/esm2020/lib/models/branch-activity-receive-report/branch-activity-receive.model.mjs +2 -0
- package/esm2020/lib/models/cancellation-transaction-report/cancellation-transaction.model.mjs +2 -0
- package/esm2020/lib/reports-lib.module.mjs +18 -5
- package/esm2020/lib/services/report.service.mjs +91 -1
- package/esm2020/lib/shared/export-generic.service.mjs +324 -0
- package/esm2020/lib/shared/export.service.mjs +2 -2
- package/esm2020/lib/shared/metadata/metadata.component.mjs +50 -0
- package/esm2020/lib/shared/page-size-selector/page-size-selector.component.mjs +2 -2
- package/esm2020/lib/shared/search-filter/search-filter.component.mjs +402 -23
- package/esm2020/lib/shared/shared.module.mjs +8 -6
- package/esm2020/public-api.mjs +7 -1
- package/fesm2015/sachin9822-reports-lib.mjs +2117 -293
- package/fesm2015/sachin9822-reports-lib.mjs.map +1 -1
- package/fesm2020/sachin9822-reports-lib.mjs +2082 -269
- package/fesm2020/sachin9822-reports-lib.mjs.map +1 -1
- package/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.d.ts +5 -2
- package/lib/components/accounting-report/accounting-report.component.d.ts +56 -0
- package/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.d.ts +52 -0
- package/lib/components/branch-activity-send-report/branch-activity-send-report.component.d.ts +4 -31
- package/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.d.ts +99 -0
- package/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.d.ts +4 -32
- package/lib/models/accounting-report/accounting-report-entry-model.d.ts +24 -0
- package/lib/models/accounting-report/accounting-report-model.d.ts +8 -0
- package/lib/models/branch-activity-receive-report/branch-activity-receive.model.d.ts +18 -0
- package/lib/models/cancellation-transaction-report/cancellation-transaction.model.d.ts +44 -0
- package/lib/reports-lib.module.d.ts +13 -10
- package/lib/services/report.service.d.ts +18 -0
- package/lib/shared/export-generic.service.d.ts +47 -0
- package/lib/shared/metadata/metadata.component.d.ts +24 -0
- package/lib/shared/search-filter/search-filter.component.d.ts +3 -0
- package/lib/shared/shared.module.d.ts +5 -3
- package/package.json +1 -1
- package/public-api.d.ts +6 -0
package/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.d.ts
CHANGED
|
@@ -41,6 +41,8 @@ export declare class AccGlDetailsEnquiryReportComponent implements OnInit {
|
|
|
41
41
|
formatName: string;
|
|
42
42
|
code: string;
|
|
43
43
|
}[];
|
|
44
|
+
metaDataOne: Record<string, string>;
|
|
45
|
+
metaDataTwo: Record<string, string>;
|
|
44
46
|
defaultColDef: ColDef;
|
|
45
47
|
columnDefs: ColDef[];
|
|
46
48
|
constructor(exportService: ExportService, reportService: ReportService, http: HttpClient, sanitizer: DomSanitizer);
|
|
@@ -48,10 +50,11 @@ export declare class AccGlDetailsEnquiryReportComponent implements OnInit {
|
|
|
48
50
|
getAccGLDetailsReport(): void;
|
|
49
51
|
formatDate(params: any): string;
|
|
50
52
|
onGridReady(params: GridReadyEvent): void;
|
|
53
|
+
onGridSizeChanged(params: any): void;
|
|
51
54
|
getRowHeight(params: any): number;
|
|
52
55
|
formatNumber(params: any): string;
|
|
53
|
-
onSearch(): void;
|
|
54
|
-
handleExport(): void;
|
|
56
|
+
onSearch(text: string): void;
|
|
57
|
+
handleExport(option: string): void;
|
|
55
58
|
exportToPdf(): Promise<void>;
|
|
56
59
|
exportToExcel(): void;
|
|
57
60
|
exportToCsv(): void;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { AccountingReportModel } from '../../models/accounting-report/accounting-report-model';
|
|
3
|
+
import { ColDef, ColumnApi, GridApi, GridReadyEvent } from 'ag-grid-community';
|
|
4
|
+
import { ReportService } from '../../services/report.service';
|
|
5
|
+
import { ExportService } from '../../shared/export.service';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export interface AccountingReportRequest {
|
|
8
|
+
startDate: string;
|
|
9
|
+
endDate: string;
|
|
10
|
+
sendCountryCode: string;
|
|
11
|
+
recvCountryCode: string;
|
|
12
|
+
businessPartnerCorrelationID: string;
|
|
13
|
+
transactionStatus: string;
|
|
14
|
+
payoutCurrency: string;
|
|
15
|
+
transactionType: string;
|
|
16
|
+
branchCode: string;
|
|
17
|
+
companyCode: string;
|
|
18
|
+
}
|
|
19
|
+
export declare class AccountingReportComponent implements OnInit {
|
|
20
|
+
private reportService;
|
|
21
|
+
private exportService;
|
|
22
|
+
ReportName: string;
|
|
23
|
+
reportUser: any;
|
|
24
|
+
reportTime: any;
|
|
25
|
+
reportPeriod: any;
|
|
26
|
+
reportRequest: AccountingReportRequest;
|
|
27
|
+
leftData: Record<string, string>;
|
|
28
|
+
rightData: Record<string, string>;
|
|
29
|
+
searchText: string;
|
|
30
|
+
rowData: any[];
|
|
31
|
+
accountingReportModel: AccountingReportModel;
|
|
32
|
+
pageSize: number;
|
|
33
|
+
selectedExportOption: string;
|
|
34
|
+
exportFormats: {
|
|
35
|
+
formatName: string;
|
|
36
|
+
code: string;
|
|
37
|
+
}[];
|
|
38
|
+
defaultColDef: ColDef;
|
|
39
|
+
columnDefs: ColDef[];
|
|
40
|
+
gridApi: GridApi<any>;
|
|
41
|
+
gridColumnApi: ColumnApi;
|
|
42
|
+
constructor(reportService: ReportService, exportService: ExportService);
|
|
43
|
+
ngOnInit(): void;
|
|
44
|
+
getAccountingReport(request?: AccountingReportRequest): void;
|
|
45
|
+
handleExport(option: string): Promise<void>;
|
|
46
|
+
onSearch(text: string): void;
|
|
47
|
+
onGridReady(params: GridReadyEvent): void;
|
|
48
|
+
getRowHeight(params: any): number;
|
|
49
|
+
formatNumber(params: any): string;
|
|
50
|
+
exportToPdf(): Promise<void>;
|
|
51
|
+
exportToExcel(): void;
|
|
52
|
+
exportToCsv(): void;
|
|
53
|
+
getReport(payload: any): void;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccountingReportComponent, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccountingReportComponent, "lib-accounting-report", never, {}, {}, never, never, false>;
|
|
56
|
+
}
|
package/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.d.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { OnInit } from '@angular/core';
|
|
2
|
+
import { ColDef, GridApi, GridReadyEvent } from 'ag-grid-community';
|
|
3
|
+
import { ReportService } from '../../services/report.service';
|
|
4
|
+
import { ComponentLoadingStates } from '../../models/component-loading-states';
|
|
5
|
+
import { BranchActivityReceiveReportModel } from '../../models/branch-activity-receive-report/branch-activity-receive.model';
|
|
6
|
+
import 'jspdf-autotable';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class BranchActivityReceiveReportComponent implements OnInit {
|
|
9
|
+
data: any;
|
|
10
|
+
dataMap: Record<string, BranchActivityReceiveReportModel[]>;
|
|
11
|
+
filteredData: Record<string, BranchActivityReceiveReportModel[]>;
|
|
12
|
+
user: string;
|
|
13
|
+
ReportName: string;
|
|
14
|
+
reportService: ReportService;
|
|
15
|
+
reportDate: string;
|
|
16
|
+
metaDataOne: Record<string, string>;
|
|
17
|
+
ComponentLoadingState: typeof ComponentLoadingStates;
|
|
18
|
+
loadingState: ComponentLoadingStates;
|
|
19
|
+
paginationArray: any[];
|
|
20
|
+
selectedExportOption: string;
|
|
21
|
+
private logoBase64;
|
|
22
|
+
searchText: string;
|
|
23
|
+
gridApis: GridApi[];
|
|
24
|
+
showReport: boolean;
|
|
25
|
+
noDataFound: boolean;
|
|
26
|
+
columnDefs: ColDef<BranchActivityReceiveReportModel>[];
|
|
27
|
+
defaultColDef: {
|
|
28
|
+
sortable: boolean;
|
|
29
|
+
filter: boolean;
|
|
30
|
+
resizable: boolean;
|
|
31
|
+
minwidth: number;
|
|
32
|
+
wrapHeaderText: boolean;
|
|
33
|
+
autoHeaderHeight: boolean;
|
|
34
|
+
suppressSizeToFit: boolean;
|
|
35
|
+
wrapText: boolean;
|
|
36
|
+
};
|
|
37
|
+
constructor();
|
|
38
|
+
ngOnInit(): void;
|
|
39
|
+
onGridReady(params: GridReadyEvent, id: number): void;
|
|
40
|
+
onGridSizeChanged(params: any): void;
|
|
41
|
+
currencyFormatter(params: any): string;
|
|
42
|
+
handleExport(option: string): void;
|
|
43
|
+
private loadImageAsBase64;
|
|
44
|
+
exportPDF(data: any): void;
|
|
45
|
+
exportExcel(data: any): void;
|
|
46
|
+
exportCSV(data: any[]): void;
|
|
47
|
+
formatDate(params: any): string;
|
|
48
|
+
filter(text: string): void;
|
|
49
|
+
handleSearch(criteria: any): void;
|
|
50
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BranchActivityReceiveReportComponent, never>;
|
|
51
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BranchActivityReceiveReportComponent, "lib-branch-activity-receive-report", never, {}, {}, never, never, false>;
|
|
52
|
+
}
|
package/lib/components/branch-activity-send-report/branch-activity-send-report.component.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { NgZone, OnInit } from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { FormBuilder, FormGroup } from '@angular/forms';
|
|
3
3
|
import { ReportService } from '../../services/report.service';
|
|
4
4
|
import { BranchActivityReport } from '../../models/branch-activity-report/branch-activity-send-report';
|
|
5
5
|
import { ColDef, GridApi, GridReadyEvent } from 'ag-grid-community';
|
|
@@ -19,19 +19,10 @@ export declare class BranchActivitySendReportComponent implements OnInit {
|
|
|
19
19
|
filteredData: Record<string, BranchActivityReport[]>;
|
|
20
20
|
proxyData: Record<string, BranchActivityReport[]>;
|
|
21
21
|
form: FormGroup;
|
|
22
|
-
countries: any;
|
|
23
|
-
params: any;
|
|
24
22
|
fromDate: any;
|
|
25
23
|
toDate: any;
|
|
26
|
-
clients: any;
|
|
27
|
-
clientsData: any;
|
|
28
|
-
clientBranches: any;
|
|
29
24
|
showReport: boolean;
|
|
30
|
-
ranges: any[];
|
|
31
|
-
paginationPageSize: number;
|
|
32
25
|
paginationArray: any[];
|
|
33
|
-
showRange: boolean;
|
|
34
|
-
isAgentSelected: boolean;
|
|
35
26
|
selectedExportOption: string;
|
|
36
27
|
gridAPi: any;
|
|
37
28
|
gridApis: GridApi[];
|
|
@@ -40,32 +31,17 @@ export declare class BranchActivitySendReportComponent implements OnInit {
|
|
|
40
31
|
reportDate: string;
|
|
41
32
|
searchText: string;
|
|
42
33
|
buffer: any;
|
|
43
|
-
myStatus: FormArray;
|
|
44
|
-
status: string[];
|
|
45
34
|
errorMessage: string;
|
|
46
35
|
sysUserId: string;
|
|
47
36
|
private logoBase64;
|
|
48
37
|
message: string;
|
|
49
38
|
ComponentLoadingState: typeof ComponentLoadingStates;
|
|
50
39
|
loadingState: ComponentLoadingStates;
|
|
51
|
-
exportFormats: {
|
|
52
|
-
formatName: string;
|
|
53
|
-
code: string;
|
|
54
|
-
}[];
|
|
55
40
|
ReportName: string;
|
|
56
|
-
|
|
57
|
-
showClients: boolean;
|
|
58
|
-
showCurrency: boolean;
|
|
59
|
-
showProduct: boolean;
|
|
60
|
-
showSendCountry: boolean;
|
|
61
|
-
showReceiveCountry: boolean;
|
|
62
|
-
showBranch: boolean;
|
|
63
|
-
disableToDate: boolean;
|
|
41
|
+
leftData: Record<string, string>;
|
|
64
42
|
showError: boolean;
|
|
65
43
|
showMessage: boolean;
|
|
66
|
-
selectAll: boolean;
|
|
67
44
|
noDataFound: boolean;
|
|
68
|
-
clientSelected: boolean;
|
|
69
45
|
activeBranch: number;
|
|
70
46
|
columnDefs: ColDef<BranchActivityReport>[];
|
|
71
47
|
defaultColDef: {
|
|
@@ -82,17 +58,14 @@ export declare class BranchActivitySendReportComponent implements OnInit {
|
|
|
82
58
|
constructor(formBuilder: FormBuilder, reportService: ReportService, ngZone: NgZone);
|
|
83
59
|
reportTheme: import("@ag-grid-community/theming").Theme<import("@ag-grid-community/theming/dist/types/src/styles/core/core-css").CoreParams & import("@ag-grid-community/theming").CheckboxStyleParams & import("@ag-grid-community/theming").TabStyleParams & import("@ag-grid-community/theming").InputStyleParams>;
|
|
84
60
|
ngOnInit(): void;
|
|
85
|
-
|
|
61
|
+
filter(text: string): void;
|
|
86
62
|
onGridReady(params: GridReadyEvent, id: number): void;
|
|
87
63
|
onGridSizeChanged(params: any): void;
|
|
88
|
-
|
|
89
|
-
handleExport(): Promise<void>;
|
|
64
|
+
handleExport(option: string): Promise<void>;
|
|
90
65
|
private loadImageAsBase64;
|
|
91
66
|
exportPDF(data: any): void;
|
|
92
67
|
exportExcel(data: any): void;
|
|
93
68
|
exportCSV(data: any[]): void;
|
|
94
|
-
formatDate(params: any): string;
|
|
95
|
-
activateBranchPagination(branchIndex: number): void;
|
|
96
69
|
currencyFormatter(params: any): string;
|
|
97
70
|
handleSearch(criteria: any): void;
|
|
98
71
|
static ɵfac: i0.ɵɵFactoryDeclaration<BranchActivitySendReportComponent, never>;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { OnDestroy, OnInit } from '@angular/core';
|
|
2
|
+
import { ReportService } from '../../services/report.service';
|
|
3
|
+
import { ComponentLoadingStates } from '../../models/component-loading-states';
|
|
4
|
+
import { CancellationTransaction } from '../../models/cancellation-transaction-report/cancellation-transaction.model';
|
|
5
|
+
import { GridOptions } from 'ag-grid-community';
|
|
6
|
+
import { GenericExportService } from '../../shared/export-generic.service';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class CancellationTransactionReportComponent implements OnInit, OnDestroy {
|
|
9
|
+
private reportService;
|
|
10
|
+
private exportService;
|
|
11
|
+
ReportName: string;
|
|
12
|
+
user: string;
|
|
13
|
+
private destroy$;
|
|
14
|
+
ComponentLoadingState: typeof ComponentLoadingStates;
|
|
15
|
+
loadingState: ComponentLoadingStates;
|
|
16
|
+
hasSearched: boolean;
|
|
17
|
+
noDataFromApi: boolean;
|
|
18
|
+
errorMessage: string;
|
|
19
|
+
cancellationData: CancellationTransaction[];
|
|
20
|
+
pageSize: number;
|
|
21
|
+
gridApi: any;
|
|
22
|
+
isOpen: boolean;
|
|
23
|
+
exportFormats: {
|
|
24
|
+
formatName: string;
|
|
25
|
+
code: string;
|
|
26
|
+
}[];
|
|
27
|
+
dataMap: Record<string, CancellationTransaction[]>;
|
|
28
|
+
filteredData: Record<string, CancellationTransaction[]>;
|
|
29
|
+
proxyData: Record<string, CancellationTransaction[]>;
|
|
30
|
+
paginationArray: (number | 'All')[];
|
|
31
|
+
gridApis: any[];
|
|
32
|
+
columnDefs: ({
|
|
33
|
+
headerName: string;
|
|
34
|
+
field: string;
|
|
35
|
+
flex: number;
|
|
36
|
+
minWidth: number;
|
|
37
|
+
cellClass: string;
|
|
38
|
+
tooltipValueGetter: (params: any) => string;
|
|
39
|
+
valueFormatter: any;
|
|
40
|
+
tooltipField?: undefined;
|
|
41
|
+
} | {
|
|
42
|
+
headerName: string;
|
|
43
|
+
field: string;
|
|
44
|
+
flex: number;
|
|
45
|
+
minWidth: number;
|
|
46
|
+
tooltipValueGetter: (params: any) => string;
|
|
47
|
+
valueFormatter: any;
|
|
48
|
+
cellClass?: undefined;
|
|
49
|
+
tooltipField?: undefined;
|
|
50
|
+
} | {
|
|
51
|
+
headerName: string;
|
|
52
|
+
field: string;
|
|
53
|
+
flex: number;
|
|
54
|
+
minWidth: number;
|
|
55
|
+
tooltipField: string;
|
|
56
|
+
cellClass?: undefined;
|
|
57
|
+
tooltipValueGetter?: undefined;
|
|
58
|
+
valueFormatter?: undefined;
|
|
59
|
+
} | {
|
|
60
|
+
headerName: string;
|
|
61
|
+
field: string;
|
|
62
|
+
flex: number;
|
|
63
|
+
minWidth: number;
|
|
64
|
+
tooltipField: string;
|
|
65
|
+
cellClass: string;
|
|
66
|
+
valueFormatter: (params: any) => any;
|
|
67
|
+
tooltipValueGetter?: undefined;
|
|
68
|
+
})[];
|
|
69
|
+
gridOptions: GridOptions;
|
|
70
|
+
rowData: CancellationTransaction[];
|
|
71
|
+
currentDateTime: Date;
|
|
72
|
+
searchText: string;
|
|
73
|
+
selectedExportOption: string;
|
|
74
|
+
constructor(reportService: ReportService, exportService: GenericExportService);
|
|
75
|
+
ngOnInit(): void;
|
|
76
|
+
ngOnDestroy(): void;
|
|
77
|
+
formatCurrency(params: any): any;
|
|
78
|
+
formatDateTimeDDMMYYYY_AMPM(params: any): string;
|
|
79
|
+
parseDDMMYYYYhhmmAMPM(value: string): Date | null;
|
|
80
|
+
formatDateTimeDDMMYYYY_24h(params: any): string;
|
|
81
|
+
formatDateDDMMYYYY(params: any): string;
|
|
82
|
+
onGridReady(params: any, id: number): void;
|
|
83
|
+
onGridSizeChanged(params: any): void;
|
|
84
|
+
changeLimit(limit: number | 'All', index: number): void;
|
|
85
|
+
getKeys(obj: Record<string, unknown>): string[];
|
|
86
|
+
hasAnyGroups(): boolean;
|
|
87
|
+
hasNoGroups(): boolean;
|
|
88
|
+
getPageSizeFor(index: number, total: number): number;
|
|
89
|
+
onPageSizeChange(value: string): void;
|
|
90
|
+
private groupByBranchToRecord;
|
|
91
|
+
handleSearch(criteria: any): void;
|
|
92
|
+
onSearch(): void;
|
|
93
|
+
isDataAvailable(): boolean;
|
|
94
|
+
onOpen(): void;
|
|
95
|
+
onClose(): void;
|
|
96
|
+
handleExport(): void;
|
|
97
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CancellationTransactionReportComponent, never>;
|
|
98
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CancellationTransactionReportComponent, "lib-cancellation-transaction-report", never, {}, {}, never, never, false>;
|
|
99
|
+
}
|
|
@@ -2,7 +2,7 @@ import { OnInit } from '@angular/core';
|
|
|
2
2
|
import { AgGridAngular } from 'ag-grid-angular';
|
|
3
3
|
import { GridOptions, ColDef, GridReadyEvent, GridApi } from 'ag-grid-community';
|
|
4
4
|
import { ReportService } from '../../services/report.service';
|
|
5
|
-
import {
|
|
5
|
+
import { CompanyReportConfig, TransactionData, ComponentLoadingState } from '../../models/transaction-enquiry-report/transaction-enquiry.model';
|
|
6
6
|
import { ExportService } from '../../shared/export.service';
|
|
7
7
|
import { ConfigService } from '../../services/config.service';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
@@ -13,28 +13,15 @@ export declare class TransactionEnquiryComponent implements OnInit {
|
|
|
13
13
|
agGrid: AgGridAngular;
|
|
14
14
|
private destroy$;
|
|
15
15
|
gridApi: GridApi;
|
|
16
|
-
private gridColumnApi;
|
|
17
|
-
isFilterCollapsed: boolean;
|
|
18
|
-
showResults: boolean;
|
|
19
16
|
searchText: string;
|
|
20
17
|
paginationPageSize: number;
|
|
21
|
-
showAllRows: boolean;
|
|
22
|
-
ranges: (number | 'All')[];
|
|
23
|
-
showRange: boolean;
|
|
24
18
|
selectedExportOption: string;
|
|
25
|
-
showStatusDropdown: boolean;
|
|
26
19
|
currentDateTime: Date;
|
|
27
|
-
formValidationError: boolean;
|
|
28
20
|
isOpen: boolean;
|
|
29
|
-
showExportDropdown: boolean;
|
|
30
21
|
exportFormats: {
|
|
31
22
|
formatName: string;
|
|
32
23
|
code: string;
|
|
33
24
|
}[];
|
|
34
|
-
exportOptions: {
|
|
35
|
-
label: string;
|
|
36
|
-
value: string;
|
|
37
|
-
}[];
|
|
38
25
|
productCodeMap: {
|
|
39
26
|
[name: string]: string;
|
|
40
27
|
};
|
|
@@ -42,27 +29,16 @@ export declare class TransactionEnquiryComponent implements OnInit {
|
|
|
42
29
|
ComponentLoadingState: typeof ComponentLoadingState;
|
|
43
30
|
isSearching: boolean;
|
|
44
31
|
hasSearched: boolean;
|
|
45
|
-
errorMessages: string;
|
|
46
32
|
_errorMessage: string;
|
|
47
33
|
currentUserEmail: string;
|
|
48
|
-
usernameMissing: boolean;
|
|
49
34
|
token: string;
|
|
50
35
|
applicationType: string;
|
|
51
36
|
companyCode: string;
|
|
52
37
|
serviceUrl: string;
|
|
53
|
-
apiPrefix: any;
|
|
54
|
-
userReportDefaults: UserReportDefaults | null;
|
|
55
38
|
companyReportConfig: CompanyReportConfig | null;
|
|
56
|
-
clients: Client[];
|
|
57
|
-
branches: Branch[];
|
|
58
|
-
users: User[];
|
|
59
|
-
currencies: Currency[];
|
|
60
|
-
products: Product[];
|
|
61
|
-
identityTypes: IdentityType[];
|
|
62
39
|
transactionData: TransactionData[];
|
|
63
|
-
transactionStatuses: TransactionStatus[];
|
|
64
|
-
selectedStatuses: string[];
|
|
65
40
|
ReportName: string;
|
|
41
|
+
metaDataOne: Record<string, string>;
|
|
66
42
|
columnDefs: ColDef[];
|
|
67
43
|
private buildTransactionDetailsUrl;
|
|
68
44
|
gridOptions: GridOptions;
|
|
@@ -70,11 +46,8 @@ export declare class TransactionEnquiryComponent implements OnInit {
|
|
|
70
46
|
ngOnInit(): void;
|
|
71
47
|
ngOnDestroy(): void;
|
|
72
48
|
handleSearch(criteria: any): void;
|
|
73
|
-
|
|
74
|
-
toggleRangeDropdown(event: MouseEvent): void;
|
|
75
|
-
filter(): void;
|
|
49
|
+
filter(text: string): void;
|
|
76
50
|
onGridReady(params: GridReadyEvent): void;
|
|
77
|
-
changeLimit(limit: number | 'All'): void;
|
|
78
51
|
clearError(): void;
|
|
79
52
|
dateFormatter(params: any): string;
|
|
80
53
|
currencyFormatter(params: any): string;
|
|
@@ -83,11 +56,10 @@ export declare class TransactionEnquiryComponent implements OnInit {
|
|
|
83
56
|
getFieldValue(row: any, field: string): any;
|
|
84
57
|
get isLoading(): boolean;
|
|
85
58
|
get isError(): boolean;
|
|
86
|
-
get canShowResults(): boolean;
|
|
87
59
|
get errorMessage(): string;
|
|
88
60
|
set errorMessage(value: string);
|
|
89
61
|
onExportChange(value: string): void;
|
|
90
|
-
handleExport(): void;
|
|
62
|
+
handleExport(option: string): void;
|
|
91
63
|
exportToPDF(): void;
|
|
92
64
|
exportToExcel(): void;
|
|
93
65
|
exportToCSV(): void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export interface AccountingReportEntryModel {
|
|
2
|
+
businessDate: string;
|
|
3
|
+
transactionDateAndTime: string;
|
|
4
|
+
transactionNumber: string;
|
|
5
|
+
sendClient: string;
|
|
6
|
+
principleSendClient: string;
|
|
7
|
+
receiveClient: string;
|
|
8
|
+
principleReceiveClient: string;
|
|
9
|
+
receiveCurrency: string;
|
|
10
|
+
amountPaid: string;
|
|
11
|
+
sendCurrency: string;
|
|
12
|
+
serviceFee: string;
|
|
13
|
+
tax: string;
|
|
14
|
+
principleSendAmount: string;
|
|
15
|
+
transactionStatus: string;
|
|
16
|
+
settlementCurrency: string;
|
|
17
|
+
clientSettlementInSCcy: string;
|
|
18
|
+
clientSettlementInUSD: string;
|
|
19
|
+
shareType: string;
|
|
20
|
+
shareValue: string;
|
|
21
|
+
sendReceiveFeeCcy: string;
|
|
22
|
+
shareAmountInUSD: string;
|
|
23
|
+
settlementRate: string;
|
|
24
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { AccountingReportEntryModel } from "../accounting-report/accounting-report-entry-model";
|
|
2
|
+
export interface AccountingReportModel {
|
|
3
|
+
reportUser: string;
|
|
4
|
+
reportTime: string;
|
|
5
|
+
branchNameAndCode: string;
|
|
6
|
+
subGroupColumn: string;
|
|
7
|
+
accountingReportEntriesList: AccountingReportEntryModel[];
|
|
8
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface BranchActivityReceiveReportModel {
|
|
2
|
+
LastModifiedById: string;
|
|
3
|
+
SenderName: string;
|
|
4
|
+
ReceiverName: string;
|
|
5
|
+
SendAgentName: string;
|
|
6
|
+
ReceiveAgentName: string;
|
|
7
|
+
PayOutCurrency: string;
|
|
8
|
+
BusinessDateTime: string;
|
|
9
|
+
TransactionDateAndTime: string;
|
|
10
|
+
TransactionNumber: string;
|
|
11
|
+
Product: string;
|
|
12
|
+
SendAgentCode: string;
|
|
13
|
+
ReceiveAgentBranchName: string;
|
|
14
|
+
ReceiveAgentBranchCode: string;
|
|
15
|
+
ReceivePrincipalAgentCode: string;
|
|
16
|
+
AmountPaid: number;
|
|
17
|
+
Status: string;
|
|
18
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface Country {
|
|
2
|
+
number: string;
|
|
3
|
+
countryCode: string;
|
|
4
|
+
country: string;
|
|
5
|
+
ezRemitCountry: string;
|
|
6
|
+
}
|
|
7
|
+
export interface PayInAgent {
|
|
8
|
+
correlationId: string;
|
|
9
|
+
code: string;
|
|
10
|
+
agent: string;
|
|
11
|
+
number: string;
|
|
12
|
+
}
|
|
13
|
+
export interface ProductType {
|
|
14
|
+
name: string;
|
|
15
|
+
productCode: string;
|
|
16
|
+
}
|
|
17
|
+
export interface CancellationTransactionPageLoadData {
|
|
18
|
+
countries: Country[];
|
|
19
|
+
payInAgents: PayInAgent[];
|
|
20
|
+
productTypes: ProductType[];
|
|
21
|
+
}
|
|
22
|
+
export interface CancellationTransaction {
|
|
23
|
+
sendAgentBranchNameAndCode: string;
|
|
24
|
+
businessDateTime: string;
|
|
25
|
+
txnDateAndTime: string;
|
|
26
|
+
transactionNumber: string;
|
|
27
|
+
product: string;
|
|
28
|
+
sendAgentBranchCode: string;
|
|
29
|
+
sendPrincipalAgentCode: string;
|
|
30
|
+
recvAGTcode: string;
|
|
31
|
+
payoutCCcode: string;
|
|
32
|
+
payOutAmount: number;
|
|
33
|
+
payinCCcode: string;
|
|
34
|
+
payInAmount: number;
|
|
35
|
+
txnCommission: number;
|
|
36
|
+
tax: number;
|
|
37
|
+
totalPayinAmount: number;
|
|
38
|
+
status: string;
|
|
39
|
+
cancellationBranchDateTime: string;
|
|
40
|
+
cancellationBusinessDate: string;
|
|
41
|
+
cancellationLocationCode: string;
|
|
42
|
+
statusChangedBy: string;
|
|
43
|
+
cancellationReason: string;
|
|
44
|
+
}
|
|
@@ -6,18 +6,21 @@ import * as i3 from "./components/branch-activity-send-report/branch-activity-se
|
|
|
6
6
|
import * as i4 from "./shared/loader/loader.component";
|
|
7
7
|
import * as i5 from "./components/transaction-enquiry-report/transaction-enquiry-report.component";
|
|
8
8
|
import * as i6 from "./shared/search-filter/search-filter.component";
|
|
9
|
-
import * as i7 from "
|
|
10
|
-
import * as i8 from "./
|
|
11
|
-
import * as i9 from "
|
|
12
|
-
import * as i10 from "
|
|
13
|
-
import * as i11 from "
|
|
14
|
-
import * as i12 from "
|
|
15
|
-
import * as i13 from "@angular/
|
|
16
|
-
import * as i14 from "@
|
|
17
|
-
import * as i15 from "
|
|
9
|
+
import * as i7 from "./components/branch-activity-receive-report/branch-activity-receive-report.component";
|
|
10
|
+
import * as i8 from "./components/cancellation-transaction-report/cancellation-transaction-report.component";
|
|
11
|
+
import * as i9 from "./components/accounting-report/accounting-report.component";
|
|
12
|
+
import * as i10 from "ag-grid-angular";
|
|
13
|
+
import * as i11 from "./reports-lib-routing.module";
|
|
14
|
+
import * as i12 from "@angular/common";
|
|
15
|
+
import * as i13 from "@angular/router";
|
|
16
|
+
import * as i14 from "@ng-bootstrap/ng-bootstrap";
|
|
17
|
+
import * as i15 from "./shared/shared.module";
|
|
18
|
+
import * as i16 from "@angular/platform-browser";
|
|
19
|
+
import * as i17 from "@angular/forms";
|
|
20
|
+
import * as i18 from "@ng-select/ng-select";
|
|
18
21
|
export declare function initializeApp(config: ConfigService): () => Promise<any>;
|
|
19
22
|
export declare class ReportsLibModule {
|
|
20
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReportsLibModule, never>;
|
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ReportsLibModule, [typeof i1.ReportsLibComponent, typeof i2.AccGlDetailsEnquiryReportComponent, typeof i3.BranchActivitySendReportComponent, typeof i4.LoaderComponent, typeof i5.TransactionEnquiryComponent, typeof i4.LoaderComponent, typeof i6.SearchFilterComponent], [typeof
|
|
24
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ReportsLibModule, [typeof i1.ReportsLibComponent, typeof i2.AccGlDetailsEnquiryReportComponent, typeof i3.BranchActivitySendReportComponent, typeof i4.LoaderComponent, typeof i5.TransactionEnquiryComponent, typeof i4.LoaderComponent, typeof i6.SearchFilterComponent, typeof i7.BranchActivityReceiveReportComponent, typeof i8.CancellationTransactionReportComponent, typeof i9.AccountingReportComponent], [typeof i10.AgGridModule, typeof i11.ReportsLibRoutingModule, typeof i12.CommonModule, typeof i13.RouterModule, typeof i14.NgbDatepickerModule, typeof i15.SharedModule, typeof i16.BrowserModule, typeof i10.AgGridModule, typeof i11.ReportsLibRoutingModule, typeof i17.FormsModule, typeof i10.AgGridModule, typeof i14.NgbModule, typeof i17.ReactiveFormsModule, typeof i18.NgSelectModule, typeof i17.ReactiveFormsModule, typeof i14.NgbModule, typeof i18.NgSelectModule], [typeof i1.ReportsLibComponent, typeof i2.AccGlDetailsEnquiryReportComponent, typeof i3.BranchActivitySendReportComponent, typeof i5.TransactionEnquiryComponent, typeof i8.CancellationTransactionReportComponent, typeof i9.AccountingReportComponent]>;
|
|
22
25
|
static ɵinj: i0.ɵɵInjectorDeclaration<ReportsLibModule>;
|
|
23
26
|
}
|
|
@@ -5,6 +5,9 @@ import { BranchActivitySendReportRequestDomainModel } from '../models/branch-act
|
|
|
5
5
|
import { BranchActivityReport } from '../models/branch-activity-report/branch-activity-send-report';
|
|
6
6
|
import { Product, User, Branch, TransactionData, PageLoadDataResponse, SearchCriteria } from '../models/transaction-enquiry-report/transaction-enquiry.model';
|
|
7
7
|
import { ConfigService } from './config.service';
|
|
8
|
+
import { BranchActivityReceiveReportModel } from '../models/branch-activity-receive-report/branch-activity-receive.model';
|
|
9
|
+
import { CancellationTransaction } from '../models/cancellation-transaction-report/cancellation-transaction.model';
|
|
10
|
+
import { AccountingReportModel } from '../models/accounting-report/accounting-report-model';
|
|
8
11
|
import * as i0 from "@angular/core";
|
|
9
12
|
export declare class ReportService {
|
|
10
13
|
private http;
|
|
@@ -23,6 +26,21 @@ export declare class ReportService {
|
|
|
23
26
|
getProductsByAgent(agentCode: string): Observable<Product[]>;
|
|
24
27
|
getUsersByBranch(businessPartnerCode: string, branchCode: string): Observable<User[]>;
|
|
25
28
|
searchTransactions(request: SearchCriteria): Observable<TransactionData[]>;
|
|
29
|
+
getAllPayOutAgents(sysUserID: string): Observable<any[]>;
|
|
30
|
+
getBranchActivityReceiveParams(): Observable<any[]>;
|
|
31
|
+
getBranchActivityReceivePayoutAgentBranch(sysUserId: string, code: string): Observable<any[]>;
|
|
32
|
+
getBranchActivityReceiveReport(data: any): Observable<Record<string, BranchActivityReceiveReportModel[]>>;
|
|
33
|
+
loadDataforCancallation(sysUserId: string): Observable<any>;
|
|
34
|
+
/** Api 2 - Get list of branches for an agent */
|
|
35
|
+
getBranches(agentCode: string, sysUserId: string): Observable<Branch[]>;
|
|
36
|
+
getCancellationReport(criteria: any): Observable<CancellationTransaction[]>;
|
|
37
|
+
getAccountingReport(object: any): Observable<AccountingReportModel>;
|
|
38
|
+
getClientsForAccountingReport(sysUserID: string): Observable<any[]>;
|
|
39
|
+
getBranchByAgentForAccountingReport(sysUserId: string, code: string): Observable<any[]>;
|
|
40
|
+
getTransactionTypesForAccountingReport(): Observable<Product[]>;
|
|
41
|
+
getAllCurrenciesForAccountingReport(): Observable<any[]>;
|
|
42
|
+
getAllTransactionStatusForAccountingReport(): Observable<any[]>;
|
|
43
|
+
getAllCountriesForAccountingReport(): Observable<any[]>;
|
|
26
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReportService, never>;
|
|
27
45
|
static ɵprov: i0.ɵɵInjectableDeclaration<ReportService>;
|
|
28
46
|
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import 'jspdf-autotable';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface ExportOptions {
|
|
4
|
+
currencyFields?: string[];
|
|
5
|
+
dateFields?: string[];
|
|
6
|
+
dateFieldFormats?: {
|
|
7
|
+
[field: string]: 'dd/MM/yyyy' | 'dd/MM/yyyy hh:mm a' | 'dd/MM/yyyy HH:mm' | string;
|
|
8
|
+
};
|
|
9
|
+
excludeFields?: string[];
|
|
10
|
+
groupByKey?: boolean;
|
|
11
|
+
specialDecimalFields?: {
|
|
12
|
+
[field: string]: number;
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export declare class GenericExportService {
|
|
16
|
+
private logoBase64?;
|
|
17
|
+
private readonly pdfFontSize;
|
|
18
|
+
private readonly pdfLineHeight;
|
|
19
|
+
private readonly pdfLeftMargin;
|
|
20
|
+
constructor();
|
|
21
|
+
private loadImageAsBase64;
|
|
22
|
+
exportToPdf({ title, metadata, columns, data, options }: {
|
|
23
|
+
title: string;
|
|
24
|
+
metadata: [string, string][];
|
|
25
|
+
columns: any[];
|
|
26
|
+
data: any[] | Record<string, any[]>;
|
|
27
|
+
options?: ExportOptions;
|
|
28
|
+
}): Promise<void>;
|
|
29
|
+
exportToExcel({ title, metadata, columns, data, options }: {
|
|
30
|
+
title: string;
|
|
31
|
+
metadata: [string, string][];
|
|
32
|
+
columns: any[];
|
|
33
|
+
data: any[] | Record<string, any[]>;
|
|
34
|
+
options?: ExportOptions;
|
|
35
|
+
}): Promise<void>;
|
|
36
|
+
exportToCsv({ title, metadata, columns, data, options }: {
|
|
37
|
+
title: string;
|
|
38
|
+
metadata: [string, string][];
|
|
39
|
+
columns: any[];
|
|
40
|
+
data: any[] | Record<string, any[]>;
|
|
41
|
+
options?: ExportOptions;
|
|
42
|
+
}): void;
|
|
43
|
+
private prepareTableRows;
|
|
44
|
+
private formatDateByFormat;
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericExportService, never>;
|
|
46
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<GenericExportService>;
|
|
47
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { OnInit, EventEmitter } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class MetadataComponent implements OnInit {
|
|
4
|
+
metaDataOne: Record<string, string>;
|
|
5
|
+
metaDataTwo: Record<string, string>;
|
|
6
|
+
showmetaDataOne: boolean;
|
|
7
|
+
showmetaDataTwo: boolean;
|
|
8
|
+
reportName: string;
|
|
9
|
+
searchEvent: EventEmitter<string>;
|
|
10
|
+
exportEvent: EventEmitter<string>;
|
|
11
|
+
searchText: any;
|
|
12
|
+
exportFormats: {
|
|
13
|
+
formatName: string;
|
|
14
|
+
code: string;
|
|
15
|
+
}[];
|
|
16
|
+
selectedExportOption: string;
|
|
17
|
+
preserveOrder: (_a: any, _b: any) => number;
|
|
18
|
+
constructor();
|
|
19
|
+
ngOnInit(): void;
|
|
20
|
+
onSearch(): void;
|
|
21
|
+
handleExport(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MetadataComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MetadataComponent, "lib-metadata", never, { "metaDataOne": "metaDataOne"; "metaDataTwo": "metaDataTwo"; "showmetaDataOne": "showmetaDataOne"; "showmetaDataTwo": "showmetaDataTwo"; "reportName": "reportName"; }, { "searchEvent": "searchEvent"; "exportEvent": "exportEvent"; }, never, never, false>;
|
|
24
|
+
}
|
|
@@ -53,6 +53,9 @@ export declare class SearchFilterComponent implements OnInit, OnDestroy {
|
|
|
53
53
|
private initializeForm;
|
|
54
54
|
loadInitialDataforBranchActivitySend(): void;
|
|
55
55
|
private loadInitialDatafortxnEnquiry;
|
|
56
|
+
loadInitialDataforBranchActivityReceive(): void;
|
|
57
|
+
private loadInitialDataForCancellationReport;
|
|
58
|
+
loadInitialDataforAccounting(): void;
|
|
56
59
|
private subscribeToDateChanges;
|
|
57
60
|
private setDefaultFormValues;
|
|
58
61
|
onClientChange(): Promise<void>;
|