@sachin9822/reports-lib 0.0.212 → 0.0.214

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.
Files changed (211) hide show
  1. package/esm2020/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.mjs +240 -0
  2. package/esm2020/lib/components/accounting-report/accounting-report.component.mjs +596 -0
  3. package/esm2020/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.mjs +218 -0
  4. package/esm2020/lib/components/branch-activity-send-report/branch-activity-send-report.component.mjs +243 -0
  5. package/esm2020/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.mjs +700 -0
  6. package/esm2020/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.mjs +255 -0
  7. package/esm2020/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.mjs +192 -0
  8. package/esm2020/lib/components/funding-report/funding-report.component.mjs +198 -0
  9. package/esm2020/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.mjs +244 -0
  10. package/esm2020/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.mjs +776 -0
  11. package/esm2020/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.mjs +266 -0
  12. package/esm2020/lib/components/transaction-monitoring-report/transaction-monitoring-report.component.mjs +311 -0
  13. package/esm2020/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.mjs +658 -0
  14. package/esm2020/lib/models/acc-gl-details-enquiry-report/accgl-details-enquiry-reportmodel.mjs +2 -0
  15. package/esm2020/lib/models/acc-gl-details-enquiry-report/journal-voucher-entry-model.mjs +2 -0
  16. package/esm2020/lib/models/accounting-report/accounting-report-branch-group.mjs +2 -0
  17. package/esm2020/lib/models/accounting-report/accounting-report-entry-model.mjs +2 -0
  18. package/esm2020/lib/models/accounting-report/accounting-report-model.mjs +2 -0
  19. package/esm2020/lib/models/accounting-report/accounting-report-sub-group.mjs +2 -0
  20. package/esm2020/lib/models/app-config.model.mjs +2 -0
  21. package/esm2020/lib/models/branch-activity-receive-report/branch-activity-receive.model.mjs +2 -0
  22. package/esm2020/lib/models/branch-activity-report/branch-activity-send-report-request-domain-model.mjs +6 -0
  23. package/esm2020/lib/models/branch-activity-report/branch-activity-send-report.mjs +3 -0
  24. package/esm2020/lib/models/cancellation-transaction-report/cancellation-transaction.model.mjs +10 -0
  25. package/esm2020/lib/models/component-loading-states.mjs +7 -0
  26. package/esm2020/lib/models/credit-limit-status-enquiry-report/credit-limit-status-enquiry.model.mjs +5 -0
  27. package/esm2020/lib/models/revenue-per-transaction-report/revenue-per-transaction.model.mjs +2 -0
  28. package/esm2020/lib/models/statement-of-account-report/statement-of-accounts.model.mjs +2 -0
  29. package/esm2020/lib/models/transaction-enquiry-report/transaction-enquiry.model.mjs +8 -0
  30. package/esm2020/lib/models/transaction-monitoring-report/transaction-monitoring-report-request-domain-model.mjs +6 -0
  31. package/esm2020/lib/models/transaction-monitoring-report/transaction-monitoring-report.mjs +5 -0
  32. package/esm2020/lib/models/trial-balance-accounts-report/trial-balance-accounts.models.mjs +3 -0
  33. package/esm2020/lib/reports-lib-routing.module.mjs +24 -0
  34. package/esm2020/lib/reports-lib.component.mjs +22 -0
  35. package/esm2020/lib/reports-lib.module.mjs +172 -0
  36. package/esm2020/lib/reports-lib.service.mjs +14 -0
  37. package/esm2020/lib/services/config.service.mjs +39 -0
  38. package/esm2020/lib/services/report.service.mjs +374 -0
  39. package/esm2020/lib/shared/export-generic.service.mjs +443 -0
  40. package/esm2020/lib/shared/export.service.mjs +379 -0
  41. package/esm2020/lib/shared/loader/loader.component.mjs +11 -0
  42. package/esm2020/lib/shared/metadata/metadata.component.mjs +51 -0
  43. package/esm2020/lib/shared/page-size-selector/page-size-selector.component.mjs +44 -0
  44. package/esm2020/lib/shared/search-filter/search-filter.component.mjs +2134 -0
  45. package/esm2020/lib/shared/shared.module.mjs +21 -0
  46. package/esm2020/public-api.mjs +41 -0
  47. package/esm2020/sachin9822-reports-lib.mjs +5 -0
  48. package/fesm2015/sachin9822-reports-lib.mjs +8429 -0
  49. package/fesm2015/sachin9822-reports-lib.mjs.map +1 -0
  50. package/fesm2020/sachin9822-reports-lib.mjs +8411 -0
  51. package/fesm2020/sachin9822-reports-lib.mjs.map +1 -0
  52. package/index.d.ts +5 -0
  53. package/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.d.ts +70 -0
  54. package/lib/components/accounting-report/accounting-report.component.d.ts +76 -0
  55. package/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.d.ts +58 -0
  56. package/lib/components/branch-activity-send-report/branch-activity-send-report.component.d.ts +69 -0
  57. package/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.d.ts +78 -0
  58. package/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.d.ts +95 -0
  59. package/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.d.ts +55 -0
  60. package/lib/components/funding-report/funding-report.component.d.ts +55 -0
  61. package/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.d.ts +57 -0
  62. package/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.d.ts +109 -0
  63. package/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.d.ts +76 -0
  64. package/lib/components/transaction-monitoring-report/transaction-monitoring-report.component.d.ts +68 -0
  65. package/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.d.ts +72 -0
  66. package/lib/models/acc-gl-details-enquiry-report/accgl-details-enquiry-reportmodel.d.ts +8 -0
  67. package/lib/models/acc-gl-details-enquiry-report/journal-voucher-entry-model.d.ts +18 -0
  68. package/lib/models/accounting-report/accounting-report-branch-group.d.ts +6 -0
  69. package/lib/models/accounting-report/accounting-report-entry-model.d.ts +24 -0
  70. package/lib/models/accounting-report/accounting-report-model.d.ts +6 -0
  71. package/{src/lib/models/accounting-report/accounting-report-sub-group.ts → lib/models/accounting-report/accounting-report-sub-group.d.ts} +2 -3
  72. package/{src/lib/models/app-config.model.ts → lib/models/app-config.model.d.ts} +7 -8
  73. package/lib/models/branch-activity-receive-report/branch-activity-receive.model.d.ts +18 -0
  74. package/lib/models/branch-activity-report/branch-activity-send-report-request-domain-model.d.ts +13 -0
  75. package/lib/models/branch-activity-report/branch-activity-send-report.d.ts +24 -0
  76. package/lib/models/cancellation-transaction-report/cancellation-transaction.model.d.ts +44 -0
  77. package/lib/models/component-loading-states.d.ts +5 -0
  78. package/lib/models/credit-limit-status-enquiry-report/credit-limit-status-enquiry.model.d.ts +26 -0
  79. package/{src/lib/models/revenue-per-transaction-report/revenue-per-transaction.model.ts → lib/models/revenue-per-transaction-report/revenue-per-transaction.model.d.ts} +1 -1
  80. package/lib/models/statement-of-account-report/statement-of-accounts.model.d.ts +18 -0
  81. package/lib/models/transaction-enquiry-report/transaction-enquiry.model.d.ts +113 -0
  82. package/lib/models/transaction-monitoring-report/transaction-monitoring-report-request-domain-model.d.ts +13 -0
  83. package/lib/models/transaction-monitoring-report/transaction-monitoring-report.d.ts +23 -0
  84. package/lib/models/trial-balance-accounts-report/trial-balance-accounts.models.d.ts +39 -0
  85. package/lib/reports-lib-routing.module.d.ts +7 -0
  86. package/lib/reports-lib.component.d.ts +8 -0
  87. package/lib/reports-lib.module.d.ts +33 -0
  88. package/lib/reports-lib.service.d.ts +6 -0
  89. package/lib/services/config.service.d.ts +20 -0
  90. package/lib/services/report.service.d.ts +80 -0
  91. package/lib/shared/export-generic.service.d.ts +50 -0
  92. package/lib/shared/export.service.d.ts +32 -0
  93. package/lib/shared/loader/loader.component.d.ts +5 -0
  94. package/lib/shared/metadata/metadata.component.d.ts +24 -0
  95. package/lib/shared/page-size-selector/page-size-selector.component.d.ts +15 -0
  96. package/lib/shared/search-filter/search-filter.component.d.ts +127 -0
  97. package/lib/shared/shared.module.d.ts +11 -0
  98. package/package.json +31 -16
  99. package/{src/public-api.ts → public-api.d.ts} +7 -17
  100. package/karma.conf.js +0 -44
  101. package/ng-package.json +0 -17
  102. package/src/assets/images/BreadcrumbArrow.png +0 -0
  103. package/src/assets/images/XMCoral.png +0 -0
  104. package/src/lib/assets/images/Search.svg +0 -10
  105. package/src/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.html +0 -27
  106. package/src/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.scss +0 -46
  107. package/src/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.spec.ts +0 -23
  108. package/src/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.ts +0 -292
  109. package/src/lib/components/accounting-report/accounting-report.component.html +0 -64
  110. package/src/lib/components/accounting-report/accounting-report.component.scss +0 -24
  111. package/src/lib/components/accounting-report/accounting-report.component.spec.ts +0 -23
  112. package/src/lib/components/accounting-report/accounting-report.component.ts +0 -738
  113. package/src/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.html +0 -46
  114. package/src/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.scss +0 -2
  115. package/src/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.spec.ts +0 -23
  116. package/src/lib/components/branch-activity-receive-report/branch-activity-receive-report.component.ts +0 -247
  117. package/src/lib/components/branch-activity-send-report/branch-activity-send-report.component.html +0 -46
  118. package/src/lib/components/branch-activity-send-report/branch-activity-send-report.component.scss +0 -3
  119. package/src/lib/components/branch-activity-send-report/branch-activity-send-report.component.spec.ts +0 -23
  120. package/src/lib/components/branch-activity-send-report/branch-activity-send-report.component.ts +0 -276
  121. package/src/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.html +0 -51
  122. package/src/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.scss +0 -7
  123. package/src/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.spec.ts +0 -23
  124. package/src/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.ts +0 -840
  125. package/src/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.html +0 -68
  126. package/src/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.scss +0 -65
  127. package/src/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.spec.ts +0 -23
  128. package/src/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.ts +0 -290
  129. package/src/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.html +0 -25
  130. package/src/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.scss +0 -1
  131. package/src/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.spec.ts +0 -23
  132. package/src/lib/components/credit-limit-status-enquiry-report/credit-limit-status-enquiry-report.component.ts +0 -213
  133. package/src/lib/components/funding-report/funding-report.component.html +0 -49
  134. package/src/lib/components/funding-report/funding-report.component.scss +0 -1
  135. package/src/lib/components/funding-report/funding-report.component.spec.ts +0 -23
  136. package/src/lib/components/funding-report/funding-report.component.ts +0 -221
  137. package/src/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.html +0 -26
  138. package/src/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.scss +0 -1
  139. package/src/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.spec.ts +0 -23
  140. package/src/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.ts +0 -267
  141. package/src/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.html +0 -95
  142. package/src/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.scss +0 -54
  143. package/src/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.spec.ts +0 -23
  144. package/src/lib/components/statement-of-accounts-report/statement-of-accounts-report.component.ts +0 -904
  145. package/src/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.html +0 -49
  146. package/src/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.scss +0 -2
  147. package/src/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.spec.ts +0 -32
  148. package/src/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.ts +0 -304
  149. package/src/lib/components/transaction-monitoring-report/transaction-monitoring-report.component.html +0 -46
  150. package/src/lib/components/transaction-monitoring-report/transaction-monitoring-report.component.scss +0 -7
  151. package/src/lib/components/transaction-monitoring-report/transaction-monitoring-report.component.ts +0 -343
  152. package/src/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.html +0 -25
  153. package/src/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.scss +0 -23
  154. package/src/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.spec.ts +0 -23
  155. package/src/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.ts +0 -745
  156. package/src/lib/models/acc-gl-details-enquiry-report/accgl-details-enquiry-reportmodel.ts +0 -10
  157. package/src/lib/models/acc-gl-details-enquiry-report/journal-voucher-entry-model.ts +0 -20
  158. package/src/lib/models/accounting-report/accounting-report-branch-group.ts +0 -7
  159. package/src/lib/models/accounting-report/accounting-report-entry-model.ts +0 -25
  160. package/src/lib/models/accounting-report/accounting-report-model.ts +0 -7
  161. package/src/lib/models/branch-activity-receive-report/branch-activity-receive.model.ts +0 -18
  162. package/src/lib/models/branch-activity-report/branch-activity-send-report-request-domain-model.ts +0 -16
  163. package/src/lib/models/branch-activity-report/branch-activity-send-report.ts +0 -26
  164. package/src/lib/models/cancellation-transaction-report/cancellation-transaction.model.ts +0 -65
  165. package/src/lib/models/component-loading-states.ts +0 -5
  166. package/src/lib/models/credit-limit-status-enquiry-report/credit-limit-status-enquiry.model.ts +0 -28
  167. package/src/lib/models/statement-of-account-report/statement-of-accounts.model.ts +0 -21
  168. package/src/lib/models/transaction-enquiry-report/transaction-enquiry.model.ts +0 -127
  169. package/src/lib/models/transaction-monitoring-report/transaction-monitoring-report-request-domain-model.ts +0 -16
  170. package/src/lib/models/transaction-monitoring-report/transaction-monitoring-report.ts +0 -29
  171. package/src/lib/models/trial-balance-accounts-report/trial-balance-accounts.models.ts +0 -46
  172. package/src/lib/reports-lib-routing.module.ts +0 -20
  173. package/src/lib/reports-lib.component.spec.ts +0 -23
  174. package/src/lib/reports-lib.component.ts +0 -20
  175. package/src/lib/reports-lib.module.ts +0 -102
  176. package/src/lib/reports-lib.service.spec.ts +0 -16
  177. package/src/lib/reports-lib.service.ts +0 -9
  178. package/src/lib/services/config.service.ts +0 -43
  179. package/src/lib/services/report.service.spec.ts +0 -16
  180. package/src/lib/services/report.service.ts +0 -463
  181. package/src/lib/shared/export-generic.service.ts +0 -557
  182. package/src/lib/shared/export.service.spec.ts +0 -16
  183. package/src/lib/shared/export.service.ts +0 -457
  184. package/src/lib/shared/loader/loader.component.html +0 -8
  185. package/src/lib/shared/loader/loader.component.scss +0 -52
  186. package/src/lib/shared/loader/loader.component.ts +0 -10
  187. package/src/lib/shared/metadata/metadata.component.html +0 -42
  188. package/src/lib/shared/metadata/metadata.component.scss +0 -95
  189. package/src/lib/shared/metadata/metadata.component.spec.ts +0 -23
  190. package/src/lib/shared/metadata/metadata.component.ts +0 -38
  191. package/src/lib/shared/page-size-selector/page-size-selector.component.html +0 -7
  192. package/src/lib/shared/page-size-selector/page-size-selector.component.scss +0 -42
  193. package/src/lib/shared/page-size-selector/page-size-selector.component.spec.ts +0 -23
  194. package/src/lib/shared/page-size-selector/page-size-selector.component.ts +0 -38
  195. package/src/lib/shared/search-filter/search-filter.component.html +0 -601
  196. package/src/lib/shared/search-filter/search-filter.component.scss +0 -203
  197. package/src/lib/shared/search-filter/search-filter.component.spec.ts +0 -23
  198. package/src/lib/shared/search-filter/search-filter.component.ts +0 -2387
  199. package/src/lib/shared/shared.module.ts +0 -13
  200. package/src/styles/ag-grid-report-style.scss +0 -71
  201. package/src/styles/common-ag-grid-style.scss +0 -146
  202. package/src/styles/common-report-style.scss +0 -395
  203. package/src/styles/common-style.scss +0 -615
  204. package/src/test.ts +0 -27
  205. package/tsconfig.lib.json +0 -15
  206. package/tsconfig.lib.prod.json +0 -10
  207. package/tsconfig.spec.json +0 -17
  208. /package/{src/lib → lib}/assets/config/app-config.json +0 -0
  209. /package/{src → lib}/assets/images/Search.svg +0 -0
  210. /package/{src/lib → lib}/assets/images/XMLogo.png +0 -0
  211. /package/{src/lib → lib}/assets/svg-loaders/blue-tail-spin.svg +0 -0
