@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,267 +0,0 @@
1
- import { Component, inject, OnInit } from '@angular/core';
2
- import { RevenuePerTransactionResponseModel } from '../../models/revenue-per-transaction-report/revenue-per-transaction.model';
3
- import { ReportService } from '../../services/report.service';
4
- import { ExportService } from '../../shared/export.service';
5
- import { ComponentLoadingStates } from '../../models/component-loading-states';
6
- import { ColDef, ColumnApi, GridApi, GridReadyEvent } from 'ag-grid-community';
7
- import { formatDate } from '@angular/common';
8
-
9
- @Component({
10
- selector: 'lib-revenue-per-transaction-report',
11
- templateUrl: './revenue-per-transaction-report.component.html',
12
- styleUrls: ['./revenue-per-transaction-report.component.scss']
13
- })
14
- export class RevenuePerTransactionReportComponent implements OnInit {
15
- data: RevenuePerTransactionResponseModel[] = [];
16
- filteredData: RevenuePerTransactionResponseModel[] = [];
17
- user: string = "";
18
- sysUserId: string = "";
19
- ReportName = "Revenue Per Transaction"
20
- reportService: ReportService = inject(ReportService);
21
- exportService: ExportService = inject(ExportService);
22
- reportDate: string;
23
- fromDate: string;
24
- toDate: string;
25
- metaDataOne: Record<string, string>;
26
- metaDataTwo: Record<string, string>;
27
- ComponentLoadingState = ComponentLoadingStates;
28
- loadingState: ComponentLoadingStates = ComponentLoadingStates.Complete;
29
- selectedExportOption: string;
30
- searchText: string = '';
31
- pageSize: number = 15;
32
- searchCriteria: [string, string][];
33
-
34
- gridApi: GridApi;
35
- gridColumnApi: ColumnApi;
36
- showReport: boolean = false;
37
- noDataFound: boolean = false;
38
- isFormValid: boolean = false;
39
-
40
- columnDefs: ColDef<RevenuePerTransactionResponseModel>[] = [
41
- { field: 'businessDate', headerName: 'Business Date', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, tooltipField: 'businessDate' },
42
- { field: 'payInDate', headerName: 'Send Date', flex: 1, headerClass: 'ag-header-cell', minWidth: 100, tooltipField: 'payInDate' },
43
- { field: 'payOutDate', headerName: 'Receive Date', flex: 1, headerClass: 'ag-header-cell', minWidth: 100, wrapText: true, autoHeight: true, tooltipField: 'payOutDate' },
44
- { field: 'transactionNumber', headerName: 'Transaction Number', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true, tooltipField: 'transactionNumber' },
45
- { field: 'productCode', headerName: 'Product', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true, tooltipField: 'productCode' },
46
- { field: 'sendCountry', headerName: 'Send Country', flex: 1, headerClass: 'ag-header-cell', minWidth: 120, wrapText: true, autoHeight: true, tooltipField: 'sendCountry' },
47
- { field: 'sendAgentName', headerName: 'SendClient Name', flex: 1, headerClass: 'ag-header-cell', minWidth: 120, wrapText: true, autoHeight: true, tooltipField: 'sendAgentName' },
48
- { field: 'sendAgentCode', headerName: 'SendClient Code', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true, tooltipField: 'sendAgentCode' },
49
- { field: 'sendAgentBranchCode', headerName: 'SendClient BranchCode', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true, tooltipField: 'sendAgentBranchCode' },
50
- { field: 'receiveCountry', headerName: 'Receive Country', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true, tooltipField: 'receiveCountry' },
51
- { field: 'receiveAgentName', headerName: 'ReceiveClient Name', flex: 1, headerClass: 'ag-header-cell', minWidth: 150, wrapText: true, autoHeight: true, tooltipField: 'receiveAgentName' },
52
- { field: 'receiveAgentCode', headerName: 'ReceiveClient Code', flex: 1, headerClass: 'ag-header-cell', minWidth: 90, wrapText: true, autoHeight: true, tooltipField: 'receiveAgentCode' },
53
- { field: 'payInCurrency', headerName: 'Send CcyCode', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true, tooltipField: 'payInCurrency' },
54
- { field: 'payInAmount', headerName: 'Send Amount', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true,cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'payInAmount' },
55
- { field: 'transactionCommission', headerName: 'Service Fee', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true,cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'transactionCommission' },
56
- { field: 'usdRate', headerName: 'USD Rate', flex: 1, headerClass: 'ag-header-cell', wrapText: true, minWidth: 80, autoHeight: true, cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'usdRate' },
57
- { field: 'ezRemitSellMargin', headerName: 'XM SellMargin', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true, cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'ezRemitSellMargin' },
58
- { field: 'ezRemitSellRate', headerName: 'XM SellRate', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true, cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'ezRemitSellRate' },
59
- { field: 'bankSellRate', headerName: 'Bank SellRate', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true, cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'bankSellRate' },
60
- { field: 'payOutCurrency', headerName: 'Receive CcyCode', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true, tooltipField: 'payOutCurrency' },
61
- { field: 'payOutAmount', headerName: 'Receive Amount', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true,cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'payOutAmount' },
62
- { field: 'beneDeductAmount', headerName: 'BeneDeduct Amount', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true,cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'beneDeductAmount' },
63
- { field: 'usdRateAppliedPayout', headerName: 'USDRate @Payout', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true, cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'usdRateAppliedPayout' },
64
- { field: 'xMsCommissionShare', headerName: "XM's Service Fee Share", flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true,cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'xmsCommissionShare' },
65
- { field: 'xmExchangeVariation', headerName: 'XM Exchange Variation (Gain/Loss)', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true,cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'xmExchangeVariation' },
66
- { field: 'xMsBeneDeductShare', headerName: "XM's BeneDeduct Share", flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true,cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'xmsBeneDeductShare' },
67
- { field: 'revenuePerTransaction', headerName: 'Revenue Per Transaction', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true,cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'revenuePerTransaction' },
68
- { field: 'totalSettleAmount', headerName: 'Total Settlement', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true,cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'totalSettleAmount' },
69
- { field: 'transactionStatus', headerName: 'Transaction Status', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true, tooltipField: 'transactionStatus' },
70
- ]
71
-
72
- defaultColDef = {
73
- sortable: true,
74
- filter: true,
75
- resizable: true,
76
- minwidth: 40,
77
- wrapHeaderText: true,
78
- autoHeaderHeight: true,
79
- suppressSizeToFit: false,
80
- wrapText: true
81
- };
82
- constructor() { }
83
-
84
- ngOnInit(): void {
85
- if (sessionStorage.getItem('fossilusername')) {
86
- this.sysUserId = sessionStorage.getItem('fossilusername')
87
- }
88
- else {
89
- this.sysUserId = sessionStorage.getItem('ezremitusername');
90
- }
91
- this.sysUserId = this.sysUserId.replace(/^["'](.*)["']$/, '$1');
92
- }
93
-
94
- onGridReady(params: GridReadyEvent) {
95
- this.gridApi = params.api;
96
- this.gridColumnApi = params.columnApi;
97
- }
98
-
99
- // Currency Formatter
100
- formatAmount(params: any): string {
101
- if (params.value == null) return '0.000';
102
- const num = Number(params.value);
103
- return num.toFixed(3);
104
- }
105
-
106
- formatRate(params: any): string {
107
- const value = params?.value;
108
- if (value !== null && value !== undefined && value !== '') {
109
- const num = Number(value);
110
- // return (Math.trunc(num * 100000000) / 100000000).toFixed(8);
111
- return parseFloat(value).toFixed(8);
112
- }
113
- return '';
114
- }
115
-
116
- onSearch(text: string) {
117
- this.searchText = text;
118
- if (this.searchText == null) {
119
- return;
120
- }
121
- if (this.searchText === "") {
122
- this.filteredData = JSON.parse(JSON.stringify(this.data));
123
- return;
124
- }
125
- const data = JSON.parse(JSON.stringify(this.data));
126
- this.filteredData = data.filter((row) =>
127
- Object.values(row).some(val => String(val).toLowerCase().includes(this.searchText?.toLowerCase()))
128
- )
129
- }
130
-
131
- handleExport(option: string) {
132
- this.selectedExportOption = option;
133
- if (this.selectedExportOption === 'pdf') {
134
- this.exportToPDF();
135
- } else if (this.selectedExportOption === 'excel') {
136
- this.exportToExcel();
137
- } else if (this.selectedExportOption === 'csv') {
138
- this.exportToCSV();
139
- } else {
140
- alert('Please select a valid export format.');
141
- }
142
- }
143
-
144
- exportToExcel(): void {
145
- if (!this.data?.length) return;
146
-
147
- const title = this.ReportName;
148
- const metadata = this.exportService.generateReportMetadata([
149
- ['Report Period ', this.fromDate + " - " + this.toDate],
150
- ['Report User & Time', this.user?this.user+" @ "+this.reportDate:''+" @ "+this.reportDate],
151
- ]);
152
- // --- search criteria ---
153
- const searchCriteria: [string, string][] = this.searchCriteria;
154
-
155
- const { headers, rows } = this.exportService.prepareExportTable(this.data, this.columnDefs, {
156
- currencyFields: ['payInAmount', 'payOutAmount',
157
- 'transactionCommission', 'beneDeductAmount', 'xMsCommissionShare', 'xmExchangeVariation',
158
- 'xMsBeneDeductShare', 'revenuePerTransaction', 'totalSettleAmount'
159
- ],
160
- rateFields: ['usdRate', 'ezRemitSellMargin', 'ezRemitSellRate', 'bankSellRate', 'usdRateAppliedPayout',]
161
- });
162
-
163
- this.exportService.exportToExcelUniversal(title, metadata, searchCriteria, headers, rows, 'Revenue_Per_Transaction.xlsx');
164
- }
165
-
166
- exportToCSV(): void {
167
- if (!this.data?.length) return;
168
-
169
- const title = this.ReportName;
170
- const metadata = this.exportService.generateReportMetadata([
171
- ['Report Period ', this.fromDate + " - " + this.toDate],
172
- ['Report User & Time', this.user?this.user+" @ "+this.reportDate:''+" @ "+this.reportDate],
173
- ]);
174
- // --- search criteria ---
175
- const searchCriteria: [string, string][] = this.searchCriteria;
176
-
177
- const { headers, rows } = this.exportService.prepareExportTable(this.data, this.columnDefs, {
178
- currencyFields: ['payInAmount', 'payOutAmount',
179
- 'transactionCommission', 'beneDeductAmount', 'xMsCommissionShare', 'xmExchangeVariation',
180
- 'xMsBeneDeductShare', 'revenuePerTransaction', 'totalSettleAmount'
181
- ],
182
- rateFields: ['usdRate', 'ezRemitSellMargin', 'ezRemitSellRate', 'bankSellRate', 'usdRateAppliedPayout',]
183
- });
184
-
185
- this.exportService.exportToCsvUniversal(title, metadata, searchCriteria, headers, rows, 'Revenue_Per_Transaction.csv');
186
- }
187
-
188
- exportToPDF(): void {
189
- if (!this.data?.length) return;
190
-
191
- const title = this.ReportName;
192
- const metadata = this.exportService.generateReportMetadata([
193
- ['Report Period ', this.fromDate + " - " + this.toDate],
194
- ['Report User & Time', this.user?this.user+" @ "+this.reportDate:''+" @ "+this.reportDate],
195
- ]);
196
- // --- search criteria ---
197
- const searchCriteria: [string, string][] = this.searchCriteria;
198
-
199
- const { headers, rows } = this.exportService.prepareExportTable(this.data, this.columnDefs, {
200
- currencyFields: ['payInAmount', 'payOutAmount',
201
- 'transactionCommission', 'beneDeductAmount', 'xMsCommissionShare', 'xmExchangeVariation',
202
- 'xMsBeneDeductShare', 'revenuePerTransaction', 'totalSettleAmount'
203
- ],
204
- rateFields: ['usdRate', 'ezRemitSellMargin', 'ezRemitSellRate', 'bankSellRate', 'usdRateAppliedPayout',]
205
- });
206
-
207
- this.exportService.exportToPdfUniversal(title, metadata, searchCriteria, headers, rows, 'Revenue_Per_Transaction.pdf')
208
- .then(() => {
209
- console.log('PDF export completed.');
210
- })
211
- .catch(err => {
212
- console.error('PDF export failed:', err);
213
- });
214
- }
215
-
216
- handleSearch(criteria: any) {
217
- this.searchCriteria = criteria.searchCriteria;
218
- this.reportDate = new Date().toISOString();
219
- this.reportDate = formatDate(this.reportDate, 'dd/MM/yyyy hh:mm a', 'en-US');
220
- const modal = criteria.modal;
221
- this.user = this.sysUserId;
222
- this.fromDate = formatDate(modal.fromDate, 'dd/MM/yyyy hh:mm a', 'en-US').slice(0,10);
223
- this.toDate = formatDate(modal.toDate, 'dd/MM/yyyy hh:mm a', 'en-US').slice(0,10);
224
- console.log(modal);
225
- // Code For Meta Data
226
- this.metaDataOne = {
227
- 'Report Period': this.fromDate + " - " + this.toDate,
228
- }
229
-
230
- this.metaDataTwo = {
231
- 'Report User & Time': this.user+" @ "+this.reportDate,
232
- }
233
-
234
- const searchData = {
235
- "StartDate": modal.fromDate,
236
- "EndDate": modal.toDate,
237
- "SendCountryCode": modal.sendCountry,
238
- "RecvCountryCode": modal.receiveCountry,
239
- "sendBusinessPartnerId": modal.sendBusinessPartner,
240
- "RecvBusinessPartenrId": modal.recvBusinessPartner,
241
- "TransactionStatus": modal.transactionStatus.join(",")
242
- }
243
- this.loadingState = ComponentLoadingStates.Loading;
244
- this.reportService.getRevenuePerTransactionReport(searchData)
245
- .subscribe({
246
- next: (data) => {
247
- this.data = data;
248
- this.filteredData = JSON.parse(JSON.stringify(this.data));
249
- console.log(this.data);
250
- this.noDataFound = data?.length === 0 ? true : false;
251
- },
252
- error: (err) => {
253
- console.log(err);
254
- this.loadingState = ComponentLoadingStates.Complete;
255
- },
256
- complete: () => {
257
- this.showReport = true;
258
- this.loadingState = ComponentLoadingStates.Complete;
259
- }
260
- })
261
- }
262
-
263
- handleFormValid(isValid: boolean): void {
264
- this.isFormValid = isValid;
265
- }
266
-
267
- }
@@ -1,95 +0,0 @@
1
- <lib-search-filter
2
- [ReportName]="ReportName"
3
- (searchClicked)="handleSearch($event)"
4
- (formValid)="handleFormValid($event)"
5
- >
6
- </lib-search-filter>
7
-
8
- <app-loader *ngIf="loadingState === ComponentLoadingState.Loading"></app-loader>
9
- <span *ngIf="loadingState === ComponentLoadingState.Error">{{ errorMessage }}</span>
10
- <div *ngIf="showTables && isFormValid">
11
- <lib-metadata
12
- [reportName]="ReportName"
13
- [showmetaDataOne]="true"
14
- [showmetaDataTwo]="true"
15
- [metaDataOne]="metaDataOne"
16
- [metaDataTwo]="metaDataTwo"
17
- (exportEvent)="handleExport($event)"
18
- (searchEvent)="filter($event)">
19
- </lib-metadata>
20
-
21
- <ag-grid-angular
22
- class="ag-theme-alpine transaction-grid"
23
- [rowData]="openingBalAndFunding"
24
- [columnDefs]="columnDefs"
25
- [pinnedBottomRowData]="[]"
26
- [headerHeight]="32"
27
- [defaultColDef]="defaultColDef"
28
- [rowHeight]="28"
29
- (gridReady)="onOpeningGridReady($event)"
30
- style="width: 80%; height: 91px; margin: 0 auto; display: block;">
31
- </ag-grid-angular>
32
-
33
- <div *ngIf="(selectedClientType === 'PayIn' || selectedClientType === 'Both')">
34
- <h3 class="details-table"><span style="margin-left: 3px;">Send Details</span></h3>
35
- <ag-grid-angular
36
- class="ag-theme-alpine transaction-grid"
37
- [rowData]="sendDetails"
38
- [columnDefs]="columnDefs"
39
- [defaultColDef]="defaultColDef"
40
- [rowHeight]="28"
41
- [headerHeight]="32"
42
- [pinnedBottomRowData]="sendPinnedBottomRow"
43
- (gridReady)="onSendGridReady($event)"
44
- style="width: 80%; height: 204px; margin: 0 auto; display: block;">
45
- </ag-grid-angular>
46
- </div>
47
-
48
- <div *ngIf="(selectedClientType === 'PayOut' || selectedClientType === 'Both')">
49
- <h3 class="details-table"><span style="margin-left: 3px;">Receive Details</span></h3>
50
- <ag-grid-angular
51
- class="ag-theme-alpine transaction-grid"
52
- [rowData]="receiveDetails"
53
- [columnDefs]="columnDefs"
54
- [defaultColDef]="defaultColDef"
55
- [rowHeight]="28"
56
- [headerHeight]="32"
57
- [pinnedBottomRowData]="receivePinnedBottomRow"
58
- (gridReady)="onReceiveGridReady($event)"
59
- style="width: 80%; height: 204px; margin: 0 auto; display: block;">
60
- </ag-grid-angular>
61
- </div>
62
-
63
-
64
- <!-- Closing balance row -->
65
- <div class="closing-balance-row">
66
- <div class="label" title="Closing Balance">
67
- Closing Balance
68
- </div>
69
-
70
- <div class="settlement"
71
- [title]="closingBalanceSettlmentFormatted">
72
- {{ closingBalanceSettlmentFormatted }}
73
- </div>
74
-
75
- <div class="value" [title]="closingBalanceInUsdFormatted">
76
- {{ closingBalanceInUsdFormatted }}
77
- </div>
78
- </div>
79
-
80
-
81
- <!-- settlement currency words row -->
82
- <div class="closing-balance-row closing-balance-words"
83
- *ngIf="closingBalanceSettlmentInWords">
84
- <div class="label"
85
- [title]="closingBalanceSettlmentCurrency + ' - ' + closingBalanceSettlmentInWords">
86
- {{ closingBalanceSettlmentCurrency }} - {{ closingBalanceSettlmentInWords }}
87
- </div>
88
- </div>
89
-
90
- <!-- existing USD words row (keep as-is) -->
91
- <div class="closing-balance-row closing-balance-words">
92
- <div class="label" [title]="closingBalanceCurrency + ' - ' + closingBalanceUSDInWords">
93
- {{ closingBalanceCurrency }} - {{ closingBalanceUSDInWords }}
94
- </div>
95
- </div>
@@ -1,54 +0,0 @@
1
- @import 'src/styles/ag-grid-report-style';
2
- @import "src/styles/common-report-style.scss";
3
-
4
- ::ng-deep .ag-theme-alpine .pinned-total-cell {
5
- font-weight: 700 !important;
6
- }
7
-
8
- .details-table {
9
- background-color: #d3d3d3;
10
- margin: 0 auto; /* center horizontally + add small top space */
11
- height: 32px;
12
- align-content: center;
13
- width: 80%;
14
- text-align: left; /* center the heading text */
15
- }
16
-
17
- .transaction-grid {
18
- display: block;
19
- margin: 0 auto; /* center the AG Grid */
20
- width: 80%;
21
- }
22
-
23
- .closing-balance-row {
24
- display: flex;
25
- border: 1px solid #ccc;
26
- border-top: none;
27
- font-size: 10px !important;
28
- font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
29
- font-weight: 700;
30
- height: 28px;
31
- align-items: center; /* vertical centering */
32
- width: 80%;
33
- margin: 0 auto;
34
- }
35
-
36
- .closing-balance-row .label {
37
- flex: 4.9; /* spans width of first TWO columns (4+1) */
38
- padding: 6px;
39
- text-align: left;
40
- border-right: 1px solid #ccc;
41
- }
42
-
43
- .closing-balance-row .settlement {
44
- flex: 2; /* same as 3rd column (amount in settlement) */
45
- padding: 6px;
46
- text-align: right;
47
- border-right: 1px solid #ccc;
48
- }
49
-
50
- .closing-balance-row .value {
51
- flex: 2; /* same as 4th column (amount in USD) */
52
- padding: 6px;
53
- text-align: right;
54
- }
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { StatementOfAccountsReportComponent } from './statement-of-accounts-report.component';
4
-
5
- describe('StatementOfAccountsReportComponent', () => {
6
- let component: StatementOfAccountsReportComponent;
7
- let fixture: ComponentFixture<StatementOfAccountsReportComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- declarations: [ StatementOfAccountsReportComponent ]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(StatementOfAccountsReportComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });