@sachin9822/reports-lib 0.0.213 → 0.0.215

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 +614 -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 +263 -0
  5. package/esm2020/lib/components/branch-activity-send-summary-report/branch-activity-send-summary-report.component.mjs +718 -0
  6. package/esm2020/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.mjs +275 -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 +282 -0
  12. package/esm2020/lib/components/transaction-monitoring-report/transaction-monitoring-report.component.mjs +332 -0
  13. package/esm2020/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.mjs +631 -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 +2147 -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 +8649 -0
  49. package/fesm2015/sachin9822-reports-lib.mjs.map +1 -0
  50. package/fesm2020/sachin9822-reports-lib.mjs +8510 -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 +108 -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 +69 -0
  65. package/lib/components/trial-balance-accounts-report/trial-balance-accounts-report.component.d.ts +71 -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 +38 -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,601 +0,0 @@
1
- <h6 class="Breadcrumb">
2
- <a class="BreadCrumbLink" [routerLink]="['/reports']">
3
- <h1>Reports</h1>
4
- </a>
5
- <a href="BreadCrumbLink"></a>
6
- <span class="BreadCrumbArrow"></span>
7
- <a class="BreadCrumbLink">
8
- <h2>{{ ReportName }}</h2>
9
- </a>
10
- </h6>
11
-
12
- <app-loader *ngIf="loadingState === ComponentLoadingState.Loading"></app-loader>
13
- <section>
14
- <form [formGroup]="searchForm" (ngSubmit)="onSearch()">
15
- <div class="row">
16
- <div class="col-custom-10-5">
17
- <div class="filter-grid">
18
-
19
- <!-- Dynamically render filters in order -->
20
- <ng-container *ngFor="let field of visibleFields">
21
- <ng-container [ngSwitch]="field">
22
-
23
- <!-- Client -->
24
- <div class="form-field" *ngSwitchCase="'client'">
25
- <div class="row align-items-center">
26
- <div class="col-2">
27
- <label class="form-label label-data">Client<span class="text-danger">*</span></label>
28
- </div>
29
- <div class="col-10">
30
- <ng-select [items]="clients1" bindLabel="businessPartnerName" bindValue="businessPartnerCode"
31
- placeholder="Select Client" [clearable]="false" formControlName="client" required
32
- [ngClass]="{'invalid-select': searchForm.get('client')?.invalid && (searchForm.get('client')?.touched || formValidationError)}"
33
- (change)="onClientChange()" (open)="onOpen()" (close)="onClose()" [searchable]="isOpen">
34
-
35
- <ng-template ng-option-tmp let-item="item">
36
- <span [title]="item.businessPartnerName">{{ item.businessPartnerName }}</span>
37
- </ng-template>
38
-
39
- </ng-select>
40
- </div>
41
- </div>
42
- </div>
43
-
44
- <!-- Branch -->
45
- <div class="form-field" *ngSwitchCase="'branch'">
46
- <div class="row align-items-center">
47
- <div class="col-2">
48
- <label class="form-label label-data">Branch<span class="text-danger">*</span></label>
49
- </div>
50
- <div class="col-10">
51
- <ng-select [items]="branches" bindLabel="businessPartnerBranch" bindValue="branchCode"
52
- placeholder="Select Branch" [clearable]="false" formControlName="branch" required
53
- [ngClass]="{'invalid-select': searchForm.get('branch')?.invalid && (searchForm.get('branch')?.touched || formValidationError)}"
54
- (change)="onBranchChange()" (open)="onOpen()" (close)="onClose()" [searchable]="isOpen">
55
- <ng-template ng-option-tmp let-item="item">
56
- <span [title]="item.businessPartnerBranch">{{ item.businessPartnerBranch }}</span>
57
- </ng-template>
58
-
59
- </ng-select>
60
- </div>
61
- </div>
62
- </div>
63
-
64
- <!-- From Date -->
65
- <div class="form-field" *ngSwitchCase="'fromDate'">
66
- <div class="row align-items-center">
67
- <div class="col-2">
68
- <label class="form-label label-data">From Date<span class="text-danger">*</span></label>
69
- </div>
70
- <div class="col-10">
71
- <div class="input-group date-group">
72
- <input class="form-control dpicker" placeholder="dd/mm/yyyy" ngbDatepicker
73
- #fromDateInput="ngbDatepicker" formControlName="fromDate" autocomplete="off"
74
- [ngClass]="{'invalid-date':searchForm.get('fromDate')?.invalid && (searchForm.get('fromDate')?.touched || formValidationError)}" />
75
- <button class="input-group-button cal" (click)="fromDateInput.toggle()" type="button">
76
- <i class="fa fa-calendar" aria-hidden="true"></i>
77
- </button>
78
- </div>
79
- </div>
80
- </div>
81
- </div>
82
-
83
- <!-- To Date -->
84
- <div class="form-field" *ngSwitchCase="'toDate'">
85
- <div class="row align-items-center">
86
- <div class="col-2">
87
- <label class="form-label label-data">To Date<span class="text-danger">*</span></label>
88
- </div>
89
- <div class="col-10">
90
- <div class="input-group date-group">
91
- <input class="form-control dpicker" placeholder="dd/mm/yyyy" ngbDatepicker
92
- #toDateInput="ngbDatepicker" formControlName="toDate" [minDate]="disabledDate"
93
- autocomplete="off"
94
- [ngClass]="{'invalid-date':searchForm.get('toDate')?.invalid && (searchForm.get('toDate')?.touched || formValidationError)}" />
95
- <button class="input-group-button cal" (click)="toDateInput.toggle()" type="button">
96
- <i class="fa fa-calendar" aria-hidden="true"></i>
97
- </button>
98
- </div>
99
- </div>
100
- </div>
101
- </div>
102
-
103
- <!-- Product -->
104
- <div class="form-field" *ngSwitchCase="'product'">
105
- <div class="row align-items-center">
106
- <div class="col-2">
107
- <label class="form-label label-data">Product</label>
108
- </div>
109
- <div class="col-10">
110
- <ng-select [items]="products" bindLabel="productName" bindValue="productCode"
111
- placeholder="Select Product" [clearable]="false" formControlName="product" (open)="onOpen()"
112
- (close)="onClose()" [searchable]="isOpen">
113
- </ng-select>
114
- </div>
115
- </div>
116
- </div>
117
-
118
- <!-- User -->
119
- <div class="form-field" *ngSwitchCase="'userId'">
120
- <div class="row align-items-center">
121
- <div class="col-2">
122
- <label class="form-label label-data">User<span class="text-danger">*</span></label>
123
- </div>
124
- <div class="col-10">
125
- <ng-select [items]="users" bindLabel="userName" bindValue="userId" placeholder="Select User"
126
- [clearable]="false" formControlName="userId" required (open)="onOpen()" (close)="onClose()"
127
- [searchable]="isOpen"
128
- [ngClass]="{'invalid-select': searchForm.get('userId')?.invalid && (searchForm.get('userId')?.touched || formValidationError)}">
129
- </ng-select>
130
- </div>
131
- </div>
132
- </div>
133
-
134
- <!-- Currency -->
135
- <div class="form-field" *ngSwitchCase="'currency'">
136
- <div class="row align-items-center">
137
- <div class="col-2">
138
- <label class="form-label label-data">Currency</label>
139
- </div>
140
- <div class="col-10">
141
- <ng-select [items]="currencies" bindValue="currencyCode" placeholder="Select Currency"
142
- [clearable]="false" formControlName="currency" [searchable]="true" [searchFn]="currencySearch"
143
- (open)="onOpen()" (close)="onClose()" [searchable]="isOpen">
144
-
145
- <!-- Template for dropdown options -->
146
- <ng-template ng-option-tmp let-item="item">
147
- <div
148
- [title]="item.currencyCode === 'All' ? 'All' : (item.currencyCode + ' - ' + item.currency)">
149
- {{ item.currencyCode === 'All' ? 'All' : (item.currencyCode + ' - ' + item.currency) }}
150
- </div>
151
- </ng-template>
152
-
153
- <!-- Template for selected value -->
154
- <ng-template ng-label-tmp let-item="item">
155
- <div
156
- [title]="item.currencyCode === 'All' ? 'All' : (item.currencyCode + ' - ' + item.currency)">
157
- {{ item.currencyCode === 'All' ? 'All' : (item.currencyCode + ' - ' + item.currency) }}
158
- </div>
159
- </ng-template>
160
-
161
- </ng-select>
162
- </div>
163
- </div>
164
- </div>
165
-
166
- <!--Send Currency -->
167
- <div class="form-field" *ngSwitchCase="'sendCurrency'">
168
- <div class="row align-items-center">
169
- <div class="col-2">
170
- <label class="form-label label-data">Send Currency</label>
171
- </div>
172
- <div class="col-10">
173
- <ng-select [items]="currencies" bindValue="currencyCode" placeholder="Select Currency"
174
- [clearable]="false" formControlName="currency" [searchable]="true" [searchFn]="currencySearch"
175
- (open)="onOpen()" (close)="onClose()" [searchable]="isOpen">
176
-
177
- <!-- Template for dropdown options -->
178
- <ng-template ng-option-tmp let-item="item">
179
- <div
180
- [title]="item.currencyCode === 'All' ? 'All' : (item.currencyCode + ' - ' + item.currency)">
181
- {{ item.currencyCode === 'All' ? 'All' : (item.currencyCode + ' - ' + item.currency) }}
182
- </div>
183
- </ng-template>
184
-
185
- <!-- Template for selected value -->
186
- <ng-template ng-label-tmp let-item="item">
187
- <div
188
- [title]="item.currencyCode === 'All' ? 'All' : (item.currencyCode + ' - ' + item.currency)">
189
- {{ item.currencyCode === 'All' ? 'All' : (item.currencyCode + ' - ' + item.currency) }}
190
- </div>
191
- </ng-template>
192
-
193
- </ng-select>
194
- </div>
195
- </div>
196
- </div>
197
-
198
- <!-- Transaction Status (Multi-select) -->
199
- <div class="form-field" *ngSwitchCase="'transactionStatus'">
200
- <div class="row align-items-center">
201
- <div class="col-2">
202
- <label class="form-label label-data">Txn. Status<span class="text-danger">*</span></label>
203
- </div>
204
- <div class="col-10">
205
- <ng-select class="transaction-status-select" [items]="transactionStatuses"
206
- bindLabel="transactionStatus" bindValue="transactionStatus" [multiple]="true"
207
- placeholder="Select Transaction Status" formControlName="transactionStatus"
208
- [closeOnSelect]="false" [clearable]="false" [searchable]="false" required
209
- [ngClass]="{'invalid-select': searchForm.get('transactionStatus')?.invalid && (searchForm.get('transactionStatus')?.touched || formValidationError)}">
210
- <ng-template ng-option-tmp let-item="item" let-item$="item$">
211
- <input type="checkbox" [checked]="item$.selected" /> {{ item.transactionStatus }}
212
- </ng-template>
213
- </ng-select>
214
- </div>
215
- </div>
216
- </div>
217
-
218
- <!-- Transaction No -->
219
- <div class="form-field" *ngSwitchCase="'transactionNo'">
220
- <div class="row align-items-center">
221
- <div class="col-2">
222
- <label class="form-label label-data">Txn. Number</label>
223
- </div>
224
- <div class="col-10">
225
- <input class="form-control dpicker" formControlName="transactionNo"
226
- placeholder="Enter transaction number" />
227
- </div>
228
- </div>
229
- </div>
230
-
231
- <!-- Value Date -->
232
- <div class="form-field" *ngSwitchCase="'valueDate'">
233
- <div class="row align-items-center">
234
- <div class="col-3">
235
- <label class="form-label label-data">Value Date<span class="text-danger">*</span></label>
236
- </div>
237
- <div class="col-9">
238
- <div class="input-group">
239
- <input class="form-control dpicker" placeholder="dd/mm/yyyy" ngbDatepicker
240
- #toDateInput="ngbDatepicker" formControlName="toDate" autocomplete="off"
241
- [ngClass]="{'invalid-date':searchForm.get('date')?.invalid && (searchForm.get('date')?.touched || formValidationError)}" />
242
- <button class="btn btn-outline-secondary" type="button" (click)="toDateInput.toggle()">
243
- <i class="fa fa-calendar"></i>
244
- </button>
245
- </div>
246
- </div>
247
- </div>
248
- </div>
249
-
250
- <!-- Send Country -->
251
- <div class="form-field" *ngSwitchCase="'sendCountry'">
252
- <div class="row align-items-center">
253
- <div class="col-2">
254
- <label class="form-label label-data">Send Country</label>
255
- </div>
256
- <div class="col-10">
257
- <ng-select [items]="countries" bindLabel="country" bindValue="countryCode"
258
- placeholder="Select Product" [clearable]="false" formControlName="sendCountry">
259
-
260
- <ng-template ng-option-tmp let-item="item">
261
- <span [title]="item.country">{{ item.country }}</span>
262
- </ng-template>
263
-
264
- </ng-select>
265
- </div>
266
- </div>
267
- </div>
268
-
269
- <!-- Receive Country -->
270
- <div class="form-field" *ngSwitchCase="'receiveCountry'">
271
- <div class="row align-items-center">
272
- <div class="col-2">
273
- <label class="form-label label-data">Receive Country</label>
274
- </div>
275
- <div class="col-10">
276
- <ng-select [items]="countries" bindLabel="country" bindValue="countryCode"
277
- placeholder="Select Product" [clearable]="false" formControlName="receiveCountry">
278
-
279
- <ng-template ng-option-tmp let-item="item">
280
- <span [title]="item.country">{{ item.country }}</span>
281
- </ng-template>
282
-
283
- </ng-select>
284
- </div>
285
- </div>
286
- </div>
287
-
288
- <!--Transaction Product -->
289
- <div class="form-field" *ngSwitchCase="'transactionProduct'">
290
- <div class="row align-items-center">
291
- <div class="col-2">
292
- <label class="form-label label-data">Product</label>
293
- </div>
294
- <div class="col-10">
295
- <ng-select [items]="transactionProducts" bindLabel="name" bindValue="productCode"
296
- placeholder="Select Product" [clearable]="false" formControlName="product">
297
- </ng-select>
298
- </div>
299
- </div>
300
- </div>
301
-
302
- <!-- Date Type -->
303
- <div class="form-field" *ngSwitchCase="'dateType'">
304
- <div class="row align-items-center">
305
- <div class="col-2">
306
- <label class="form-label label-data">Date Type</label>
307
- </div>
308
- <div class="col-10">
309
- <ng-select placeholder="- Please select -" formControlName="dateType" [clearable]="false" required>
310
- <ng-option [value]="1">
311
- Value Date
312
- </ng-option>
313
- <ng-option [value]="2">
314
- Posting Date
315
- </ng-option>
316
- </ng-select>
317
- </div>
318
- </div>
319
- </div>
320
-
321
- <!-- Date -->
322
- <div class="form-field" *ngSwitchCase="'date'">
323
- <div class="row align-items-center">
324
- <div class="col-2">
325
- <label class="form-label label-data">Date</label>
326
- </div>
327
- <div class="col-10">
328
- <div class="input-group date-group">
329
- <input class="form-control dpicker" placeholder="dd/mm/yyyy" ngbDatepicker
330
- #dateInput="ngbDatepicker" formControlName="date" autocomplete="off"
331
- [ngClass]="{'invalid-date': searchForm.get('date')?.invalid && (searchForm.get('date')?.touched || formValidationError)}" />
332
- <button class="input-group-button cal" type="button" (click)="dateInput.toggle()">
333
- <i class="fa fa-calendar" aria-hidden="true"></i>
334
- </button>
335
- </div>
336
- </div>
337
- </div>
338
- </div>
339
-
340
- <!-- receiveCurrency -->
341
- <div class="form-field" *ngSwitchCase="'receiveCurrency'">
342
- <div class="row align-items-center">
343
- <div class="col-2">
344
- <label class="form-label label-data">Receive Currency</label>
345
- </div>
346
- <div class="col-10">
347
- <ng-select [items]="currencies" bindValue="currencyCode" placeholder="Select Receive Currency"
348
- [clearable]="false" formControlName="receiveCurrency" required (change)="onBranchChange()"
349
- [searchable]="true" [searchFn]="currencySearch" (open)="onOpen()" (close)="onClose()"
350
- [searchable]="isOpen">
351
-
352
- <!-- Dropdown options -->
353
- <ng-template ng-option-tmp let-item="item">
354
- <div
355
- [title]="item.currencyCode === 'All' ? 'All' : (item.currencyCode + ' - ' + item.currency)">
356
- {{ item.currencyCode === 'All' ? 'All' : (item.currencyCode + ' - ' + item.currency) }}
357
- </div>
358
- </ng-template>
359
-
360
- <!-- Selected value -->
361
- <ng-template ng-label-tmp let-item="item">
362
- <div
363
- [title]="item.currencyCode === 'All' ? 'All' : (item.currencyCode + ' - ' + item.currency)">
364
- {{ item.currencyCode === 'All' ? 'All' : (item.currencyCode + ' - ' + item.currency) }}
365
- </div>
366
- </ng-template>
367
-
368
- </ng-select>
369
- </div>
370
- </div>
371
- </div>
372
-
373
- <!-- Send BusinessPartner -->
374
- <div class="form-field" *ngSwitchCase="'sendBusinessPartner'">
375
- <div class="row align-items-center">
376
- <div class="col-2">
377
- <label class="form-label label-data">Send Client<span class="text-danger">*</span></label>
378
- </div>
379
- <div class="col-10">
380
- <ng-select [items]="sendBusinessPartnerAgents" bindLabel="name" bindValue="id"
381
- placeholder="Select Send Partner" [clearable]="false" formControlName="sendBusinessPartner"
382
- [ngClass]="{'invalid-select': searchForm.get('sendBusinessPartner')?.invalid && (searchForm.get('sendBusinessPartner')?.touched || formValidationError)}">
383
-
384
- <ng-template ng-option-tmp let-item="item">
385
- <span [title]="item.name">{{ item.name }}</span>
386
- </ng-template>
387
-
388
- </ng-select>
389
- </div>
390
- </div>
391
- </div>
392
-
393
- <!-- Recv BusinessPartner -->
394
- <div class="form-field" *ngSwitchCase="'recvBusinessPartner'">
395
- <div class="row align-items-center">
396
- <div class="col-2">
397
- <label class="form-label label-data">Recv Client<span class="text-danger">*</span></label>
398
- </div>
399
- <div class="col-10">
400
- <ng-select [items]="recvBusinessPartnerAgents" bindLabel="name" bindValue="id"
401
- placeholder="Select Recv Partner" [clearable]="false" formControlName="recvBusinessPartner"
402
- [ngClass]="{'invalid-select': searchForm.get('recvBusinessPartner')?.invalid && (searchForm.get('recvBusinessPartner')?.touched || formValidationError)}">
403
-
404
- <ng-template ng-option-tmp let-item="item">
405
- <span [title]="item.name">{{ item.name }}</span>
406
- </ng-template>
407
-
408
- </ng-select>
409
- </div>
410
- </div>
411
- </div>
412
-
413
- <!-- Transaction Status (Single-select) -->
414
- <div class="form-field" *ngSwitchCase="'transactionStatusSingleSelect'">
415
- <div class="row align-items-center">
416
- <div class="col-2">
417
- <label class="form-label label-data">Txn. Status<span class="text-danger">*</span></label>
418
- </div>
419
- <div class="col-10">
420
- <ng-select [items]="transactionStatuses" bindLabel="transactionStatus" bindValue="transactionStatus"
421
- placeholder="Select Status" [clearable]="false" formControlName="transactionStatus" required
422
- [ngClass]="{'invalid-select': searchForm.get('transactionStatus')?.invalid && (searchForm.get('transactionStatus')?.touched || formValidationError)}">
423
- </ng-select>
424
- </div>
425
- </div>
426
- </div>
427
-
428
- <!-- For Trial Balance - Accounts Report -->
429
-
430
- <!-- Business Unit -->
431
- <div class="form-field" *ngSwitchCase="'businessUnit'">
432
- <div class="row align-items-center">
433
- <div class="col-2">
434
- <label class="form-label label-data">Business Unit</label>
435
- </div>
436
- <div class="col-10">
437
- <ng-select [items]="businessUnits" bindLabel="companyFullName" bindValue="companyCode"
438
- placeholder="Select Business Unit" [clearable]="false" formControlName="businessUnit"
439
- [ngClass]="{'invalid-select': searchForm.get('businessUnit')?.invalid && (searchForm.get('businessUnit')?.touched || formValidationError)}">
440
- </ng-select>
441
- </div>
442
- </div>
443
- </div>
444
-
445
- <!-- Year -->
446
- <div class="form-field" *ngSwitchCase="'financialYear'">
447
- <div class="row align-items-center">
448
- <div class="col-2">
449
- <label class="form-label label-data">Financial Year</label>
450
- </div>
451
- <div class="col-10">
452
- <ng-select [items]="financialYears" bindLabel="financialYear" bindValue="financialYear"
453
- placeholder="Select Year" [clearable]="false" formControlName="financialYear"
454
- [ngClass]="{'invalid-select': searchForm.get('financialYear')?.invalid && (searchForm.get('financialYear')?.touched || formValidationError)}"
455
- (change)="onSelectFinancialYear()">
456
- </ng-select>
457
- </div>
458
- </div>
459
- </div>
460
-
461
- <!-- From Month -->
462
- <div class="form-field" *ngSwitchCase="'fromMonth'">
463
- <div class="row align-items-center">
464
- <div class="col-2">
465
- <label class="form-label label-data">From Month</label>
466
- </div>
467
- <div class="col-10">
468
- <ng-select [items]="fromMonths" bindLabel="period" bindValue="pOrder"
469
- placeholder="Select From Month" [clearable]="false" formControlName="fromMonth"
470
- [ngClass]="{'invalid-select': searchForm.get('fromMonth')?.invalid && (searchForm.get('fromMonth')?.touched|| formValidationError)}"
471
- (change)="onSelectFromMonth()">
472
- </ng-select>
473
- </div>
474
- </div>
475
- </div>
476
-
477
- <!-- To Month -->
478
- <div class="form-field" *ngSwitchCase="'toMonth'">
479
- <div class="row align-items-center">
480
- <div class="col-2">
481
- <label class="form-label label-data">To Month</label>
482
- </div>
483
- <div class="col-10">
484
- <ng-select [items]="toMonths" bindLabel="pMonthName" bindValue="pMonth"
485
- placeholder="Select To Month" [clearable]="false" formControlName="toMonth"
486
- [ngClass]="{'invalid-select': searchForm.get('toMonth')?.invalid && (searchForm.get('toMonth')?.touched|| formValidationError)}"
487
- (change)="onSelectToMonth()">
488
- </ng-select>
489
- </div>
490
- </div>
491
- </div>
492
-
493
- <!-- From Day -->
494
- <div class="form-field" *ngSwitchCase="'fromDay'">
495
- <div class="row align-items-center">
496
- <div class="col-2">
497
- <label class="form-label label-data">From Day <span class="text-danger">*</span></label>
498
- </div>
499
- <div class="col-10">
500
- <ng-select [items]="fromDays" bindLabel="individualDay" bindValue="individualDate"
501
- placeholder="Select From Day" [clearable]="false" formControlName="fromDay"
502
- [ngClass]="{'invalid-select': searchForm.get('fromDay')?.invalid && (searchForm.get('fromDay')?.touched|| formValidationError)}"
503
- (change)="onSelectFromDay()">
504
- </ng-select>
505
- </div>
506
- </div>
507
- </div>
508
-
509
- <!-- To Day -->
510
- <div class="form-field" *ngSwitchCase="'toDay'">
511
- <div class="row align-items-center">
512
- <div class="col-2">
513
- <label class="form-label label-data">To Day<span style="margin-left: 1px;"
514
- class="text-danger">*</span></label>
515
- </div>
516
- <div class="col-10">
517
- <ng-select [items]="toDays" bindLabel="pDate" bindValue="individualDate" placeholder="Select To Day"
518
- [clearable]="false" formControlName="toDay"
519
- [ngClass]="{'invalid-select': searchForm.get('toDay')?.invalid && (searchForm.get('toDay')?.touched|| formValidationError)}">
520
- </ng-select>
521
- </div>
522
- </div>
523
- </div>
524
-
525
- <!-- Date Type -->
526
- <div class="form-field" *ngSwitchCase="'dateTypeForTrialBalanceAccounts'">
527
- <div class="row align-items-center">
528
- <div class="col-2">
529
- <label class="form-label label-data">Date Type</label>
530
- </div>
531
- <div class="col-10">
532
- <ng-select [items]="dateTypes" bindLabel="dateTypeLabel" bindValue="dateTypeCode"
533
- placeholder="Select Date Type" formControlName="dateType" [clearable]="false" required
534
- [ngClass]="{'invalid-select': searchForm.get('dateType')?.invalid && (searchForm.get('dateType')?.touched|| formValidationError)}">
535
- </ng-select>
536
- </div>
537
- </div>
538
- </div>
539
-
540
-
541
- <!-- Account Status -->
542
- <div class="form-field" *ngSwitchCase="'accountStatus'">
543
- <div class="row align-items-center">
544
- <div class="col-2">
545
- <label class="form-label label-data">Account Status</label>
546
- </div>
547
- <div class="col-10">
548
- <ng-select class="transaction-status-select" [items]="accountStatuses" bindLabel="statusName"
549
- bindValue="statusCode" [multiple]="true" placeholder="Select Account Status"
550
- formControlName="accountStatus" [closeOnSelect]="false" [clearable]="false" [searchable]="false"
551
- required
552
- [ngClass]="{'invalid-select': searchForm.get('accountStatus')?.invalid && (searchForm.get('accountStatus')?.touched|| formValidationError)}">
553
- <ng-template ng-option-tmp let-item="item" let-item$="item$">
554
- <input type="checkbox" [checked]="item$.selected" /> {{ item.statusName }}
555
- </ng-template>
556
- </ng-select>
557
- </div>
558
- </div>
559
- </div>
560
- <!--Summary Report-->
561
- <div class="form-field" *ngSwitchCase="'summaryReport'">
562
- <div class="row align-items-center">
563
- <div class="col-2">
564
- <label class="form-label label-data">Summary Report</label>
565
- </div>
566
- <div class="col-10">
567
- <ng-select [items]="summaryReportTypes" bindLabel="label" bindValue="value"
568
- [clearable]="false" formControlName="summaryReport">
569
-
570
- <ng-template ng-option-tmp let-item="item">
571
- <span [title]="item.label">{{ item.label }}</span>
572
- </ng-template>
573
-
574
- </ng-select>
575
- </div>
576
- </div>
577
- </div>
578
- </ng-container>
579
- </ng-container>
580
-
581
- </div>
582
-
583
- </div>
584
- <div class="col-custom-1-5">
585
- <!-- View Report Button (Always at Top-Right) -->
586
- <div class="form-field view-report-btn">
587
- <button type="submit" class="btn btn-report">View</button>
588
- </div>
589
- </div>
590
- </div>
591
- </form>
592
- </section>
593
- <hr>
594
- <!-- Error Messages -->
595
- <div class="alert alert-danger mt-3" *ngIf="formValidationError && hasSearched">
596
- Please fill all mandatory fields
597
- </div>
598
-
599
- <div class="alert alert-danger mt-3" *ngIf="errorMessage && loadingState === ComponentLoadingState.Error">
600
- {{ errorMessage }}
601
- </div>