@@ -1,343 +0,0 @@
1
- // import { Component, NgZone, OnInit, inject } from '@angular/core';
2
- // import { ReportService } from 'src/app/services/report.service';
3
- // import { BranchActivityReport } from 'src/app/models/branch-activity-report/branch-activity-send-report';
4
- // import { ColDef, GridApi, GridReadyEvent } from 'ag-grid-community';
5
- import { themeAlpine } from '@ag-grid-community/theming';
6
- // import { formatDate } from '@angular/common';
7
- // import { ComponentLoadingStates } from 'src/app/models/component-loading-states';
8
- // import { GenericExportService } from 'src/app/shared/export-generic.service';
9
- // import { TransactionMonitoringReport } from 'src/app/models/transaction-monitoring-report/transaction-monitoring-report';
10
-
11
- import { Component, inject, NgZone, OnInit } from "@angular/core";
12
- import { TransactionMonitoringReport } from "../../models/transaction-monitoring-report/transaction-monitoring-report";
13
- import { ColDef, GridApi, GridReadyEvent } from "ag-grid-community";
14
- import { ComponentLoadingStates } from "../../models/component-loading-states";
15
- import { GenericExportService } from "../../shared/export-generic.service";
16
- import { ReportService } from "../../services/report.service";
17
- import { formatDate } from '@angular/common';
18
- import { ActivatedRoute } from '@angular/router';
19
-
20
- @Component({
21
- selector: 'lib-transaction-monitoring-report',
22
- templateUrl: './transaction-monitoring-report.component.html',
23
- styleUrls: ['./transaction-monitoring-report.component.scss']
24
- })
25
- export class TransactionMonitoringReportComponent implements OnInit {
26
- dataMap: Record<string, TransactionMonitoringReport[]> = {}
27
- filteredData: Record<string, TransactionMonitoringReport[]> = {}
28
- proxyData: Record<string, TransactionMonitoringReport[]> = {}
29
- showReport: boolean;
30
- paginationArray: any[];
31
- selectedExportOption = 'excel';
32
- gridApis: GridApi[] = [];
33
- gridColumnApi;
34
- user: string = "";
35
- reportDate: string;
36
- fromDate: string;
37
- toDate: string;
38
- searchText: string;
39
- buffer: any;
40
- sysUserId: string;
41
- private logoBase64: string | undefined;
42
- ComponentLoadingState = ComponentLoadingStates;
43
- loadingState: ComponentLoadingStates = ComponentLoadingStates.Loading;
44
- ReportName: string = "Transaction Monitoring";
45
- leftData: Record<string, string>;
46
- metaDataTwo: Record<string, string>;
47
- exportService: GenericExportService = inject(GenericExportService);
48
- searchCriteria: [string, string][] = [];
49
- initialFilters: any;
50
-
51
- // flags
52
- showMessage: boolean = false;
53
- noDataFound: boolean = false;
54
- isFormValid: boolean = false;
55
-
56
- columnDefs: ColDef<TransactionMonitoringReport>[] = [
57
- { field: 'businessDateTime', headerName: 'Business Date', flex: 1, headerClass: 'ag-left-aligned-header', minWidth: 70, wrapText: true, autoHeight: true, tooltipField: 'businessDateTime' },
58
- { field: 'transactionDateTime', headerName: 'Transaction Date', flex: 2, headerClass: 'ag-left-aligned-header', minWidth: 100, wrapText: true, autoHeight: true, tooltipField: 'transactionDateTime' },
59
- { field: 'transactionNumber', headerName: 'Transaction Number', flex: 1.8, headerClass: 'ag-left-aligned-header', minWidth: 90, wrapText: true, autoHeight: true, cellClass: 'ag-left-cols-cell compact-cell-transaction', tooltipField: 'transactionNumber' },
60
- { field: 'product', headerName: 'Product', flex: 0.5, headerClass: 'ag-left-aligned-header', minWidth: 60, wrapText: true, autoHeight: true, tooltipField: 'product' },
61
- { field: 'sendAgentCode', headerName: 'SendClient Code', flex: 1, headerClass: 'ag-left-aligned-header', minWidth: 90, wrapText: true, autoHeight: true, tooltipField: 'sendAgentCode' },
62
- { field: 'sendAgentBranchCode', headerName: 'SendClient BranchCode', flex: 1, headerClass: 'ag-left-aligned-header', minWidth: 90, wrapText: true, autoHeight: true, tooltipField: 'sendAgentBranchCode' },
63
- { field: 'sendAgentBranchName', headerName: 'SendClient BranchName', flex: 1, headerClass: 'ag-left-aligned-header', minWidth: 120, wrapText: true, autoHeight: true, tooltipField: 'sendAgentBranchName' },
64
-
65
- { field: 'senderName', headerName: 'Sender Name', flex: 1, headerClass: 'ag-left-aligned-header', minWidth: 120, wrapText: true, autoHeight: true, tooltipField: 'senderName' },
66
- { field: 'receiverName', headerName: 'Receiver Name', flex: 1, headerClass: 'ag-left-aligned-header', minWidth: 100, wrapText: true, autoHeight: true, tooltipField: 'receiverName' },
67
- { field: 'receiveAgentCode', headerName: 'Receive ClientCode', flex: 1, headerClass: 'ag-left-aligned-header', minWidth: 90, wrapText: true, autoHeight: true, tooltipField: 'receiveAgentCode' },
68
- { field: 'payoutCCcode', headerName: 'ReceiveCcy Code', flex: 1, headerClass: 'ag-left-aligned-header', minWidth: 80, wrapText: true, autoHeight: true, tooltipField: 'payoutCCcode' },
69
- { field: 'payoutAmount', headerName: 'Receive Amount', flex: 1, headerClass: 'ag-left-aligned-header', minWidth: 90, wrapText: true, autoHeight: true, cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'payoutAmount' },
70
- { field: 'payinCCcode', headerName: 'SendCcy Code', flex: 1, headerClass: 'ag-left-aligned-header', minWidth: 60, wrapText: true, autoHeight: true, tooltipField: 'payinCCcode' },
71
- { field: 'payinAmount', headerName: 'Send Amount', flex: 1, headerClass: 'ag-left-aligned-header', minWidth: 80, wrapText: true, autoHeight: true, cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'payinAmount' },
72
- { field: 'transactionCommissionAmount', headerName: 'Service Fee', flex: 1, headerClass: 'ag-left-aligned-header', minWidth: 70, wrapText: true, autoHeight: true, cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'transactionCommissionAmount' },
73
- { field: 'tax', headerName: 'Tax', flex: 1, headerClass: 'ag-left-aligned-header', minWidth: 60, wrapText: true, autoHeight: true, cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'tax' },
74
- { field: 'totalPayinAmount', headerName: 'Total Send Amount', flex: 1, headerClass: 'ag-left-aligned-header', minWidth: 100, wrapText: true, autoHeight: true, cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'totalPayinAmount' },
75
- { field: 'txnStatusDateAndTime', headerName: 'Txn Status Date & Time', flex: 1, headerClass: 'ag-left-aligned-header', minWidth: 100, wrapText: true, autoHeight: true, tooltipField: 'txnStatusDateAndTime' }
76
- ];
77
-
78
-
79
- defaultColDef = {
80
- sortable: true,
81
- filter: true,
82
- resizable: true,
83
- minwidth: 40,
84
- wrapHeaderText: true,
85
- autoHeaderHeight: true,
86
- suppressSizeToFit: false,
87
- wrapText: true
88
- };
89
- rowData: TransactionMonitoringReport[] = [];
90
-
91
- constructor(private reportService: ReportService, private ngZone: NgZone,private route: ActivatedRoute) { }
92
-
93
- reportTheme = themeAlpine.withParams({
94
- headerFontSize: '10px',
95
- fontFamily: ['Arial', 'sans-serif'],
96
- fontSize: '9px'
97
- });
98
-
99
- ngOnInit(): void {
100
- this.loadingState = ComponentLoadingStates.Complete;
101
- // Check if User is falcon user or fossilUser
102
- if (sessionStorage.getItem('fossilusername')) {
103
- this.sysUserId = sessionStorage.getItem('fossilusername')
104
- }
105
- else {
106
- this.sysUserId = sessionStorage.getItem('ezremitusername');
107
- }
108
- this.sysUserId = this.sysUserId.replace(/^["'](.*)["']$/, '$1');
109
- this.user = this.sysUserId;
110
- console.log("System User Id : " + this.sysUserId);
111
-
112
- const params = this.route.snapshot.queryParams;
113
- console.log("params length:" + Object.keys(params).length)
114
-
115
- if (Object.keys(params).length > 0) {
116
- this.initialFilters = {
117
- transactionStatus: params['transactionStatus'],
118
- receiveCountry: params['receiveCountry'],
119
- toDate: params['toDate'],
120
- fromDate: params['fromDate'],
121
- isRealtime: params['isRealtime'] === 'true' || params['isRealtime'] === true
122
- };
123
- } else {
124
- this.initialFilters = null;
125
- }
126
- }
127
-
128
- filter(text: string) {
129
- this.searchText = text;
130
- if (this.searchText == null) {
131
- return;
132
- }
133
- if (this.searchText?.length === 0) {
134
- this.filteredData = structuredClone(this.dataMap);
135
- return;
136
- }
137
- this.searchText = this.searchText?.trim()?.toLowerCase();
138
- for (const [key, entries] of Object.entries(this.proxyData)) {
139
- const filteredData = entries.filter(entry => Object.values(entry)
140
- .some(val => {
141
- let a: string = val?.toString().toLowerCase();
142
- if (a == null) {
143
- return false;
144
- }
145
-
146
- return a?.search(this.searchText) == -1 ? false : true;
147
- }))
148
-
149
- this.filteredData[key] = filteredData;
150
- }
151
- this.filteredData;
152
- }
153
-
154
- onGridReady(params: GridReadyEvent, id: number) {
155
- params.api.sizeColumnsToFit();
156
- this.gridColumnApi = params.columnApi;
157
- this.gridApis[id] = params.api;
158
- }
159
-
160
- handleExport(option: string): void {
161
- this.selectedExportOption = option;
162
- if (!this.hasAnyGroups()) {
163
- alert("There is no data to export based on your current filter.");
164
- return;
165
- }
166
- // If no data, do nothing.
167
- if (!this.filteredData || Object.keys(this.filteredData).length === 0) {
168
- alert("No data to export");
169
- return;
170
- }
171
- const title = "Transaction Monitoring";
172
- const reportTimeFormatter = this.dateValueFormatter('dd/MM/yyyy hh:mm a');
173
- const metadata: [string, string][] = [
174
- ['Report Period ', this.fromDate + " - " + this.toDate],
175
- ['Report User & Time', this.user ? this.user + " @ " + this.reportDate : '' + " @ " + this.reportDate],
176
- ];
177
- // --- search criteria ---
178
- const searchCriteria: [string, string][] = this.searchCriteria;
179
- const columns = this.columnDefs;
180
- // const data = this.dataMap;
181
- const data: Record<string, any[]> = {};
182
-
183
- Object.entries(this.dataMap).forEach(([status, rows]) => {
184
- const count = rows.length;
185
- const newKey = `${status} - ${count}`;
186
- data[newKey] = rows;
187
- });
188
- const options = {
189
- currencyFields: [
190
- 'payoutAmount', 'payinAmount', 'transactionCommissionAmount', 'tax', 'totalPayinAmount'
191
- ],
192
- // specify all date fields expected
193
- dateFields: [],
194
-
195
- dateFieldFormats: {
196
- txnDateAndTime: 'dd/MM/yyyy hh:mm a',
197
- cancellationBranchDateTime: 'dd/MM/yyyy HH:mm',
198
- cancellationBusinessDate: 'dd/MM/yyyy'
199
- },
200
-
201
- specialDecimalFields: {
202
- rate: 8 // future field with 8 decimal places
203
- },
204
-
205
- groupByKey: true
206
- };
207
-
208
- switch (this.selectedExportOption) {
209
- case 'excel':
210
- this.exportService.exportToExcel({ title, metadata, searchCriteria, columns, data, options });
211
- break;
212
- case 'pdf':
213
- this.exportService.exportToPdf({ title, metadata, searchCriteria, columns, data, options });
214
- break;
215
- case 'csv':
216
- this.exportService.exportToCsv({ title, metadata, searchCriteria, columns, data, options });
217
- break;
218
- default:
219
- alert("Please select an export format.");
220
- }
221
- }
222
-
223
- dateValueFormatter(format: string) {
224
- return (params: any) => {
225
- if (!params.value) return '';
226
- try {
227
- return formatDate(params.value, format, 'en-US');
228
- } catch {
229
- return '';
230
- }
231
- }
232
- }
233
-
234
- getKeys(obj: Record<string, unknown>): string[] {
235
- return obj ? Object.keys(obj) : [];
236
- }
237
-
238
- hasAnyGroups(): boolean {
239
- return this.filteredData && this.getKeys(this.filteredData).length > 0;
240
- }
241
-
242
- formatAmount(params: any): string {
243
- const value = params?.value;
244
- if (value !== null && value !== undefined && value !== '') {
245
- const num = Number(value);
246
- return (Math.trunc(num * 1000) / 1000).toFixed(3);
247
- }
248
- return '';
249
- }
250
- statusOrderMap: any = {
251
- PendingAuthorisation: 1,
252
- Confirmed: 2,
253
- InAMLReview: 3,
254
- InProcess: 3,
255
- AMLRejected: 4,
256
- Decline: 4,
257
- Submitted: 5,
258
- Dispatched: 6,
259
- Paid: 7,
260
- BankRejected: 8,
261
- StopApproved: 9,
262
- ReadytoCancel: 10,
263
- Cancelled: 11,
264
- PaidCancelled: 12,
265
- Void: 13,
266
- Rejected: 14
267
- };
268
-
269
- statusOrderComparator = (a: any, b: any): number => {
270
- const orderA = this.statusOrderMap[a.key] ?? 20;
271
- const orderB = this.statusOrderMap[b.key] ?? 20;
272
- return orderA - orderB;
273
- };
274
- handleSearch(criteria: any): void {
275
- this.searchCriteria = criteria.searchCriteria;
276
- this.reportDate = new Date().toISOString();
277
- this.reportDate = formatDate(this.reportDate, 'dd/MM/yyyy hh:mm a', 'en-US');
278
- const modal = criteria.modal;
279
- this.user = criteria.sysUserID;
280
- // this.fromDate = formatDate(modal.fromDate, 'dd/MM/yyyy hh:mm a', 'en-US').slice(0, 10);
281
- //this.toDate = formatDate(modal.toDate, 'dd/MM/yyyy hh:mm a', 'en-US').slice(0, 10);
282
- this.fromDate = modal.fromDate
283
- ? formatDate(modal.fromDate, 'dd/MM/yyyy hh:mm a', 'en-US').slice(0, 10)
284
- : null;
285
-
286
- this.toDate = modal.toDate
287
- ? formatDate(modal.toDate, 'dd/MM/yyyy hh:mm a', 'en-US').slice(0, 10)
288
- : null;
289
-
290
- console.log(modal);
291
- // Code For Meta Data
292
- this.leftData = {
293
- // 'Report Period': this.fromDate + " - " + this.toDate,
294
- 'Report Period': this.fromDate && this.toDate
295
- ? `${this.fromDate} - ${this.toDate}`
296
- : ''
297
- }
298
-
299
- this.metaDataTwo = {
300
- 'Report User & Time': this.user + " @ " + this.reportDate,
301
- }
302
-
303
- const searchData = {
304
- "StartDate": modal.fromDate,
305
- "EndDate": modal.toDate,
306
- "SendCountryCode": modal.sendCountry,
307
- "RecvCountryCode": modal.receiveCountry,
308
- "BusinessPartnerCode": modal.client,
309
- "TransactionStatus": modal.transactionStatus.join(","),
310
- "PayoutCurrency": modal.receiveCurrency,
311
- "TransactionType": modal.product,
312
- "BranchCode": modal.branch,
313
- "IsrealTime": criteria.isRealtime
314
- };
315
- this.showMessage = true;
316
- this.loadingState = ComponentLoadingStates.Loading;
317
- this.reportService.getTransactionMonitoringReport(searchData).subscribe({
318
- next: (data) => {
319
- console.log(data);
320
- this.dataMap = JSON.parse(JSON.stringify(data));
321
- this.filteredData = data;
322
- this.noDataFound = Object.keys(this.filteredData).length == 0 ? true : false;
323
- this.proxyData = structuredClone(data);
324
- this.paginationArray = new Array(Object.keys(this.filteredData).length).fill(15);
325
- this.showMessage = Object.keys(this.filteredData).length == 0 ? true : false;
326
- this.showReport = true;
327
- },
328
- error: (err) => {
329
- this.loadingState = ComponentLoadingStates.Complete;
330
- },
331
-
332
- complete: () => {
333
- this.loadingState = ComponentLoadingStates.Complete;
334
- this.showReport = true;
335
- }
336
- })
337
- }
338
-
339
- handleFormValid(isValid: boolean): void {
340
- this.isFormValid = isValid;
341
- }
342
-
343
- }
@@ -1,25 +0,0 @@
1
- <lib-search-filter [ReportName]="ReportName" (searchClicked)="getReport($event)"
2
- (formValid)="handleFormValid($event)"></lib-search-filter>
3
- <app-loader class="" *ngIf="loadingState == ComponentLoadingState.Loading"></app-loader>
4
-
5
- <div *ngIf="dataReady && trialBalanceReport?.mainCOAGroups?.length > 0 &&isFormValid">
6
- <lib-metadata [reportName]="'Xpress Money - MI Accounts'" [showmetaDataOne]="true" [showmetaDataTwo]="true"
7
- [metaDataOne]="metaDataOne" [metaDataTwo]="metaDataTwo" (exportEvent)="handleExport($event)"
8
- (searchEvent)="onSearch($event)"></lib-metadata>
9
-
10
- <div style="position: relative;" *ngIf="rowData && rowData.length > 0">
11
- <lib-page-size-selector [totalEntries]="rowData?.length" [defaultSize]="'15'"
12
- [gridApi]="gridApi"></lib-page-size-selector>
13
-
14
- <ag-grid-angular class="ag-theme-alpine transaction-grid" style="height: 380px;" [domLayout]="'normal'"
15
- [rowData]="rowData" [defaultColDef]="defaultColDef" [columnDefs]="columnDefs" [rowClassRules]="rowClassRules"
16
- [pagination]="true" (gridReady)="onGridReady($event)" [paginationPageSize]="pageSize" [rowHeight]="20"
17
- [headerHeight]="22" (paginationChanged)="onResize()"></ag-grid-angular>
18
-
19
- </div>
20
-
21
- </div>
22
-
23
- <div class="alert alert-warning mt-3" *ngIf="trialBalanceReport?.mainCOAGroups?.length==0">
24
- No Data found matching your search criteria.
25
- </div>
@@ -1,23 +0,0 @@
1
- @import 'src/styles/ag-grid-report-style.scss';
2
-
3
- .transaction-grid ::ng-deep .ag-row.total-row .ag-cell {
4
- font-weight: bold !important;
5
- }
6
-
7
- .transaction-grid ::ng-deep .ag-cell.total-positive {
8
- font-weight: bold !important;
9
- color: black !important;
10
- }
11
-
12
- .transaction-grid ::ng-deep .ag-cell.total-negative {
13
- font-weight: bold !important;
14
- color: red !important;
15
- }
16
-
17
- .transaction-grid ::ng-deep .ag-cell.positive-value {
18
- color: black !important;
19
- }
20
-
21
- .transaction-grid ::ng-deep .ag-cell.negative-value {
22
- color: red !important;
23
- }
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { TrialBalanceAccountsReportComponent } from './trial-balance-accounts-report.component';
4
-
5
- describe('TrialBalanceAccountsReportComponent', () => {
6
- let component: TrialBalanceAccountsReportComponent;
7
- let fixture: ComponentFixture<TrialBalanceAccountsReportComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- declarations: [ TrialBalanceAccountsReportComponent ]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(TrialBalanceAccountsReportComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });