@sachin9822/reports-lib 0.0.223 → 0.0.225

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.
@@ -2288,16 +2288,9 @@ class SearchFilterComponent {
2288
2288
  (_a = this.searchForm.get('fromDate')) === null || _a === void 0 ? void 0 : _a.valueChanges.subscribe(fromDateStr => {
2289
2289
  const toDateControl = this.searchForm.get('toDate');
2290
2290
  const toDateStr = toDateControl === null || toDateControl === void 0 ? void 0 : toDateControl.value;
2291
- if (!fromDateStr)
2291
+ if (!fromDateStr || !toDateStr)
2292
2292
  return;
2293
2293
  const fromDate = new Date(fromDateStr);
2294
- // If ToDate is empty → set default
2295
- if (!(toDateControl === null || toDateControl === void 0 ? void 0 : toDateControl.value)) {
2296
- const maxToDate = new Date(fromDate);
2297
- maxToDate.setDate(fromDate.getDate() + 30);
2298
- toDateControl.patchValue(maxToDate.toISOString().split("T")[0]);
2299
- return;
2300
- }
2301
2294
  const toDate = new Date(toDateStr);
2302
2295
  const maxToDate = new Date(fromDate);
2303
2296
  maxToDate === null || maxToDate === void 0 ? void 0 : maxToDate.setDate(fromDate.getDate() + 30);
@@ -2313,16 +2306,9 @@ class SearchFilterComponent {
2313
2306
  (_b = this.searchForm.get('toDate')) === null || _b === void 0 ? void 0 : _b.valueChanges.subscribe(toDateStr => {
2314
2307
  const fromDateControl = this.searchForm.get('fromDate');
2315
2308
  const fromDateStr = fromDateControl === null || fromDateControl === void 0 ? void 0 : fromDateControl.value;
2316
- if (!toDateStr)
2309
+ if (!toDateStr || !fromDateStr)
2317
2310
  return;
2318
2311
  const toDate = new Date(toDateStr);
2319
- // If FromDate is empty → set default
2320
- if (!(fromDateControl === null || fromDateControl === void 0 ? void 0 : fromDateControl.value)) {
2321
- const minFromDate = new Date(toDate);
2322
- minFromDate.setDate(toDate.getDate() - 30);
2323
- fromDateControl.patchValue(minFromDate.toISOString().split("T")[0]);
2324
- return;
2325
- }
2326
2312
  const fromDate = new Date(fromDateStr);
2327
2313
  this.disabledDate = this.toNgbDateStruct(fromDate);
2328
2314
  const minFromDate = new Date(toDate);
@@ -2826,7 +2812,7 @@ class SearchFilterComponent {
2826
2812
  }
2827
2813
  }
2828
2814
  buildSearchCriteria() {
2829
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16;
2815
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17;
2830
2816
  const formValue = this.searchForm.value;
2831
2817
  const fromDate = new Date(formValue.fromDate);
2832
2818
  const toDate = new Date(formValue.toDate);
@@ -3022,7 +3008,7 @@ class SearchFilterComponent {
3022
3008
  const formValue = this.searchForm.value;
3023
3009
  // formValue.fromDate = this.toIsoFormat(formValue.fromDate);
3024
3010
  // formValue.toDate = this.toIsoFormat(formValue.toDate);
3025
- if (((_8 = this.initialFilters) === null || _8 === void 0 ? void 0 : _8.isRealtime) && (!formValue.fromDate && !formValue.toDate)) {
3011
+ if (((_8 = this.initialFilters) === null || _8 === void 0 ? void 0 : _8.isRealtime) && (formValue.fromDate == '' && formValue.toDate == '')) {
3026
3012
  formValue.fromDate = null;
3027
3013
  formValue.toDate = null;
3028
3014
  }
@@ -3047,6 +3033,7 @@ class SearchFilterComponent {
3047
3033
  return {
3048
3034
  modal: formValue,
3049
3035
  sysUserID: this.currentUser,
3036
+ isRealtime: (_17 = this.initialFilters) === null || _17 === void 0 ? void 0 : _17.isRealtime,
3050
3037
  searchCriteria: searchCriteria
3051
3038
  };
3052
3039
  }
@@ -3624,14 +3611,13 @@ class AccGlDetailsEnquiryReportComponent {
3624
3611
  this.searchText = '';
3625
3612
  this.dateType = this.dateTypeFilter === 1 ? 'VD' : 'PD';
3626
3613
  this.reportService.getAccGLDetailsReport(this.date.split('T')[0], this.dateType).subscribe((data) => {
3627
- var _a;
3628
3614
  if (data) {
3629
3615
  // Pre-format entries before storing
3630
3616
  const formattedEntries = data.journalVoucherEntries.map((entry) => (Object.assign(Object.assign({}, entry), { postingDate: this.formatDateValue(entry.postingDate), valueDate: this.formatDateValue(entry.valueDate), rate: this.formatNumberValue(entry.rate, 'rate'), forexDebit: this.formatNumberValue(entry.forexDebit, 'forexDebit'), localDebit: this.formatNumberValue(entry.localDebit, 'localDebit'), forexCredit: this.formatNumberValue(entry.forexCredit, 'forexCredit'), localCredit: this.formatNumberValue(entry.localCredit, 'localCredit') })));
3631
3617
  this.accGlDetailsEnquiryReportModel = Object.assign(Object.assign({}, data), { journalVoucherEntries: formattedEntries });
3632
3618
  this.rowData = formattedEntries;
3633
3619
  this.companyName = data.companyName;
3634
- this.reportUser = (_a = data.reportUser) === null || _a === void 0 ? void 0 : _a.toLowerCase();
3620
+ this.reportUser = data.reportUser.toLowerCase();
3635
3621
  this.reportTime = formatDate(new Date(), 'dd/MM/yyyy hh:mm a', 'en-US');
3636
3622
  this.currentReportValueOrPostDate = formatDate(data.date, 'dd/MM/yyyy', 'en-US');
3637
3623
  const DateType = this.dateType === 'VD' ? 'Value Date' : 'Posting Date';
@@ -3803,11 +3789,9 @@ class TransactionEnquiryComponent {
3803
3789
  { headerName: 'Send Client Branch', field: 'sendAgtBranch', flex: 1, minWidth: 120, tooltipField: 'sendAgtBranch' },
3804
3790
  { headerName: 'Receive Client', field: 'recvAgent', flex: 1, minWidth: 120, tooltipField: 'recvAgent' },
3805
3791
  { headerName: 'Receive Client Branch', field: 'rcvAgtBranch', flex: 1, minWidth: 120, tooltipField: 'rcvAgtBranch' },
3806
- { headerName: 'Is Sender Corporate', field: 'isSenderCorporate', flex: 1, minWidth: 80 },
3807
3792
  { headerName: 'Sender Name', field: 'sendName', flex: 1, minWidth: 120, tooltipField: 'sendName' },
3808
3793
  { headerName: 'Sender ID Type', field: 'sendIdType', flex: 1, minWidth: 90, tooltipField: 'sendIdType' },
3809
3794
  { headerName: 'Sender ID Number', field: 'sendIdNumber', flex: 1, minWidth: 85, tooltipField: 'sendIdNumber' },
3810
- { headerName: 'Is Beneficiary Corporate', field: 'isBeneficiaryCorporate', flex: 1, minWidth: 80 },
3811
3795
  { headerName: 'Benf. Name', field: 'benName', flex: 1, minWidth: 100, tooltipField: 'benName' },
3812
3796
  { headerName: 'Receive Currency', field: 'payOutCurrency', flex: 1, minWidth: 80, tooltipField: 'payOutCurrency' },
3813
3797
  { headerName: 'Receive Amount', field: 'payOutAmount', flex: 1, minWidth: 100, cellClass: 'ag-right-aligned-cell ', tooltipField: 'payOutAmount' },
@@ -4058,12 +4042,11 @@ class BranchActivitySendReportComponent {
4058
4042
  { field: 'businessDateTime', headerName: 'Business Date', flex: 1, wrapText: true, autoHeight: true, headerClass: 'ag-left-aligned-header', minWidth: 70, width: 70, tooltipField: 'businessDateTime' },
4059
4043
  { field: 'transactionDateTime', headerName: 'Transaction Date', minWidth: 100, flex: 2, wrapText: true, autoHeight: true, tooltipField: 'transactionDateTime' },
4060
4044
  { 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' },
4045
+ { field: 'transactionReferenceNumber', headerName: 'Transaction Reference Number', flex: 1.8, wrapText: true, autoHeight: true, minWidth: 90, width: 130, cellClass: 'ag-left-cols-cell compact-cell-transaction', tooltipField: 'transactionReferenceNumber' },
4061
4046
  { field: 'product', headerName: 'Product', flex: 0.5, wrapText: true, autoHeight: true, minWidth: 80, width: 120, tooltipField: 'product' },
4062
4047
  { field: 'sendAgentBranchCode', headerName: 'SendClient BranchCode', flex: 1, wrapText: true, autoHeight: true, minWidth: 90, width: 120, tooltipField: 'sendAgentBranchCode' },
4063
4048
  { field: 'receiveAgentCode', headerName: 'Receive ClientCode', flex: 1, wrapText: true, autoHeight: true, minWidth: 90, width: 70, tooltipField: 'receiveAgentCode' },
4064
- { headerName: 'Is Sender Corporate', field: 'isSenderCorporate', flex: 1, minWidth: 80 },
4065
4049
  { headerName: 'Sender Name', field: 'senderName', flex: 1, minWidth: 120, tooltipField: 'senderName' },
4066
- { headerName: 'Is Beneficiary Corporate', field: 'isBeneficiaryCorporate', flex: 1, minWidth: 80 },
4067
4050
  { headerName: 'Beneficiary Name', field: 'beneficiaryName', flex: 1, minWidth: 100, tooltipField: 'beneficiaryName' },
4068
4051
  { field: 'payoutCCcode', headerName: 'ReceiveCcy Code', flex: 1, wrapText: true, autoHeight: true, minWidth: 90, width: 110, tooltipField: 'payoutCCcode' },
4069
4052
  { field: 'payoutAmount', headerName: 'Receive Amount', flex: 1, wrapText: true, autoHeight: true, minWidth: 90, maxWidth: 120, cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'payoutAmount' },
@@ -4515,10 +4498,6 @@ class CancellationTransactionReportComponent {
4515
4498
  { headerName: 'Send Client Branch Code', field: 'sendAgentBranchCode', flex: 1, minWidth: 90, tooltipField: 'sendAgentBranchCode' },
4516
4499
  { headerName: 'Send Principal Client Code (If Applicable)', field: 'sendPrincipalAgentCode', flex: 1, minWidth: 90, tooltipField: 'sendPrincipalAgentCode' },
4517
4500
  { headerName: 'Receive Client Code', field: 'recvAGTcode', flex: 1, minWidth: 80, tooltipField: 'recvAGTcode' },
4518
- { headerName: 'Is Sender Corporate', field: 'isSenderCorporate', flex: 1, minWidth: 80 },
4519
- { headerName: 'Sender Name', field: 'senderName', flex: 1, minWidth: 120, tooltipField: 'senderName' },
4520
- { headerName: 'Is Beneficiary Corporate', field: 'isBeneficiaryCorporate', flex: 1, minWidth: 80 },
4521
- { headerName: 'Beneficiary Name', field: 'beneficiaryName', flex: 1, minWidth: 100, tooltipField: 'beneficiaryName' },
4522
4501
  { headerName: 'Receive CcyCode', field: 'payoutCCcode', flex: 1, minWidth: 65, tooltipField: 'payoutCCcode' },
4523
4502
  { headerName: 'Receive Amount', field: 'payOutAmount', flex: 1, minWidth: 82, cellClass: 'ag-right-aligned-cell', tooltipField: 'payOutAmount' },
4524
4503
  { headerName: 'Send CcyCode', field: 'payinCCcode', flex: 1, minWidth: 69, tooltipField: 'payinCCcode' },
@@ -4760,8 +4739,6 @@ class RevenuePerTransactionReportComponent {
4760
4739
  { field: 'receiveCountry', headerName: 'Receive Country', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true, tooltipField: 'receiveCountry' },
4761
4740
  { field: 'receiveAgentName', headerName: 'ReceiveClient Name', flex: 1, headerClass: 'ag-header-cell', minWidth: 150, wrapText: true, autoHeight: true, tooltipField: 'receiveAgentName' },
4762
4741
  { field: 'receiveAgentCode', headerName: 'ReceiveClient Code', flex: 1, headerClass: 'ag-header-cell', minWidth: 90, wrapText: true, autoHeight: true, tooltipField: 'receiveAgentCode' },
4763
- { headerName: 'Is Sender Corporate', field: 'isSenderCorporate', flex: 1, minWidth: 80 },
4764
- { headerName: 'Is Beneficiary Corporate', field: 'isBeneficiaryCorporate', flex: 1, minWidth: 80 },
4765
4742
  { field: 'payInCurrency', headerName: 'Send CcyCode', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true, tooltipField: 'payInCurrency' },
4766
4743
  { 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' },
4767
4744
  { 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' },
@@ -5768,30 +5745,28 @@ class AccountingReportComponent {
5768
5745
  autoHeight: true
5769
5746
  };
5770
5747
  this.columnDefs = [
5771
- { headerName: 'BusinessDate', field: 'businessDate', minWidth: 95, tooltipField: 'businessDate' },
5748
+ { headerName: 'BusinessDate', field: 'businessDate', tooltipField: 'businessDate' },
5772
5749
  { headerName: 'TxnDate&Time', field: 'transactionDateAndTime', tooltipField: 'transactionDateAndTime', minWidth: 110, },
5773
- { headerName: 'Transaction Number', field: 'transactionNumber', minWidth: 100, tooltipField: 'transactionNumber' },
5774
- { headerName: 'SendClient', field: 'sendClient', minWidth: 80, tooltipField: 'sendClient' },
5775
- { headerName: 'Principle SendClient (If Applicable)', field: 'principleSendClient', tooltipField: 'principleSendClient', minWidth: 90, },
5776
- { headerName: 'ReceiveClient', field: 'receiveClient', minWidth: 90, tooltipField: 'receiveClient' },
5777
- { headerName: 'Principle ReceiveClient (If Applicable)', field: 'principleReceiveClient', tooltipField: 'principleReceiveClient', minWidth: 90 },
5778
- { headerName: 'Is Sender Corporate', field: 'isSenderCorporate', minWidth: 80 },
5779
- { headerName: 'Is Beneficiary Corporate', field: 'isBeneficiaryCorporate', minWidth: 80 },
5780
- { headerName: 'ReceiveCcy', field: 'receiveCurrency', minWidth: 80, tooltipField: 'receiveCurrency' },
5781
- { headerName: 'AmountPaid', field: 'amountPaid', minWidth: 85, tooltipField: 'amountPaid', cellClass: 'ag-right-aligned-cell' },
5782
- { headerName: 'SendCcy', field: 'sendCurrency', minWidth: 80, tooltipField: 'sendCurrency', },
5783
- { headerName: 'ServiceFee', field: 'serviceFee', minWidth: 80, tooltipField: 'serviceFee', cellClass: 'ag-right-aligned-cell' },
5784
- { headerName: 'Tax', field: 'tax', minWidth: 70, tooltipField: 'tax', cellClass: 'ag-right-aligned-cell' },
5785
- { headerName: 'PrincipleSend Amount', field: 'principleSendAmount', minWidth: 90, tooltipField: 'principleSendAmount', cellClass: 'ag-right-aligned-cell' },
5786
- { headerName: 'Transaction Status', field: 'transactionStatus', minWidth: 90, tooltipField: 'transactionStatus' },
5787
- { headerName: 'SettlementCcy', field: 'settlementCurrency', minWidth: 90, tooltipField: 'settlementCurrency', cellClass: 'ag-right-aligned-cell' },
5788
- { headerName: 'ClientSettl (in SCcy)', field: 'clientSettlementInSCcy', minWidth: 80, tooltipField: 'clientSettlementInSCcy', cellClass: 'ag-right-aligned-cell' },
5789
- { headerName: 'ClientSettl (in USD)', field: 'clientSettlementInUSD', minWidth: 80, tooltipField: 'clientSettlementInUSD', cellClass: 'ag-right-aligned-cell' },
5790
- { headerName: 'ShareType', field: 'shareType', minWidth: 85, tooltipField: 'shareType' },
5791
- { headerName: 'ShareValue', field: 'shareValue', minWidth: 85, tooltipField: 'shareValue', cellClass: 'ag-right-aligned-cell' },
5792
- { headerName: 'Send/Receive FeeCcy', field: 'sendReceiveFeeCcy', minWidth: 85, tooltipField: 'sendReceiveFeeCcy' },
5793
- { headerName: 'ShareAmt (in USD)', field: 'shareAmountInUSD', minWidth: 80, tooltipField: 'shareAmountInUSD', cellClass: 'ag-right-aligned-cell' },
5794
- { headerName: 'Settlement Rate', field: 'settlementRate', minWidth: 85, tooltipField: 'settlementRate', cellClass: 'ag-right-aligned-cell' },
5750
+ { headerName: 'Transaction Number', field: 'transactionNumber', tooltipField: 'transactionNumber' },
5751
+ { headerName: 'SendClient', field: 'sendClient', tooltipField: 'sendClient' },
5752
+ { headerName: 'Principle SendClient (If Applicable)', field: 'principleSendClient', tooltipField: 'principleSendClient', width: 90, minWidth: 80, maxWidth: 110 },
5753
+ { headerName: 'ReceiveClient', field: 'receiveClient', tooltipField: 'receiveClient' },
5754
+ { headerName: 'Principle ReceiveClient (If Applicable)', field: 'principleReceiveClient', tooltipField: 'principleReceiveClient', width: 100, minWidth: 90, maxWidth: 120 },
5755
+ { headerName: 'ReceiveCcy', field: 'receiveCurrency', tooltipField: 'receiveCurrency' },
5756
+ { headerName: 'AmountPaid', field: 'amountPaid', tooltipField: 'amountPaid', cellClass: 'ag-right-aligned-cell' },
5757
+ { headerName: 'SendCcy', field: 'sendCurrency', tooltipField: 'sendCurrency', },
5758
+ { headerName: 'ServiceFee', field: 'serviceFee', tooltipField: 'serviceFee', cellClass: 'ag-right-aligned-cell' },
5759
+ { headerName: 'Tax', field: 'tax', tooltipField: 'tax', cellClass: 'ag-right-aligned-cell' },
5760
+ { headerName: 'PrincipleSend Amount', field: 'principleSendAmount', tooltipField: 'principleSendAmount', cellClass: 'ag-right-aligned-cell' },
5761
+ { headerName: 'Transaction Status', field: 'transactionStatus', tooltipField: 'transactionStatus' },
5762
+ { headerName: 'SettlementCcy', field: 'settlementCurrency', tooltipField: 'settlementCurrency', cellClass: 'ag-right-aligned-cell' },
5763
+ { headerName: 'ClientSettl (in SCcy)', field: 'clientSettlementInSCcy', tooltipField: 'clientSettlementInSCcy', cellClass: 'ag-right-aligned-cell' },
5764
+ { headerName: 'ClientSettl (in USD)', field: 'clientSettlementInUSD', tooltipField: 'clientSettlementInUSD', cellClass: 'ag-right-aligned-cell' },
5765
+ { headerName: 'ShareType', field: 'shareType', tooltipField: 'shareType' },
5766
+ { headerName: 'ShareValue', field: 'shareValue', tooltipField: 'shareValue', cellClass: 'ag-right-aligned-cell' },
5767
+ { headerName: 'Send/Receive FeeCcy', field: 'sendReceiveFeeCcy', tooltipField: 'sendReceiveFeeCcy' },
5768
+ { headerName: 'ShareAmt (in USD)', field: 'shareAmountInUSD', tooltipField: 'shareAmountInUSD', cellClass: 'ag-right-aligned-cell' },
5769
+ { headerName: 'Settlement Rate', field: 'settlementRate', tooltipField: 'settlementRate', cellClass: 'ag-right-aligned-cell' },
5795
5770
  ];
5796
5771
  this.gridApis = [];
5797
5772
  this.gridColumnApis = [];
@@ -5895,15 +5870,11 @@ class AccountingReportComponent {
5895
5870
  const columnApi = this.gridColumnApis[id];
5896
5871
  if (!columnApi)
5897
5872
  return;
5898
- const columns = columnApi.getColumns();
5899
- // prevent undefined error
5900
- if (!(columns === null || columns === void 0 ? void 0 : columns.length))
5901
- return;
5902
5873
  const allColumnIds = [];
5903
5874
  columnApi.getColumns().forEach((column) => {
5904
5875
  allColumnIds.push(column.getId());
5905
5876
  });
5906
- columnApi.autoSizeColumns(allColumnIds, true);
5877
+ columnApi.autoSizeColumns(allColumnIds, skipHeader);
5907
5878
  }
5908
5879
  formatNumber(params) {
5909
5880
  if (params.value == null)
@@ -7974,7 +7945,6 @@ class TransactionMonitoringReportComponent {
7974
7945
  this.showMessage = false;
7975
7946
  this.noDataFound = false;
7976
7947
  this.isFormValid = false;
7977
- this.clearSearch = false;
7978
7948
  this.columnDefs = [
7979
7949
  { field: 'businessDateTime', headerName: 'Business Date', flex: 1, headerClass: 'ag-left-aligned-header', minWidth: 70, wrapText: true, autoHeight: true, tooltipField: 'businessDateTime' },
7980
7950
  { field: 'transactionDateTime', headerName: 'Transaction Date', flex: 2, headerClass: 'ag-left-aligned-header', minWidth: 100, wrapText: true, autoHeight: true, tooltipField: 'transactionDateTime' },
@@ -8056,9 +8026,7 @@ class TransactionMonitoringReportComponent {
8056
8026
  receiveCountry: params['receiveCountry'],
8057
8027
  toDate: params['toDate'],
8058
8028
  fromDate: params['fromDate'],
8059
- isRealtime: params['isRealtime'] === 'true' || params['isRealtime'] === true,
8060
- loggedInTime: params['loggedInTime'],
8061
- count: Number(params['count'])
8029
+ isRealtime: params['isRealtime'] === 'true' || params['isRealtime'] === true
8062
8030
  };
8063
8031
  }
8064
8032
  else {
@@ -8178,28 +8146,13 @@ class TransactionMonitoringReportComponent {
8178
8146
  return '';
8179
8147
  }
8180
8148
  handleSearch(criteria) {
8181
- var _a, _b, _c, _d, _e, _f;
8182
- if (this.initialFilters != null) {
8183
- const realtimeStatuses = ['Paid', 'PaidCancelled', 'Cancelled', 'Void', 'Rejected'];
8184
- const isTerminatingStatus = realtimeStatuses.includes((_a = this.initialFilters) === null || _a === void 0 ? void 0 : _a.transactionStatus);
8185
- const isZeroCount = ((_b = this.initialFilters) === null || _b === void 0 ? void 0 : _b.count) === 0;
8186
- // block api call
8187
- if (isTerminatingStatus && isZeroCount && (!criteria.modal.fromDate && !criteria.modal.toDate)) {
8188
- this.noDataFound = true;
8189
- this.showReport = true;
8190
- this.loadingState = ComponentLoadingStates.Complete;
8191
- this.clearSearch = false;
8192
- this.showMessage = true;
8193
- return;
8194
- }
8195
- }
8196
8149
  this.searchCriteria = criteria.searchCriteria;
8197
8150
  this.reportDate = new Date().toISOString();
8198
8151
  this.reportDate = formatDate(this.reportDate, 'dd/MM/yyyy hh:mm a', 'en-US');
8199
8152
  const modal = criteria.modal;
8200
8153
  this.user = criteria.sysUserID;
8201
8154
  // this.fromDate = formatDate(modal.fromDate, 'dd/MM/yyyy hh:mm a', 'en-US').slice(0, 10);
8202
- // this.toDate = formatDate(modal.toDate, 'dd/MM/yyyy hh:mm a', 'en-US').slice(0, 10);
8155
+ //this.toDate = formatDate(modal.toDate, 'dd/MM/yyyy hh:mm a', 'en-US').slice(0, 10);
8203
8156
  this.fromDate = modal.fromDate
8204
8157
  ? formatDate(modal.fromDate, 'dd/MM/yyyy hh:mm a', 'en-US').slice(0, 10)
8205
8158
  : null;
@@ -8209,7 +8162,7 @@ class TransactionMonitoringReportComponent {
8209
8162
  console.log(modal);
8210
8163
  // Code For Meta Data
8211
8164
  this.leftData = {
8212
- // 'Report Period': this.fromDate + " - " + this.toDate,
8165
+ // 'Report Period': this.fromDate + " - " + this.toDate,
8213
8166
  'Report Period': this.fromDate && this.toDate
8214
8167
  ? `${this.fromDate} - ${this.toDate}`
8215
8168
  : ''
@@ -8227,11 +8180,9 @@ class TransactionMonitoringReportComponent {
8227
8180
  "PayoutCurrency": modal.receiveCurrency,
8228
8181
  "TransactionType": modal.product,
8229
8182
  "BranchCode": modal.branch,
8230
- "IsrealTime": (_d = (_c = this.initialFilters) === null || _c === void 0 ? void 0 : _c.isRealtime) !== null && _d !== void 0 ? _d : false,
8231
- "LoggedInTime": (_f = (_e = this.initialFilters) === null || _e === void 0 ? void 0 : _e.loggedInTime) !== null && _f !== void 0 ? _f : null
8183
+ "IsrealTime": criteria.isRealtime
8232
8184
  };
8233
8185
  this.showMessage = true;
8234
- this.clearSearch = true;
8235
8186
  this.loadingState = ComponentLoadingStates.Loading;
8236
8187
  this.reportService.getTransactionMonitoringReport(searchData).subscribe({
8237
8188
  next: (data) => {
@@ -8246,12 +8197,10 @@ class TransactionMonitoringReportComponent {
8246
8197
  },
8247
8198
  error: (err) => {
8248
8199
  this.loadingState = ComponentLoadingStates.Complete;
8249
- this.clearSearch = false;
8250
8200
  },
8251
8201
  complete: () => {
8252
8202
  this.loadingState = ComponentLoadingStates.Complete;
8253
8203
  this.showReport = true;
8254
- this.clearSearch = false;
8255
8204
  }
8256
8205
  });
8257
8206
  }