@sachin9822/reports-lib 0.0.225 → 0.0.226

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.
@@ -2268,9 +2268,16 @@ class SearchFilterComponent {
2268
2268
  this.searchForm.get('fromDate')?.valueChanges.subscribe(fromDateStr => {
2269
2269
  const toDateControl = this.searchForm.get('toDate');
2270
2270
  const toDateStr = toDateControl?.value;
2271
- if (!fromDateStr || !toDateStr)
2271
+ if (!fromDateStr)
2272
2272
  return;
2273
2273
  const fromDate = new Date(fromDateStr);
2274
+ // If ToDate is empty → set default
2275
+ if (!toDateControl?.value) {
2276
+ const maxToDate = new Date(fromDate);
2277
+ maxToDate.setDate(fromDate.getDate() + 30);
2278
+ toDateControl.patchValue(maxToDate.toISOString().split("T")[0]);
2279
+ return;
2280
+ }
2274
2281
  const toDate = new Date(toDateStr);
2275
2282
  const maxToDate = new Date(fromDate);
2276
2283
  maxToDate?.setDate(fromDate.getDate() + 30);
@@ -2286,9 +2293,16 @@ class SearchFilterComponent {
2286
2293
  this.searchForm.get('toDate')?.valueChanges.subscribe(toDateStr => {
2287
2294
  const fromDateControl = this.searchForm.get('fromDate');
2288
2295
  const fromDateStr = fromDateControl?.value;
2289
- if (!toDateStr || !fromDateStr)
2296
+ if (!toDateStr)
2290
2297
  return;
2291
2298
  const toDate = new Date(toDateStr);
2299
+ // If FromDate is empty → set default
2300
+ if (!fromDateControl?.value) {
2301
+ const minFromDate = new Date(toDate);
2302
+ minFromDate.setDate(toDate.getDate() - 30);
2303
+ fromDateControl.patchValue(minFromDate.toISOString().split("T")[0]);
2304
+ return;
2305
+ }
2292
2306
  const fromDate = new Date(fromDateStr);
2293
2307
  this.disabledDate = this.toNgbDateStruct(fromDate);
2294
2308
  const minFromDate = new Date(toDate);
@@ -2985,7 +2999,7 @@ class SearchFilterComponent {
2985
2999
  const formValue = this.searchForm.value;
2986
3000
  // formValue.fromDate = this.toIsoFormat(formValue.fromDate);
2987
3001
  // formValue.toDate = this.toIsoFormat(formValue.toDate);
2988
- if (this.initialFilters?.isRealtime && (formValue.fromDate == '' && formValue.toDate == '')) {
3002
+ if (this.initialFilters?.isRealtime && (!formValue.fromDate && !formValue.toDate)) {
2989
3003
  formValue.fromDate = null;
2990
3004
  formValue.toDate = null;
2991
3005
  }
@@ -3010,7 +3024,6 @@ class SearchFilterComponent {
3010
3024
  return {
3011
3025
  modal: formValue,
3012
3026
  sysUserID: this.currentUser,
3013
- isRealtime: this.initialFilters?.isRealtime,
3014
3027
  searchCriteria: searchCriteria
3015
3028
  };
3016
3029
  }
@@ -3590,7 +3603,7 @@ class AccGlDetailsEnquiryReportComponent {
3590
3603
  };
3591
3604
  this.rowData = formattedEntries;
3592
3605
  this.companyName = data.companyName;
3593
- this.reportUser = data.reportUser.toLowerCase();
3606
+ this.reportUser = data.reportUser?.toLowerCase();
3594
3607
  this.reportTime = formatDate(new Date(), 'dd/MM/yyyy hh:mm a', 'en-US');
3595
3608
  this.currentReportValueOrPostDate = formatDate(data.date, 'dd/MM/yyyy', 'en-US');
3596
3609
  const DateType = this.dateType === 'VD' ? 'Value Date' : 'Posting Date';
@@ -3762,10 +3775,12 @@ class TransactionEnquiryComponent {
3762
3775
  { headerName: 'Send Client Branch', field: 'sendAgtBranch', flex: 1, minWidth: 120, tooltipField: 'sendAgtBranch' },
3763
3776
  { headerName: 'Receive Client', field: 'recvAgent', flex: 1, minWidth: 120, tooltipField: 'recvAgent' },
3764
3777
  { headerName: 'Receive Client Branch', field: 'rcvAgtBranch', flex: 1, minWidth: 120, tooltipField: 'rcvAgtBranch' },
3765
- { headerName: 'Sender Name', field: 'sendName', flex: 1, minWidth: 120, tooltipField: 'sendName' },
3778
+ { headerName: 'Is Sender Corporate', field: 'isSenderCorporate', flex: 1, minWidth: 80 },
3779
+ { headerName: 'Sender Name', field: 'sendName', flex: 1, minWidth: 120, tooltipField: 'sendName', wrapText: true, autoHeight: true },
3766
3780
  { headerName: 'Sender ID Type', field: 'sendIdType', flex: 1, minWidth: 90, tooltipField: 'sendIdType' },
3767
3781
  { headerName: 'Sender ID Number', field: 'sendIdNumber', flex: 1, minWidth: 85, tooltipField: 'sendIdNumber' },
3768
- { headerName: 'Benf. Name', field: 'benName', flex: 1, minWidth: 100, tooltipField: 'benName' },
3782
+ { headerName: 'Is Beneficiary Corporate', field: 'isBeneficiaryCorporate', flex: 1, minWidth: 80 },
3783
+ { headerName: 'Benf. Name', field: 'benName', flex: 1, minWidth: 100, tooltipField: 'benName', wrapText: true, autoHeight: true },
3769
3784
  { headerName: 'Receive Currency', field: 'payOutCurrency', flex: 1, minWidth: 80, tooltipField: 'payOutCurrency' },
3770
3785
  { headerName: 'Receive Amount', field: 'payOutAmount', flex: 1, minWidth: 100, cellClass: 'ag-right-aligned-cell ', tooltipField: 'payOutAmount' },
3771
3786
  { headerName: 'Send Currency', field: 'payInCurrency', flex: 1, minWidth: 70, tooltipField: 'payInCurrency' },
@@ -4016,8 +4031,10 @@ class BranchActivitySendReportComponent {
4016
4031
  { field: 'product', headerName: 'Product', flex: 0.5, wrapText: true, autoHeight: true, minWidth: 80, width: 120, tooltipField: 'product' },
4017
4032
  { field: 'sendAgentBranchCode', headerName: 'SendClient BranchCode', flex: 1, wrapText: true, autoHeight: true, minWidth: 90, width: 120, tooltipField: 'sendAgentBranchCode' },
4018
4033
  { field: 'receiveAgentCode', headerName: 'Receive ClientCode', flex: 1, wrapText: true, autoHeight: true, minWidth: 90, width: 70, tooltipField: 'receiveAgentCode' },
4019
- { headerName: 'Sender Name', field: 'senderName', flex: 1, minWidth: 120, tooltipField: 'senderName' },
4020
- { headerName: 'Beneficiary Name', field: 'beneficiaryName', flex: 1, minWidth: 100, tooltipField: 'beneficiaryName' },
4034
+ { headerName: 'Is Sender Corporate', field: 'isSenderCorporate', flex: 1, minWidth: 80 },
4035
+ { headerName: 'Sender Name', field: 'senderName', flex: 1, minWidth: 120, tooltipField: 'senderName', wrapText: true, autoHeight: true },
4036
+ { headerName: 'Is Beneficiary Corporate', field: 'isBeneficiaryCorporate', flex: 1, minWidth: 80 },
4037
+ { headerName: 'Beneficiary Name', field: 'beneficiaryName', flex: 1, minWidth: 100, tooltipField: 'beneficiaryName', wrapText: true, autoHeight: true },
4021
4038
  { field: 'payoutCCcode', headerName: 'ReceiveCcy Code', flex: 1, wrapText: true, autoHeight: true, minWidth: 90, width: 110, tooltipField: 'payoutCCcode' },
4022
4039
  { field: 'payoutAmount', headerName: 'Receive Amount', flex: 1, wrapText: true, autoHeight: true, minWidth: 90, maxWidth: 120, cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'payoutAmount' },
4023
4040
  { field: 'payinCCcode', headerName: 'SendCcy Code', flex: 1, wrapText: true, autoHeight: true, minWidth: 90, maxWidth: 90, tooltipField: 'payinCCcode' },
@@ -4035,7 +4052,8 @@ class BranchActivitySendReportComponent {
4035
4052
  wrapHeaderText: true,
4036
4053
  autoHeaderHeight: true,
4037
4054
  suppressSizeToFit: false,
4038
- wrapText: true
4055
+ wrapText: true,
4056
+ autoHeight: true
4039
4057
  };
4040
4058
  this.rowData = [];
4041
4059
  this.reportTheme = themeAlpine.withParams({
@@ -4466,6 +4484,10 @@ class CancellationTransactionReportComponent {
4466
4484
  { headerName: 'Send Client Branch Code', field: 'sendAgentBranchCode', flex: 1, minWidth: 90, tooltipField: 'sendAgentBranchCode' },
4467
4485
  { headerName: 'Send Principal Client Code (If Applicable)', field: 'sendPrincipalAgentCode', flex: 1, minWidth: 90, tooltipField: 'sendPrincipalAgentCode' },
4468
4486
  { headerName: 'Receive Client Code', field: 'recvAGTcode', flex: 1, minWidth: 80, tooltipField: 'recvAGTcode' },
4487
+ { headerName: 'Is Sender Corporate', field: 'isSenderCorporate', flex: 1, minWidth: 80 },
4488
+ { headerName: 'Sender Name', field: 'senderName', flex: 1, minWidth: 120, tooltipField: 'senderName', wrapText: true, autoHeight: true },
4489
+ { headerName: 'Is Beneficiary Corporate', field: 'isBeneficiaryCorporate', flex: 1, minWidth: 80 },
4490
+ { headerName: 'Beneficiary Name', field: 'beneficiaryName', flex: 1, minWidth: 100, tooltipField: 'beneficiaryName', wrapText: true, autoHeight: true },
4469
4491
  { headerName: 'Receive CcyCode', field: 'payoutCCcode', flex: 1, minWidth: 65, tooltipField: 'payoutCCcode' },
4470
4492
  { headerName: 'Receive Amount', field: 'payOutAmount', flex: 1, minWidth: 82, cellClass: 'ag-right-aligned-cell', tooltipField: 'payOutAmount' },
4471
4493
  { headerName: 'Send CcyCode', field: 'payinCCcode', flex: 1, minWidth: 69, tooltipField: 'payinCCcode' },
@@ -4707,6 +4729,8 @@ class RevenuePerTransactionReportComponent {
4707
4729
  { field: 'receiveCountry', headerName: 'Receive Country', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true, tooltipField: 'receiveCountry' },
4708
4730
  { field: 'receiveAgentName', headerName: 'ReceiveClient Name', flex: 1, headerClass: 'ag-header-cell', minWidth: 150, wrapText: true, autoHeight: true, tooltipField: 'receiveAgentName' },
4709
4731
  { field: 'receiveAgentCode', headerName: 'ReceiveClient Code', flex: 1, headerClass: 'ag-header-cell', minWidth: 90, wrapText: true, autoHeight: true, tooltipField: 'receiveAgentCode' },
4732
+ { headerName: 'Is Sender Corporate', field: 'isSenderCorporate', flex: 1, minWidth: 80 },
4733
+ { headerName: 'Is Beneficiary Corporate', field: 'isBeneficiaryCorporate', flex: 1, minWidth: 80 },
4710
4734
  { field: 'payInCurrency', headerName: 'Send CcyCode', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true, tooltipField: 'payInCurrency' },
4711
4735
  { 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' },
4712
4736
  { 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' },
@@ -5699,28 +5723,30 @@ class AccountingReportComponent {
5699
5723
  autoHeight: true
5700
5724
  };
5701
5725
  this.columnDefs = [
5702
- { headerName: 'BusinessDate', field: 'businessDate', tooltipField: 'businessDate' },
5726
+ { headerName: 'BusinessDate', field: 'businessDate', minWidth: 95, tooltipField: 'businessDate' },
5703
5727
  { headerName: 'TxnDate&Time', field: 'transactionDateAndTime', tooltipField: 'transactionDateAndTime', minWidth: 110, },
5704
- { headerName: 'Transaction Number', field: 'transactionNumber', tooltipField: 'transactionNumber' },
5705
- { headerName: 'SendClient', field: 'sendClient', tooltipField: 'sendClient' },
5706
- { headerName: 'Principle SendClient (If Applicable)', field: 'principleSendClient', tooltipField: 'principleSendClient', width: 90, minWidth: 80, maxWidth: 110 },
5707
- { headerName: 'ReceiveClient', field: 'receiveClient', tooltipField: 'receiveClient' },
5708
- { headerName: 'Principle ReceiveClient (If Applicable)', field: 'principleReceiveClient', tooltipField: 'principleReceiveClient', width: 100, minWidth: 90, maxWidth: 120 },
5709
- { headerName: 'ReceiveCcy', field: 'receiveCurrency', tooltipField: 'receiveCurrency' },
5710
- { headerName: 'AmountPaid', field: 'amountPaid', tooltipField: 'amountPaid', cellClass: 'ag-right-aligned-cell' },
5711
- { headerName: 'SendCcy', field: 'sendCurrency', tooltipField: 'sendCurrency', },
5712
- { headerName: 'ServiceFee', field: 'serviceFee', tooltipField: 'serviceFee', cellClass: 'ag-right-aligned-cell' },
5713
- { headerName: 'Tax', field: 'tax', tooltipField: 'tax', cellClass: 'ag-right-aligned-cell' },
5714
- { headerName: 'PrincipleSend Amount', field: 'principleSendAmount', tooltipField: 'principleSendAmount', cellClass: 'ag-right-aligned-cell' },
5715
- { headerName: 'Transaction Status', field: 'transactionStatus', tooltipField: 'transactionStatus' },
5716
- { headerName: 'SettlementCcy', field: 'settlementCurrency', tooltipField: 'settlementCurrency', cellClass: 'ag-right-aligned-cell' },
5717
- { headerName: 'ClientSettl (in SCcy)', field: 'clientSettlementInSCcy', tooltipField: 'clientSettlementInSCcy', cellClass: 'ag-right-aligned-cell' },
5718
- { headerName: 'ClientSettl (in USD)', field: 'clientSettlementInUSD', tooltipField: 'clientSettlementInUSD', cellClass: 'ag-right-aligned-cell' },
5719
- { headerName: 'ShareType', field: 'shareType', tooltipField: 'shareType' },
5720
- { headerName: 'ShareValue', field: 'shareValue', tooltipField: 'shareValue', cellClass: 'ag-right-aligned-cell' },
5721
- { headerName: 'Send/Receive FeeCcy', field: 'sendReceiveFeeCcy', tooltipField: 'sendReceiveFeeCcy' },
5722
- { headerName: 'ShareAmt (in USD)', field: 'shareAmountInUSD', tooltipField: 'shareAmountInUSD', cellClass: 'ag-right-aligned-cell' },
5723
- { headerName: 'Settlement Rate', field: 'settlementRate', tooltipField: 'settlementRate', cellClass: 'ag-right-aligned-cell' },
5728
+ { headerName: 'Transaction Number', field: 'transactionNumber', minWidth: 100, tooltipField: 'transactionNumber' },
5729
+ { headerName: 'SendClient', field: 'sendClient', minWidth: 80, tooltipField: 'sendClient' },
5730
+ { headerName: 'Principle SendClient (If Applicable)', field: 'principleSendClient', tooltipField: 'principleSendClient', minWidth: 90, },
5731
+ { headerName: 'ReceiveClient', field: 'receiveClient', minWidth: 90, tooltipField: 'receiveClient' },
5732
+ { headerName: 'Principle ReceiveClient (If Applicable)', field: 'principleReceiveClient', tooltipField: 'principleReceiveClient', minWidth: 90 },
5733
+ { headerName: 'Is Sender Corporate', field: 'isSenderCorporate', minWidth: 80 },
5734
+ { headerName: 'Is Beneficiary Corporate', field: 'isBeneficiaryCorporate', minWidth: 80 },
5735
+ { headerName: 'ReceiveCcy', field: 'receiveCurrency', minWidth: 80, tooltipField: 'receiveCurrency' },
5736
+ { headerName: 'AmountPaid', field: 'amountPaid', minWidth: 85, tooltipField: 'amountPaid', cellClass: 'ag-right-aligned-cell' },
5737
+ { headerName: 'SendCcy', field: 'sendCurrency', minWidth: 80, tooltipField: 'sendCurrency', },
5738
+ { headerName: 'ServiceFee', field: 'serviceFee', minWidth: 80, tooltipField: 'serviceFee', cellClass: 'ag-right-aligned-cell' },
5739
+ { headerName: 'Tax', field: 'tax', minWidth: 70, tooltipField: 'tax', cellClass: 'ag-right-aligned-cell' },
5740
+ { headerName: 'PrincipleSend Amount', field: 'principleSendAmount', minWidth: 90, tooltipField: 'principleSendAmount', cellClass: 'ag-right-aligned-cell' },
5741
+ { headerName: 'Transaction Status', field: 'transactionStatus', minWidth: 90, tooltipField: 'transactionStatus' },
5742
+ { headerName: 'SettlementCcy', field: 'settlementCurrency', minWidth: 90, tooltipField: 'settlementCurrency', cellClass: 'ag-right-aligned-cell' },
5743
+ { headerName: 'ClientSettl (in SCcy)', field: 'clientSettlementInSCcy', minWidth: 80, tooltipField: 'clientSettlementInSCcy', cellClass: 'ag-right-aligned-cell' },
5744
+ { headerName: 'ClientSettl (in USD)', field: 'clientSettlementInUSD', minWidth: 80, tooltipField: 'clientSettlementInUSD', cellClass: 'ag-right-aligned-cell' },
5745
+ { headerName: 'ShareType', field: 'shareType', minWidth: 85, tooltipField: 'shareType' },
5746
+ { headerName: 'ShareValue', field: 'shareValue', minWidth: 85, tooltipField: 'shareValue', cellClass: 'ag-right-aligned-cell' },
5747
+ { headerName: 'Send/Receive FeeCcy', field: 'sendReceiveFeeCcy', minWidth: 85, tooltipField: 'sendReceiveFeeCcy' },
5748
+ { headerName: 'ShareAmt (in USD)', field: 'shareAmountInUSD', minWidth: 80, tooltipField: 'shareAmountInUSD', cellClass: 'ag-right-aligned-cell' },
5749
+ { headerName: 'Settlement Rate', field: 'settlementRate', minWidth: 85, tooltipField: 'settlementRate', cellClass: 'ag-right-aligned-cell' },
5724
5750
  ];
5725
5751
  this.gridApis = [];
5726
5752
  this.gridColumnApis = [];
@@ -5840,11 +5866,15 @@ class AccountingReportComponent {
5840
5866
  const columnApi = this.gridColumnApis[id];
5841
5867
  if (!columnApi)
5842
5868
  return;
5869
+ const columns = columnApi.getColumns();
5870
+ // prevent undefined error
5871
+ if (!columns?.length)
5872
+ return;
5843
5873
  const allColumnIds = [];
5844
5874
  columnApi.getColumns().forEach((column) => {
5845
5875
  allColumnIds.push(column.getId());
5846
5876
  });
5847
- columnApi.autoSizeColumns(allColumnIds, skipHeader);
5877
+ columnApi.autoSizeColumns(allColumnIds, true);
5848
5878
  }
5849
5879
  formatNumber(params) {
5850
5880
  if (params.value == null)
@@ -7927,6 +7957,7 @@ class TransactionMonitoringReportComponent {
7927
7957
  this.showMessage = false;
7928
7958
  this.noDataFound = false;
7929
7959
  this.isFormValid = false;
7960
+ this.clearSearch = false;
7930
7961
  this.columnDefs = [
7931
7962
  { field: 'businessDateTime', headerName: 'Business Date', flex: 1, headerClass: 'ag-left-aligned-header', minWidth: 70, wrapText: true, autoHeight: true, tooltipField: 'businessDateTime' },
7932
7963
  { field: 'transactionDateTime', headerName: 'Transaction Date', flex: 2, headerClass: 'ag-left-aligned-header', minWidth: 100, wrapText: true, autoHeight: true, tooltipField: 'transactionDateTime' },
@@ -8007,7 +8038,9 @@ class TransactionMonitoringReportComponent {
8007
8038
  receiveCountry: params['receiveCountry'],
8008
8039
  toDate: params['toDate'],
8009
8040
  fromDate: params['fromDate'],
8010
- isRealtime: params['isRealtime'] === 'true' || params['isRealtime'] === true
8041
+ isRealtime: params['isRealtime'] === 'true' || params['isRealtime'] === true,
8042
+ loggedInTime: params['loggedInTime'],
8043
+ count: Number(params['count'])
8011
8044
  };
8012
8045
  }
8013
8046
  else {
@@ -8126,13 +8159,27 @@ class TransactionMonitoringReportComponent {
8126
8159
  return '';
8127
8160
  }
8128
8161
  handleSearch(criteria) {
8162
+ if (this.initialFilters != null) {
8163
+ const realtimeStatuses = ['Paid', 'PaidCancelled', 'Cancelled', 'Void', 'Rejected'];
8164
+ const isTerminatingStatus = realtimeStatuses.includes(this.initialFilters?.transactionStatus);
8165
+ const isZeroCount = this.initialFilters?.count === 0;
8166
+ // block api call
8167
+ if (isTerminatingStatus && isZeroCount && (!criteria.modal.fromDate && !criteria.modal.toDate)) {
8168
+ this.noDataFound = true;
8169
+ this.showReport = true;
8170
+ this.loadingState = ComponentLoadingStates.Complete;
8171
+ this.clearSearch = false;
8172
+ this.showMessage = true;
8173
+ return;
8174
+ }
8175
+ }
8129
8176
  this.searchCriteria = criteria.searchCriteria;
8130
8177
  this.reportDate = new Date().toISOString();
8131
8178
  this.reportDate = formatDate(this.reportDate, 'dd/MM/yyyy hh:mm a', 'en-US');
8132
8179
  const modal = criteria.modal;
8133
8180
  this.user = criteria.sysUserID;
8134
8181
  // this.fromDate = formatDate(modal.fromDate, 'dd/MM/yyyy hh:mm a', 'en-US').slice(0, 10);
8135
- //this.toDate = formatDate(modal.toDate, 'dd/MM/yyyy hh:mm a', 'en-US').slice(0, 10);
8182
+ // this.toDate = formatDate(modal.toDate, 'dd/MM/yyyy hh:mm a', 'en-US').slice(0, 10);
8136
8183
  this.fromDate = modal.fromDate
8137
8184
  ? formatDate(modal.fromDate, 'dd/MM/yyyy hh:mm a', 'en-US').slice(0, 10)
8138
8185
  : null;
@@ -8142,7 +8189,7 @@ class TransactionMonitoringReportComponent {
8142
8189
  console.log(modal);
8143
8190
  // Code For Meta Data
8144
8191
  this.leftData = {
8145
- // 'Report Period': this.fromDate + " - " + this.toDate,
8192
+ // 'Report Period': this.fromDate + " - " + this.toDate,
8146
8193
  'Report Period': this.fromDate && this.toDate
8147
8194
  ? `${this.fromDate} - ${this.toDate}`
8148
8195
  : ''
@@ -8160,9 +8207,11 @@ class TransactionMonitoringReportComponent {
8160
8207
  "PayoutCurrency": modal.receiveCurrency,
8161
8208
  "TransactionType": modal.product,
8162
8209
  "BranchCode": modal.branch,
8163
- "IsrealTime": criteria.isRealtime
8210
+ "IsrealTime": this.initialFilters?.isRealtime ?? false,
8211
+ "LoggedInTime": this.initialFilters?.loggedInTime ?? null
8164
8212
  };
8165
8213
  this.showMessage = true;
8214
+ this.clearSearch = true;
8166
8215
  this.loadingState = ComponentLoadingStates.Loading;
8167
8216
  this.reportService.getTransactionMonitoringReport(searchData).subscribe({
8168
8217
  next: (data) => {
@@ -8177,10 +8226,12 @@ class TransactionMonitoringReportComponent {
8177
8226
  },
8178
8227
  error: (err) => {
8179
8228
  this.loadingState = ComponentLoadingStates.Complete;
8229
+ this.clearSearch = false;
8180
8230
  },
8181
8231
  complete: () => {
8182
8232
  this.loadingState = ComponentLoadingStates.Complete;
8183
8233
  this.showReport = true;
8234
+ this.clearSearch = false;
8184
8235
  }
8185
8236
  });
8186
8237
  }