@sachin9822/reports-lib 0.0.213 → 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,46 +0,0 @@
1
- <lib-search-filter
2
- [ReportName]="ReportName"
3
- (searchClicked)="handleSearch($event)"
4
- (formValid)="handleFormValid($event)">
5
- </lib-search-filter>
6
-
7
- <app-loader class="" *ngIf="loadingState == ComponentLoadingState.Loading"></app-loader>
8
-
9
- <section *ngIf="showReport && isFormValid" class="my-2 mx-1">
10
- <ng-container *ngIf="!noDataFound">
11
- <lib-metadata [reportName]="ReportName" [showmetaDataOne]="true" [showmetaDataTwo]="true" [metaDataOne]="metaDataOne" [metaDataTwo]="metaDataTwo" (exportEvent)="handleExport($event)" (searchEvent)="filter($event)"></lib-metadata>
12
-
13
- <ngb-accordion #acc="ngbAccordion" [closeOthers]="false">
14
- <ng-container *ngFor="let item of filteredData | keyvalue; let i = index">
15
- <ngb-panel *ngIf="item.value.length > 0" [id]="'panel-' + i">
16
-
17
- <ng-template ngbPanelTitle style="height: 10%;">
18
- <label class="panel-cls">{{
19
- item.key
20
- }}</label>
21
- </ng-template>
22
-
23
- <ng-template ngbPanelContent>
24
-
25
- <div style="position: relative;">
26
- <lib-page-size-selector [totalEntries]="item?.value?.length"
27
- [defaultSize]="'15'" [gridApi]="gridApis[i]">
28
- ></lib-page-size-selector>
29
-
30
- <ag-grid-angular class="ag-theme-alpine transaction-grid" style="width: 100%;height: 407px;"
31
- [columnDefs]="columnDefs" [defaultColDef]="defaultColDef" [rowData]="item.value" [rowHeight]="20"
32
- [headerHeight]="22"[pagination]="true" [paginationPageSize]="paginationArray[i]" (gridReady)="onGridReady($event,i)"
33
- >
34
- </ag-grid-angular>
35
- </div>
36
- </ng-template>
37
-
38
- </ngb-panel>
39
- </ng-container>
40
- </ngb-accordion>
41
- </ng-container>
42
- <div class="alert alert-warning mt-3" *ngIf="noDataFound">
43
- No Data found matching your search criteria.
44
- </div>
45
-
46
- </section>
@@ -1,2 +0,0 @@
1
- @import 'src/styles/common-report-style.scss';
2
- @import 'src/styles/ag-grid-report-style.scss';
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { BranchActivityReceiveReportComponent } from './branch-activity-receive-report.component';
4
-
5
- describe('BranchActivityReceiveReportComponent', () => {
6
- let component: BranchActivityReceiveReportComponent;
7
- let fixture: ComponentFixture<BranchActivityReceiveReportComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- declarations: [ BranchActivityReceiveReportComponent ]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(BranchActivityReceiveReportComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,247 +0,0 @@
1
- import { Component, inject, OnInit } from '@angular/core';
2
- import { ColDef, GridApi, GridOptions, GridReadyEvent } from 'ag-grid-community';
3
- import { ReportService } from '../../services/report.service';
4
- import { formatDate } from '@angular/common';
5
- import { ComponentLoadingStates } from '../../models/component-loading-states';
6
- import { BranchActivityReceiveReportModel } from '../../models/branch-activity-receive-report/branch-activity-receive.model';
7
- import 'jspdf-autotable';
8
- import { GenericExportService } from '../../shared/export-generic.service';
9
-
10
- @Component({
11
- selector: 'lib-branch-activity-receive-report',
12
- templateUrl: './branch-activity-receive-report.component.html',
13
- styleUrls: ['./branch-activity-receive-report.component.scss']
14
- })
15
- export class BranchActivityReceiveReportComponent implements OnInit {
16
- data: any = [];
17
- dataMap: Record<string, BranchActivityReceiveReportModel[]> = {}
18
- filteredData: Record<string, BranchActivityReceiveReportModel[]> = {}
19
- user: string = "";
20
- ReportName = "Branch Activity Receive"
21
- reportService: ReportService = inject(ReportService);
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
- paginationArray: any[];
30
- selectedExportOption: string;
31
- private logoBase64: string | undefined;
32
- searchText: string = '';
33
- exportService: GenericExportService = inject(GenericExportService);
34
-
35
- gridApis: GridApi[] = [];
36
- searchCriteria: [string, string][];
37
-
38
- showReport: boolean = false;
39
- noDataFound: boolean = false;
40
- isFormValid: boolean = false;
41
-
42
-
43
- columnDefs: ColDef<BranchActivityReceiveReportModel>[] = [
44
- { field: 'businessDateTime', headerName: 'Business Date', flex: 1, wrapText: true, autoHeight: true, headerClass: 'ag-header-cell', minWidth: 90, width: 70, tooltipField: 'businessDateTime' },
45
- { field: 'transactionDateAndTime', headerName: 'Receive Date', minWidth: 100, flex: 2, headerClass: 'ag-header-cell', wrapText: true, autoHeight: true, tooltipField: 'transactionDateAndTime' },
46
- { field: 'transactionNumber', headerName: 'Transaction Number', minWidth: 90, flex: 1.8,wrapText: true, autoHeight: true, headerClass: 'ag-header-cell', width: 130, cellClass: 'ag-left-cols-cell compact-cell-transaction', tooltipField: 'transactionNumber' },
47
- { field: 'product', headerName: 'Product', minWidth: 80, flex: 0.5,wrapText: true, autoHeight: true, headerClass: 'ag-header-cell', width: 120, tooltipField: 'product' },
48
- { field: 'senderName', headerName: 'Sender Name', flex: 1,wrapText: true, autoHeight: true, headerClass: 'ag-header-cell', minWidth: 90,width: 130, tooltipField: 'senderName' },
49
- { field: 'sendAgentCode', headerName: 'Send ClientCode', flex: 1,wrapText: true, autoHeight: true, headerClass: 'ag-header-cell', minWidth: 90, width: 70, tooltipField: 'sendAgentCode' },
50
- { field: 'receiverName', headerName: 'Receiver Name', flex: 1,wrapText: true, autoHeight: true, headerClass: 'ag-header-cell', minWidth: 90, width: 130, tooltipField: 'receiverName' },
51
- { field: 'receiveAgentBranchCode', headerName: 'ReceiveClient BranchCode', headerClass: 'ag-header-cell', flex: 1,wrapText: true, autoHeight: true, minWidth: 100, maxWidth: 120, tooltipField: 'receiveAgentBranchCode' },
52
- { field: 'payOutCurrency', headerName: 'Receive CcyCode', flex: 1,wrapText: true, autoHeight: true, headerClass: 'ag-header-cell', minWidth: 90, maxWidth: 100, tooltipField: 'payOutCurrency' },
53
- { field: 'amountPaid', headerName: 'Amount Paid', flex: 1,wrapText: true, autoHeight: true, headerClass: 'ag-header-cell', minWidth: 90,width: 100, cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'amountPaid' },
54
- { field: 'status', headerName: 'Transaction Status', minWidth: 90, flex: 1,wrapText: true, autoHeight: true, headerClass: 'ag-header-cell', tooltipField: 'status' }
55
- ];
56
-
57
- defaultColDef = {
58
- sortable: true,
59
- filter: true,
60
- resizable: true,
61
- minwidth: 40,
62
- wrapHeaderText: true,
63
- autoHeaderHeight: true,
64
- suppressSizeToFit: false,
65
- wrapText: true
66
- };
67
-
68
- constructor() { }
69
-
70
- ngOnInit(): void {
71
-
72
- }
73
-
74
- onGridReady(params: GridReadyEvent, id: number) {
75
- params.api.sizeColumnsToFit();
76
- this.gridApis[id] = params.api;
77
- }
78
-
79
- // Currency Formatter
80
-
81
- formatAmount(params: any): string {
82
- if (params.value == null) return '0.000';
83
- const num = Number(params.value);
84
- return num.toFixed(3);
85
- }
86
-
87
- handleExport(option: string): void {
88
- this.selectedExportOption = option;
89
- if (!this.hasAnyGroups()) {
90
- alert("There is no data to export based on your current filter.");
91
- return;
92
- }
93
- // If no data, do nothing.
94
- if (!this.filteredData || Object.keys(this.filteredData).length === 0) {
95
- alert("No data to export");
96
- return;
97
- }
98
- const title = "Branch Activity Receive";
99
- const reportTimeFormatter = this.dateValueFormatter('dd/MM/yyyy hh:mm a');
100
- const metadata: [string, string][] = [
101
- ['Report Period ', this.fromDate + " - " + this.toDate],
102
- ['Report User & Time', this.user?this.user+" @ "+this.reportDate:''+" @ "+this.reportDate],
103
- ];
104
- // --- search criteria ---
105
- const searchCriteria: [string, string][] = this.searchCriteria;
106
-
107
- const columns = this.columnDefs;
108
- const data = this.dataMap;
109
- // const data = this.filteredData;
110
- const options = {
111
- currencyFields: [
112
- 'amountPaid'
113
- ],
114
- // specify all date fields expected
115
- dateFields: [],
116
-
117
- dateFieldFormats: {
118
- txnDateAndTime: 'dd/MM/yyyy hh:mm a',
119
- cancellationBranchDateTime: 'dd/MM/yyyy HH:mm',
120
- cancellationBusinessDate: 'dd/MM/yyyy'
121
- },
122
-
123
- specialDecimalFields: {
124
- rate: 8 // future field with 8 decimal places
125
- },
126
-
127
- groupByKey: true
128
- };
129
-
130
- switch (this.selectedExportOption) {
131
- case 'excel':
132
- this.exportService.exportToExcel({ title, metadata, searchCriteria, columns, data, options });
133
- break;
134
- case 'pdf':
135
- this.exportService.exportToPdf({ title, metadata, searchCriteria, columns, data, options });
136
- break;
137
- case 'csv':
138
- this.exportService.exportToCsv({ title, metadata, searchCriteria, columns, data, options });
139
- break;
140
- default:
141
- alert("Please select an export format.");
142
- }
143
- }
144
-
145
- dateValueFormatter(format: string) {
146
- return (params: any) => {
147
- if (!params.value) return '';
148
- try {
149
- return formatDate(params.value, format, 'en-US');
150
- } catch {
151
- return '';
152
- }
153
- }
154
- }
155
-
156
- getKeys(obj: Record<string, unknown>): string[] {
157
- return obj ? Object.keys(obj) : [];
158
- }
159
-
160
- hasAnyGroups(): boolean {
161
- return this.filteredData && this.getKeys(this.filteredData).length > 0;
162
- }
163
-
164
-
165
- public formatDate(params: any): string {
166
- return formatDate(new Date(params.value), 'dd/MM/yyyy', 'en-US');
167
- }
168
-
169
- filter(text: string) {
170
- this.searchText = text;
171
- if (this.searchText == null) {
172
- return;
173
- }
174
- if (this.searchText?.length === 0) {
175
- this.filteredData = structuredClone(this.dataMap);
176
- return;
177
- }
178
- this.searchText = this.searchText?.trim()?.toLowerCase();
179
- for (const [key, entries] of Object.entries(this.dataMap)) {
180
- const filteredData = entries.filter(entry => Object.values(entry)
181
- .some(val => {
182
- let a: string = val.toString().toLowerCase();
183
- return a.search(this.searchText) == -1 ? false : true;
184
- }))
185
-
186
- this.filteredData[key] = filteredData;
187
- }
188
- this.filteredData;
189
- }
190
-
191
- //event handler for filter component
192
- handleSearch(criteria: any) {
193
- this.searchCriteria = criteria.searchCriteria;
194
- this.reportDate = new Date().toISOString();
195
- this.reportDate = formatDate(this.reportDate, 'dd/MM/yyyy hh:mm a', 'en-US');
196
- const modal = criteria.modal;
197
- this.user = criteria.sysUserID;
198
- this.fromDate = formatDate(modal.fromDate, 'dd/MM/yyyy hh:mm a', 'en-US').slice(0,10);
199
- this.toDate = formatDate(modal.toDate, 'dd/MM/yyyy hh:mm a', 'en-US').slice(0,10);
200
- console.log(modal);
201
- // Code For Meta Data
202
- this.metaDataOne = {
203
- 'Report Period': this.fromDate + " - " + this.toDate,
204
- }
205
-
206
- this.metaDataTwo = {
207
- 'Report User & Time': this.user+" @ "+this.reportDate,
208
- }
209
-
210
- const searchData = {
211
- "StartDate": modal.fromDate,
212
- "EndDate": modal.toDate,
213
- "SendCountryCode": modal.sendCountry,
214
- "RecvCountryCode": modal.receiveCountry,
215
- "BusinessPartnerCode": modal.client,
216
- "TransactionStatus": modal.transactionStatus.join(","),
217
- "PayoutCurrency": modal.receiveCurrency,
218
- "TransactionType": modal.product,
219
- "BranchCode": modal.branch
220
- };
221
-
222
- this.loadingState = ComponentLoadingStates.Loading;
223
- this.reportService.getBranchActivityReceiveReport(searchData).subscribe({
224
- next: (data) => {
225
- console.log(data);
226
- this.filteredData = data;
227
- this.dataMap = JSON.parse(JSON.stringify(data));;
228
- this.noDataFound = Object.keys(data).length == 0 ? true : false;
229
- this.paginationArray = new Array(Object.keys(this.filteredData).length).fill(15);
230
- },
231
-
232
- error: (err) => {
233
- this.loadingState = ComponentLoadingStates.Complete;
234
- },
235
-
236
- complete: () => {
237
- this.loadingState = ComponentLoadingStates.Complete;
238
- this.showReport = true;
239
- }
240
- })
241
- }
242
-
243
- handleFormValid(isValid: boolean): void {
244
- this.isFormValid = isValid;
245
- }
246
-
247
- }
@@ -1,46 +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 class="" *ngIf="loadingState == ComponentLoadingState.Loading"></app-loader>
9
-
10
- <section *ngIf="showReport && isFormValid" class="my-2">
11
- <ng-container *ngIf="!noDataFound">
12
- <lib-metadata [reportName]="ReportName" [showmetaDataOne]="true" [showmetaDataTwo]="true" [metaDataOne]="leftData" [metaDataTwo]="metaDataTwo"(exportEvent)="handleExport($event)" (searchEvent)="filter($event)"></lib-metadata>
13
-
14
- <ngb-accordion #acc="ngbAccordion" [closeOthers]="false">
15
- <ng-container *ngFor="let item of filteredData | keyvalue; let i = index">
16
- <ngb-panel *ngIf="item.value.length > 0" [id]="'panel-' + i">
17
-
18
- <ng-template ngbPanelTitle style="height: 10%;">
19
- <label
20
- class="panel-cls">{{
21
- item.key
22
- }}</label>
23
- </ng-template>
24
-
25
- <ng-template ngbPanelContent>
26
- <div style="position: relative;">
27
- <lib-page-size-selector [totalEntries]="item?.value?.length"
28
- [defaultSize]="'15'" [gridApi]="gridApis[i]">
29
- ></lib-page-size-selector>
30
-
31
- <ag-grid-angular class="ag-theme-alpine transaction-grid" style="width: 100%;height: 380px;"
32
- [columnDefs]="columnDefs" [defaultColDef]="defaultColDef" [rowData]="item.value" [rowHeight]="20"
33
- [headerHeight]="22"[pagination]="true" [paginationPageSize]="paginationArray[i]" (gridReady)="onGridReady($event,i)"
34
- >
35
- </ag-grid-angular>
36
- </div>
37
- </ng-template>
38
-
39
- </ngb-panel>
40
- </ng-container>
41
- </ngb-accordion>
42
- </ng-container>
43
- <div class="alert alert-warning mt-3" *ngIf="noDataFound">
44
- No Data found matching your search criteria.
45
- </div>
46
- </section>
@@ -1,3 +0,0 @@
1
- @import 'src/styles/common-report-style.scss';
2
- @import 'src/styles/ag-grid-report-style.scss';
3
-
@@ -1,23 +0,0 @@
1
- import { ComponentFixture, TestBed } from '@angular/core/testing';
2
-
3
- import { BranchActivitySendReportComponent } from './branch-activity-send-report.component';
4
-
5
- describe('BranchActivitySendReportComponent', () => {
6
- let component: BranchActivitySendReportComponent;
7
- let fixture: ComponentFixture<BranchActivitySendReportComponent>;
8
-
9
- beforeEach(async () => {
10
- await TestBed.configureTestingModule({
11
- declarations: [ BranchActivitySendReportComponent ]
12
- })
13
- .compileComponents();
14
-
15
- fixture = TestBed.createComponent(BranchActivitySendReportComponent);
16
- component = fixture.componentInstance;
17
- fixture.detectChanges();
18
- });
19
-
20
- it('should create', () => {
21
- expect(component).toBeTruthy();
22
- });
23
- });
@@ -1,276 +0,0 @@
1
- import { Component, NgZone, OnInit, inject } from '@angular/core';
2
- import { ReportService } from '../../services/report.service';
3
- import { BranchActivityReport } from '../../models/branch-activity-report/branch-activity-send-report';
4
- import { ColDef, GridApi, GridOptions, GridReadyEvent, RowGroupingDisplayType } from 'ag-grid-community';
5
- import { themeAlpine } from '@ag-grid-community/theming';
6
- import 'jspdf-autotable';
7
- import { formatDate, DatePipe } from '@angular/common';
8
- import { ComponentLoadingStates } from '../../models/component-loading-states';
9
- import { GenericExportService } from '../../shared/export-generic.service';
10
-
11
- declare module 'jspdf' {
12
- interface jsPDF {
13
- autoTable: (options: any) => jsPDF;
14
- }
15
- }
16
-
17
- @Component({
18
- selector: 'lib-branch-activity-send-report',
19
- templateUrl: './branch-activity-send-report.component.html',
20
- styleUrls: ['./branch-activity-send-report.component.scss']
21
- })
22
- export class BranchActivitySendReportComponent implements OnInit {
23
- dataMap: Record<string, BranchActivityReport[]> = {}
24
- filteredData: Record<string, BranchActivityReport[]> = {}
25
- proxyData: Record<string, BranchActivityReport[]> = {}
26
- showReport: boolean;
27
- paginationArray: any[];
28
- selectedExportOption = 'excel';
29
- gridApis: GridApi[] = [];
30
- gridColumnApi;
31
- user: string = "";
32
- reportDate: string;
33
- fromDate: string;
34
- toDate: string;
35
- searchText: string;
36
- buffer: any;
37
- sysUserId: string;
38
- private logoBase64: string | undefined;
39
- ComponentLoadingState = ComponentLoadingStates;
40
- loadingState: ComponentLoadingStates = ComponentLoadingStates.Loading;
41
- ReportName: string = "Branch Activity Send";
42
- leftData: Record<string, string>;
43
- metaDataTwo: Record<string, string>;
44
- exportService: GenericExportService = inject(GenericExportService);
45
- searchCriteria: [string,string][] = [];
46
-
47
- // flags
48
- showMessage: boolean = false;
49
- noDataFound: boolean = false;
50
- isFormValid: boolean = false;
51
-
52
- columnDefs: ColDef<BranchActivityReport>[] = [
53
- { field: 'businessDateTime', headerName: 'Business Date', flex: 1,wrapText: true, autoHeight: true, headerClass: 'ag-left-aligned-header', minWidth: 70, width: 70, tooltipField: 'businessDateTime' },
54
- { field: 'transactionDateTime', headerName: 'Transaction Date', minWidth:100,flex: 2, wrapText: true, autoHeight: true, tooltipField: 'transactionDateTime' },
55
- { field: 'transactionNumber', headerName: 'Transaction Number', flex: 1.8,wrapText: true, autoHeight: true, minWidth:90, width: 130, cellClass: 'ag-left-cols-cell compact-cell-transaction', tooltipField: 'transactionNumber' },
56
- { field: 'product', headerName: 'Product', flex: 0.5,wrapText: true, autoHeight: true, minWidth:80, width: 120, tooltipField: 'product' },
57
- { field: 'sendAgentBranchCode', headerName: 'SendClient BranchCode', flex: 1,wrapText: true, autoHeight: true, minWidth:90, width: 120, tooltipField: 'sendAgentBranchCode' },
58
- { field: 'receiveAgentCode', headerName: 'Receive ClientCode', flex: 1,wrapText: true, autoHeight: true, minWidth: 90, width: 70, tooltipField: 'receiveAgentCode' },
59
- { field: 'payoutCCcode', headerName: 'ReceiveCcy Code', flex: 1,wrapText: true, autoHeight: true,minWidth:90, width: 110, tooltipField: 'payoutCCcode' },
60
- { field: 'payoutAmount', headerName: 'Receive Amount', flex: 1,wrapText: true, autoHeight: true,minWidth:90, maxWidth: 120, cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'payoutAmount' },
61
- { field: 'payinCCcode', headerName: 'SendCcy Code', flex: 1,wrapText: true, autoHeight: true, minWidth:90,maxWidth: 90, tooltipField: 'payinCCcode' },
62
- { field: 'payinAmount', headerName: 'Send Amount', flex: 1,wrapText: true, autoHeight: true, minWidth:80, maxWidth: 120, cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'payinAmount' },
63
- { field: 'transactionCommissionAmount', headerName: 'Service Fee', flex: 1, wrapText: true, autoHeight: true, minWidth:90, maxWidth: 100, cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'transactionCommissionAmount' },
64
- { field: 'tax', headerName: 'Tax', flex: 1,wrapText: true, autoHeight: true, minWidth: 80, maxWidth: 100, cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'tax' },
65
- { field: 'totalPayinAmount', headerName: 'Total Send Amount',minWidth:100, flex: 1,wrapText: true, autoHeight: true, cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'totalPayinAmount' },
66
- { field: 'status', headerName: 'Transaction Status',minWidth:100, flex: 1,wrapText: true, autoHeight: true, tooltipField: 'status' }
67
- ];
68
-
69
-
70
- defaultColDef = {
71
- sortable: true,
72
- filter: true,
73
- resizable: true,
74
- minwidth: 40,
75
- wrapHeaderText: true,
76
- autoHeaderHeight: true,
77
- suppressSizeToFit: false,
78
- wrapText: true
79
- };
80
- rowData: BranchActivityReport[] = [];
81
-
82
- constructor(private reportService: ReportService, private ngZone: NgZone) { }
83
-
84
- reportTheme = themeAlpine.withParams({
85
- headerFontSize: '10px',
86
- fontFamily: ['Arial', 'sans-serif'],
87
- fontSize: '9px'
88
- });
89
-
90
- ngOnInit(): void {
91
- this.loadingState = ComponentLoadingStates.Complete;
92
- // Check if User is falcon user or fossilUser
93
- if (sessionStorage.getItem('fossilusername')) {
94
- this.sysUserId = sessionStorage.getItem('fossilusername')
95
- }
96
- else {
97
- this.sysUserId = sessionStorage.getItem('ezremitusername');
98
- }
99
- this.sysUserId = this.sysUserId.replace(/^["'](.*)["']$/, '$1');
100
- this.user = this.sysUserId;
101
- console.log("System User Id : " + this.sysUserId);
102
- }
103
-
104
- filter(text: string) {
105
- this.searchText = text;
106
- if (this.searchText == null) {
107
- return;
108
- }
109
- if (this.searchText?.length === 0) {
110
- this.filteredData = structuredClone(this.dataMap);
111
- return;
112
- }
113
- this.searchText = this.searchText?.trim()?.toLowerCase();
114
- for (const [key, entries] of Object.entries(this.proxyData)) {
115
- const filteredData = entries.filter(entry => Object.values(entry)
116
- .some(val => {
117
- let a: string = val.toString().toLowerCase();
118
- return a.search(this.searchText) == -1 ? false : true;
119
- }))
120
-
121
- this.filteredData[key] = filteredData;
122
- }
123
- this.filteredData;
124
- }
125
-
126
- onGridReady(params: GridReadyEvent, id: number) {
127
- params.api.sizeColumnsToFit();
128
- this.gridColumnApi = params.columnApi;
129
- this.gridApis[id] = params.api;
130
- }
131
-
132
- handleExport(option: string): void {
133
- this.selectedExportOption = option;
134
- if (!this.hasAnyGroups()) {
135
- alert("There is no data to export based on your current filter.");
136
- return;
137
- }
138
- // If no data, do nothing.
139
- if (!this.filteredData || Object.keys(this.filteredData).length === 0) {
140
- alert("No data to export");
141
- return;
142
- }
143
- const title = "Branch Activity Send";
144
- const reportTimeFormatter = this.dateValueFormatter('dd/MM/yyyy hh:mm a');
145
- const metadata: [string, string][] = [
146
- ['Report Period ', this.fromDate + " - " + this.toDate],
147
- ['Report User & Time', this.user?this.user+" @ "+this.reportDate:''+" @ "+this.reportDate],
148
- ];
149
- // --- search criteria ---
150
- const searchCriteria: [string, string][] = this.searchCriteria;
151
- const columns = this.columnDefs;
152
- const data = this.dataMap;
153
- // const data = this.filteredData;
154
- const options = {
155
- currencyFields: [
156
- 'payoutAmount', 'payinAmount', 'transactionCommissionAmount', 'tax', 'totalPayinAmount'
157
- ],
158
- // specify all date fields expected
159
- dateFields: [],
160
-
161
- dateFieldFormats: {
162
- txnDateAndTime: 'dd/MM/yyyy hh:mm a',
163
- cancellationBranchDateTime: 'dd/MM/yyyy HH:mm',
164
- cancellationBusinessDate: 'dd/MM/yyyy'
165
- },
166
-
167
- specialDecimalFields: {
168
- rate: 8 // future field with 8 decimal places
169
- },
170
-
171
- groupByKey: true
172
- };
173
-
174
- switch (this.selectedExportOption) {
175
- case 'excel':
176
- this.exportService.exportToExcel({ title, metadata, searchCriteria, columns, data, options });
177
- break;
178
- case 'pdf':
179
- this.exportService.exportToPdf({ title, metadata, searchCriteria, columns, data, options });
180
- break;
181
- case 'csv':
182
- this.exportService.exportToCsv({ title, metadata, searchCriteria, columns, data, options });
183
- break;
184
- default:
185
- alert("Please select an export format.");
186
- }
187
- }
188
-
189
- dateValueFormatter(format: string) {
190
- return (params: any) => {
191
- if (!params.value) return '';
192
- try {
193
- return formatDate(params.value, format, 'en-US');
194
- } catch {
195
- return '';
196
- }
197
- }
198
- }
199
-
200
- getKeys(obj: Record<string, unknown>): string[] {
201
- return obj ? Object.keys(obj) : [];
202
- }
203
-
204
- hasAnyGroups(): boolean {
205
- return this.filteredData && this.getKeys(this.filteredData).length > 0;
206
- }
207
-
208
- formatAmount(params: any): string {
209
- const value = params?.value;
210
- if (value !== null && value !== undefined && value !== '') {
211
- const num = Number(value);
212
- return (Math.trunc(num * 1000) / 1000).toFixed(3);
213
- }
214
- return '';
215
- }
216
-
217
- handleSearch(criteria: any): void {
218
- this.searchCriteria = criteria.searchCriteria;
219
- this.reportDate = new Date().toISOString();
220
- this.reportDate = formatDate(this.reportDate, 'dd/MM/yyyy hh:mm a', 'en-US');
221
- const modal = criteria.modal;
222
- this.user = criteria.sysUserID;
223
- this.fromDate = formatDate(modal.fromDate, 'dd/MM/yyyy hh:mm a', 'en-US').slice(0,10);
224
- this.toDate = formatDate(modal.toDate, 'dd/MM/yyyy hh:mm a', 'en-US').slice(0,10);
225
- console.log(modal);
226
- // Code For Meta Data
227
- this.leftData = {
228
- 'Report Period': this.fromDate + " - " + this.toDate,
229
- }
230
-
231
- this.metaDataTwo = {
232
- 'Report User & Time': this.user+" @ "+this.reportDate,
233
- }
234
-
235
- const searchData = {
236
- "StartDate": modal.fromDate,
237
- "EndDate": modal.toDate,
238
- "SendCountryCode": modal.sendCountry,
239
- "RecvCountryCode": modal.receiveCountry,
240
- "BusinessPartnerCode": modal.client,
241
- "TransactionStatus": modal.transactionStatus.join(","),
242
- "PayoutCurrency": modal.receiveCurrency,
243
- "TransactionType": modal.product,
244
- "BranchCode": modal.branch
245
- };
246
- this.showMessage = true;
247
- this.loadingState = ComponentLoadingStates.Loading;
248
- this.reportService.getBranchActivityReport(searchData).subscribe({
249
- next: (data) => {
250
- console.log(data);
251
- this.dataMap = JSON.parse(JSON.stringify(data));
252
- this.filteredData = data;
253
- this.noDataFound = Object.keys(this.filteredData).length == 0 ? true : false;
254
- this.proxyData = structuredClone(data);
255
- this.paginationArray = new Array(Object.keys(this.filteredData).length).fill(15);
256
- this.showMessage = Object.keys(this.filteredData).length == 0 ? true : false;
257
- this.showReport = true;
258
- },
259
-
260
- error: (err) => {
261
- this.loadingState = ComponentLoadingStates.Complete;
262
- },
263
-
264
- complete: () => {
265
- this.loadingState = ComponentLoadingStates.Complete;
266
- this.showReport = true;
267
- }
268
- })
269
- }
270
-
271
- handleFormValid(isValid: boolean): void {
272
- this.isFormValid = isValid;
273
- }
274
-
275
- }
276
-