@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.
- package/esm2020/lib/components/acc-gl-details-enquiry-report/acc-gl-details-enquiry-report.component.mjs +2 -2
- package/esm2020/lib/components/accounting-report/accounting-report.component.mjs +29 -23
- package/esm2020/lib/components/branch-activity-send-report/branch-activity-send-report.component.mjs +7 -4
- package/esm2020/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.mjs +5 -1
- package/esm2020/lib/components/revenue-per-transaction-report/revenue-per-transaction-report.component.mjs +3 -1
- package/esm2020/lib/components/transaction-enquiry-report/transaction-enquiry-report.component.mjs +5 -3
- package/esm2020/lib/components/transaction-monitoring-report/transaction-monitoring-report.component.mjs +26 -5
- package/esm2020/lib/shared/search-filter/search-filter.component.mjs +18 -5
- package/fesm2015/sachin9822-reports-lib.mjs +90 -37
- package/fesm2015/sachin9822-reports-lib.mjs.map +1 -1
- package/fesm2020/sachin9822-reports-lib.mjs +87 -36
- package/fesm2020/sachin9822-reports-lib.mjs.map +1 -1
- package/lib/components/branch-activity-send-report/branch-activity-send-report.component.d.ts +1 -0
- package/lib/components/cancellation-transaction-report/cancellation-transaction-report.component.d.ts +28 -0
- package/lib/components/transaction-monitoring-report/transaction-monitoring-report.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2288,9 +2288,16 @@ 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)
|
|
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
|
+
}
|
|
2294
2301
|
const toDate = new Date(toDateStr);
|
|
2295
2302
|
const maxToDate = new Date(fromDate);
|
|
2296
2303
|
maxToDate === null || maxToDate === void 0 ? void 0 : maxToDate.setDate(fromDate.getDate() + 30);
|
|
@@ -2306,9 +2313,16 @@ class SearchFilterComponent {
|
|
|
2306
2313
|
(_b = this.searchForm.get('toDate')) === null || _b === void 0 ? void 0 : _b.valueChanges.subscribe(toDateStr => {
|
|
2307
2314
|
const fromDateControl = this.searchForm.get('fromDate');
|
|
2308
2315
|
const fromDateStr = fromDateControl === null || fromDateControl === void 0 ? void 0 : fromDateControl.value;
|
|
2309
|
-
if (!toDateStr
|
|
2316
|
+
if (!toDateStr)
|
|
2310
2317
|
return;
|
|
2311
2318
|
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
|
+
}
|
|
2312
2326
|
const fromDate = new Date(fromDateStr);
|
|
2313
2327
|
this.disabledDate = this.toNgbDateStruct(fromDate);
|
|
2314
2328
|
const minFromDate = new Date(toDate);
|
|
@@ -2812,7 +2826,7 @@ class SearchFilterComponent {
|
|
|
2812
2826
|
}
|
|
2813
2827
|
}
|
|
2814
2828
|
buildSearchCriteria() {
|
|
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
|
|
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;
|
|
2816
2830
|
const formValue = this.searchForm.value;
|
|
2817
2831
|
const fromDate = new Date(formValue.fromDate);
|
|
2818
2832
|
const toDate = new Date(formValue.toDate);
|
|
@@ -3008,7 +3022,7 @@ class SearchFilterComponent {
|
|
|
3008
3022
|
const formValue = this.searchForm.value;
|
|
3009
3023
|
// formValue.fromDate = this.toIsoFormat(formValue.fromDate);
|
|
3010
3024
|
// formValue.toDate = this.toIsoFormat(formValue.toDate);
|
|
3011
|
-
if (((_8 = this.initialFilters) === null || _8 === void 0 ? void 0 : _8.isRealtime) && (formValue.fromDate
|
|
3025
|
+
if (((_8 = this.initialFilters) === null || _8 === void 0 ? void 0 : _8.isRealtime) && (!formValue.fromDate && !formValue.toDate)) {
|
|
3012
3026
|
formValue.fromDate = null;
|
|
3013
3027
|
formValue.toDate = null;
|
|
3014
3028
|
}
|
|
@@ -3033,7 +3047,6 @@ class SearchFilterComponent {
|
|
|
3033
3047
|
return {
|
|
3034
3048
|
modal: formValue,
|
|
3035
3049
|
sysUserID: this.currentUser,
|
|
3036
|
-
isRealtime: (_17 = this.initialFilters) === null || _17 === void 0 ? void 0 : _17.isRealtime,
|
|
3037
3050
|
searchCriteria: searchCriteria
|
|
3038
3051
|
};
|
|
3039
3052
|
}
|
|
@@ -3611,13 +3624,14 @@ class AccGlDetailsEnquiryReportComponent {
|
|
|
3611
3624
|
this.searchText = '';
|
|
3612
3625
|
this.dateType = this.dateTypeFilter === 1 ? 'VD' : 'PD';
|
|
3613
3626
|
this.reportService.getAccGLDetailsReport(this.date.split('T')[0], this.dateType).subscribe((data) => {
|
|
3627
|
+
var _a;
|
|
3614
3628
|
if (data) {
|
|
3615
3629
|
// Pre-format entries before storing
|
|
3616
3630
|
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') })));
|
|
3617
3631
|
this.accGlDetailsEnquiryReportModel = Object.assign(Object.assign({}, data), { journalVoucherEntries: formattedEntries });
|
|
3618
3632
|
this.rowData = formattedEntries;
|
|
3619
3633
|
this.companyName = data.companyName;
|
|
3620
|
-
this.reportUser = data.reportUser.toLowerCase();
|
|
3634
|
+
this.reportUser = (_a = data.reportUser) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
3621
3635
|
this.reportTime = formatDate(new Date(), 'dd/MM/yyyy hh:mm a', 'en-US');
|
|
3622
3636
|
this.currentReportValueOrPostDate = formatDate(data.date, 'dd/MM/yyyy', 'en-US');
|
|
3623
3637
|
const DateType = this.dateType === 'VD' ? 'Value Date' : 'Posting Date';
|
|
@@ -3789,10 +3803,12 @@ class TransactionEnquiryComponent {
|
|
|
3789
3803
|
{ headerName: 'Send Client Branch', field: 'sendAgtBranch', flex: 1, minWidth: 120, tooltipField: 'sendAgtBranch' },
|
|
3790
3804
|
{ headerName: 'Receive Client', field: 'recvAgent', flex: 1, minWidth: 120, tooltipField: 'recvAgent' },
|
|
3791
3805
|
{ headerName: 'Receive Client Branch', field: 'rcvAgtBranch', flex: 1, minWidth: 120, tooltipField: 'rcvAgtBranch' },
|
|
3792
|
-
{ headerName: 'Sender
|
|
3806
|
+
{ headerName: 'Is Sender Corporate', field: 'isSenderCorporate', flex: 1, minWidth: 80 },
|
|
3807
|
+
{ headerName: 'Sender Name', field: 'sendName', flex: 1, minWidth: 120, tooltipField: 'sendName', wrapText: true, autoHeight: true },
|
|
3793
3808
|
{ headerName: 'Sender ID Type', field: 'sendIdType', flex: 1, minWidth: 90, tooltipField: 'sendIdType' },
|
|
3794
3809
|
{ headerName: 'Sender ID Number', field: 'sendIdNumber', flex: 1, minWidth: 85, tooltipField: 'sendIdNumber' },
|
|
3795
|
-
{ headerName: '
|
|
3810
|
+
{ headerName: 'Is Beneficiary Corporate', field: 'isBeneficiaryCorporate', flex: 1, minWidth: 80 },
|
|
3811
|
+
{ headerName: 'Benf. Name', field: 'benName', flex: 1, minWidth: 100, tooltipField: 'benName', wrapText: true, autoHeight: true },
|
|
3796
3812
|
{ headerName: 'Receive Currency', field: 'payOutCurrency', flex: 1, minWidth: 80, tooltipField: 'payOutCurrency' },
|
|
3797
3813
|
{ headerName: 'Receive Amount', field: 'payOutAmount', flex: 1, minWidth: 100, cellClass: 'ag-right-aligned-cell ', tooltipField: 'payOutAmount' },
|
|
3798
3814
|
{ headerName: 'Send Currency', field: 'payInCurrency', flex: 1, minWidth: 70, tooltipField: 'payInCurrency' },
|
|
@@ -4046,8 +4062,10 @@ class BranchActivitySendReportComponent {
|
|
|
4046
4062
|
{ field: 'product', headerName: 'Product', flex: 0.5, wrapText: true, autoHeight: true, minWidth: 80, width: 120, tooltipField: 'product' },
|
|
4047
4063
|
{ field: 'sendAgentBranchCode', headerName: 'SendClient BranchCode', flex: 1, wrapText: true, autoHeight: true, minWidth: 90, width: 120, tooltipField: 'sendAgentBranchCode' },
|
|
4048
4064
|
{ field: 'receiveAgentCode', headerName: 'Receive ClientCode', flex: 1, wrapText: true, autoHeight: true, minWidth: 90, width: 70, tooltipField: 'receiveAgentCode' },
|
|
4049
|
-
{ headerName: 'Sender
|
|
4050
|
-
{ headerName: '
|
|
4065
|
+
{ headerName: 'Is Sender Corporate', field: 'isSenderCorporate', flex: 1, minWidth: 80 },
|
|
4066
|
+
{ headerName: 'Sender Name', field: 'senderName', flex: 1, minWidth: 120, tooltipField: 'senderName', wrapText: true, autoHeight: true },
|
|
4067
|
+
{ headerName: 'Is Beneficiary Corporate', field: 'isBeneficiaryCorporate', flex: 1, minWidth: 80 },
|
|
4068
|
+
{ headerName: 'Beneficiary Name', field: 'beneficiaryName', flex: 1, minWidth: 100, tooltipField: 'beneficiaryName', wrapText: true, autoHeight: true },
|
|
4051
4069
|
{ field: 'payoutCCcode', headerName: 'ReceiveCcy Code', flex: 1, wrapText: true, autoHeight: true, minWidth: 90, width: 110, tooltipField: 'payoutCCcode' },
|
|
4052
4070
|
{ field: 'payoutAmount', headerName: 'Receive Amount', flex: 1, wrapText: true, autoHeight: true, minWidth: 90, maxWidth: 120, cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'payoutAmount' },
|
|
4053
4071
|
{ field: 'payinCCcode', headerName: 'SendCcy Code', flex: 1, wrapText: true, autoHeight: true, minWidth: 90, maxWidth: 90, tooltipField: 'payinCCcode' },
|
|
@@ -4065,7 +4083,8 @@ class BranchActivitySendReportComponent {
|
|
|
4065
4083
|
wrapHeaderText: true,
|
|
4066
4084
|
autoHeaderHeight: true,
|
|
4067
4085
|
suppressSizeToFit: false,
|
|
4068
|
-
wrapText: true
|
|
4086
|
+
wrapText: true,
|
|
4087
|
+
autoHeight: true
|
|
4069
4088
|
};
|
|
4070
4089
|
this.rowData = [];
|
|
4071
4090
|
this.reportTheme = themeAlpine.withParams({
|
|
@@ -4498,6 +4517,10 @@ class CancellationTransactionReportComponent {
|
|
|
4498
4517
|
{ headerName: 'Send Client Branch Code', field: 'sendAgentBranchCode', flex: 1, minWidth: 90, tooltipField: 'sendAgentBranchCode' },
|
|
4499
4518
|
{ headerName: 'Send Principal Client Code (If Applicable)', field: 'sendPrincipalAgentCode', flex: 1, minWidth: 90, tooltipField: 'sendPrincipalAgentCode' },
|
|
4500
4519
|
{ headerName: 'Receive Client Code', field: 'recvAGTcode', flex: 1, minWidth: 80, tooltipField: 'recvAGTcode' },
|
|
4520
|
+
{ headerName: 'Is Sender Corporate', field: 'isSenderCorporate', flex: 1, minWidth: 80 },
|
|
4521
|
+
{ headerName: 'Sender Name', field: 'senderName', flex: 1, minWidth: 120, tooltipField: 'senderName', wrapText: true, autoHeight: true },
|
|
4522
|
+
{ headerName: 'Is Beneficiary Corporate', field: 'isBeneficiaryCorporate', flex: 1, minWidth: 80 },
|
|
4523
|
+
{ headerName: 'Beneficiary Name', field: 'beneficiaryName', flex: 1, minWidth: 100, tooltipField: 'beneficiaryName', wrapText: true, autoHeight: true },
|
|
4501
4524
|
{ headerName: 'Receive CcyCode', field: 'payoutCCcode', flex: 1, minWidth: 65, tooltipField: 'payoutCCcode' },
|
|
4502
4525
|
{ headerName: 'Receive Amount', field: 'payOutAmount', flex: 1, minWidth: 82, cellClass: 'ag-right-aligned-cell', tooltipField: 'payOutAmount' },
|
|
4503
4526
|
{ headerName: 'Send CcyCode', field: 'payinCCcode', flex: 1, minWidth: 69, tooltipField: 'payinCCcode' },
|
|
@@ -4739,6 +4762,8 @@ class RevenuePerTransactionReportComponent {
|
|
|
4739
4762
|
{ field: 'receiveCountry', headerName: 'Receive Country', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true, tooltipField: 'receiveCountry' },
|
|
4740
4763
|
{ field: 'receiveAgentName', headerName: 'ReceiveClient Name', flex: 1, headerClass: 'ag-header-cell', minWidth: 150, wrapText: true, autoHeight: true, tooltipField: 'receiveAgentName' },
|
|
4741
4764
|
{ field: 'receiveAgentCode', headerName: 'ReceiveClient Code', flex: 1, headerClass: 'ag-header-cell', minWidth: 90, wrapText: true, autoHeight: true, tooltipField: 'receiveAgentCode' },
|
|
4765
|
+
{ headerName: 'Is Sender Corporate', field: 'isSenderCorporate', flex: 1, minWidth: 80 },
|
|
4766
|
+
{ headerName: 'Is Beneficiary Corporate', field: 'isBeneficiaryCorporate', flex: 1, minWidth: 80 },
|
|
4742
4767
|
{ field: 'payInCurrency', headerName: 'Send CcyCode', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true, tooltipField: 'payInCurrency' },
|
|
4743
4768
|
{ 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' },
|
|
4744
4769
|
{ 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' },
|
|
@@ -5745,28 +5770,30 @@ class AccountingReportComponent {
|
|
|
5745
5770
|
autoHeight: true
|
|
5746
5771
|
};
|
|
5747
5772
|
this.columnDefs = [
|
|
5748
|
-
{ headerName: 'BusinessDate', field: 'businessDate', tooltipField: 'businessDate' },
|
|
5773
|
+
{ headerName: 'BusinessDate', field: 'businessDate', minWidth: 95, tooltipField: 'businessDate' },
|
|
5749
5774
|
{ headerName: 'TxnDate&Time', field: 'transactionDateAndTime', tooltipField: 'transactionDateAndTime', minWidth: 110, },
|
|
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',
|
|
5753
|
-
{ headerName: 'ReceiveClient', field: 'receiveClient', tooltipField: 'receiveClient' },
|
|
5754
|
-
{ headerName: 'Principle ReceiveClient (If Applicable)', field: 'principleReceiveClient', tooltipField: 'principleReceiveClient',
|
|
5755
|
-
{ headerName: '
|
|
5756
|
-
{ headerName: '
|
|
5757
|
-
{ headerName: '
|
|
5758
|
-
{ headerName: '
|
|
5759
|
-
{ headerName: '
|
|
5760
|
-
{ headerName: '
|
|
5761
|
-
{ headerName: '
|
|
5762
|
-
{ headerName: '
|
|
5763
|
-
{ headerName: '
|
|
5764
|
-
{ headerName: '
|
|
5765
|
-
{ headerName: '
|
|
5766
|
-
{ headerName: '
|
|
5767
|
-
{ headerName: '
|
|
5768
|
-
{ headerName: '
|
|
5769
|
-
{ headerName: '
|
|
5775
|
+
{ headerName: 'Transaction Number', field: 'transactionNumber', minWidth: 100, tooltipField: 'transactionNumber' },
|
|
5776
|
+
{ headerName: 'SendClient', field: 'sendClient', minWidth: 80, tooltipField: 'sendClient' },
|
|
5777
|
+
{ headerName: 'Principle SendClient (If Applicable)', field: 'principleSendClient', tooltipField: 'principleSendClient', minWidth: 90, },
|
|
5778
|
+
{ headerName: 'ReceiveClient', field: 'receiveClient', minWidth: 90, tooltipField: 'receiveClient' },
|
|
5779
|
+
{ headerName: 'Principle ReceiveClient (If Applicable)', field: 'principleReceiveClient', tooltipField: 'principleReceiveClient', minWidth: 90 },
|
|
5780
|
+
{ headerName: 'Is Sender Corporate', field: 'isSenderCorporate', minWidth: 80 },
|
|
5781
|
+
{ headerName: 'Is Beneficiary Corporate', field: 'isBeneficiaryCorporate', minWidth: 80 },
|
|
5782
|
+
{ headerName: 'ReceiveCcy', field: 'receiveCurrency', minWidth: 80, tooltipField: 'receiveCurrency' },
|
|
5783
|
+
{ headerName: 'AmountPaid', field: 'amountPaid', minWidth: 85, tooltipField: 'amountPaid', cellClass: 'ag-right-aligned-cell' },
|
|
5784
|
+
{ headerName: 'SendCcy', field: 'sendCurrency', minWidth: 80, tooltipField: 'sendCurrency', },
|
|
5785
|
+
{ headerName: 'ServiceFee', field: 'serviceFee', minWidth: 80, tooltipField: 'serviceFee', cellClass: 'ag-right-aligned-cell' },
|
|
5786
|
+
{ headerName: 'Tax', field: 'tax', minWidth: 70, tooltipField: 'tax', cellClass: 'ag-right-aligned-cell' },
|
|
5787
|
+
{ headerName: 'PrincipleSend Amount', field: 'principleSendAmount', minWidth: 90, tooltipField: 'principleSendAmount', cellClass: 'ag-right-aligned-cell' },
|
|
5788
|
+
{ headerName: 'Transaction Status', field: 'transactionStatus', minWidth: 90, tooltipField: 'transactionStatus' },
|
|
5789
|
+
{ headerName: 'SettlementCcy', field: 'settlementCurrency', minWidth: 90, tooltipField: 'settlementCurrency', cellClass: 'ag-right-aligned-cell' },
|
|
5790
|
+
{ headerName: 'ClientSettl (in SCcy)', field: 'clientSettlementInSCcy', minWidth: 80, tooltipField: 'clientSettlementInSCcy', cellClass: 'ag-right-aligned-cell' },
|
|
5791
|
+
{ headerName: 'ClientSettl (in USD)', field: 'clientSettlementInUSD', minWidth: 80, tooltipField: 'clientSettlementInUSD', cellClass: 'ag-right-aligned-cell' },
|
|
5792
|
+
{ headerName: 'ShareType', field: 'shareType', minWidth: 85, tooltipField: 'shareType' },
|
|
5793
|
+
{ headerName: 'ShareValue', field: 'shareValue', minWidth: 85, tooltipField: 'shareValue', cellClass: 'ag-right-aligned-cell' },
|
|
5794
|
+
{ headerName: 'Send/Receive FeeCcy', field: 'sendReceiveFeeCcy', minWidth: 85, tooltipField: 'sendReceiveFeeCcy' },
|
|
5795
|
+
{ headerName: 'ShareAmt (in USD)', field: 'shareAmountInUSD', minWidth: 80, tooltipField: 'shareAmountInUSD', cellClass: 'ag-right-aligned-cell' },
|
|
5796
|
+
{ headerName: 'Settlement Rate', field: 'settlementRate', minWidth: 85, tooltipField: 'settlementRate', cellClass: 'ag-right-aligned-cell' },
|
|
5770
5797
|
];
|
|
5771
5798
|
this.gridApis = [];
|
|
5772
5799
|
this.gridColumnApis = [];
|
|
@@ -5870,11 +5897,15 @@ class AccountingReportComponent {
|
|
|
5870
5897
|
const columnApi = this.gridColumnApis[id];
|
|
5871
5898
|
if (!columnApi)
|
|
5872
5899
|
return;
|
|
5900
|
+
const columns = columnApi.getColumns();
|
|
5901
|
+
// prevent undefined error
|
|
5902
|
+
if (!(columns === null || columns === void 0 ? void 0 : columns.length))
|
|
5903
|
+
return;
|
|
5873
5904
|
const allColumnIds = [];
|
|
5874
5905
|
columnApi.getColumns().forEach((column) => {
|
|
5875
5906
|
allColumnIds.push(column.getId());
|
|
5876
5907
|
});
|
|
5877
|
-
columnApi.autoSizeColumns(allColumnIds,
|
|
5908
|
+
columnApi.autoSizeColumns(allColumnIds, true);
|
|
5878
5909
|
}
|
|
5879
5910
|
formatNumber(params) {
|
|
5880
5911
|
if (params.value == null)
|
|
@@ -7945,6 +7976,7 @@ class TransactionMonitoringReportComponent {
|
|
|
7945
7976
|
this.showMessage = false;
|
|
7946
7977
|
this.noDataFound = false;
|
|
7947
7978
|
this.isFormValid = false;
|
|
7979
|
+
this.clearSearch = false;
|
|
7948
7980
|
this.columnDefs = [
|
|
7949
7981
|
{ field: 'businessDateTime', headerName: 'Business Date', flex: 1, headerClass: 'ag-left-aligned-header', minWidth: 70, wrapText: true, autoHeight: true, tooltipField: 'businessDateTime' },
|
|
7950
7982
|
{ field: 'transactionDateTime', headerName: 'Transaction Date', flex: 2, headerClass: 'ag-left-aligned-header', minWidth: 100, wrapText: true, autoHeight: true, tooltipField: 'transactionDateTime' },
|
|
@@ -8026,7 +8058,9 @@ class TransactionMonitoringReportComponent {
|
|
|
8026
8058
|
receiveCountry: params['receiveCountry'],
|
|
8027
8059
|
toDate: params['toDate'],
|
|
8028
8060
|
fromDate: params['fromDate'],
|
|
8029
|
-
isRealtime: params['isRealtime'] === 'true' || params['isRealtime'] === true
|
|
8061
|
+
isRealtime: params['isRealtime'] === 'true' || params['isRealtime'] === true,
|
|
8062
|
+
loggedInTime: params['loggedInTime'],
|
|
8063
|
+
count: Number(params['count'])
|
|
8030
8064
|
};
|
|
8031
8065
|
}
|
|
8032
8066
|
else {
|
|
@@ -8146,13 +8180,28 @@ class TransactionMonitoringReportComponent {
|
|
|
8146
8180
|
return '';
|
|
8147
8181
|
}
|
|
8148
8182
|
handleSearch(criteria) {
|
|
8183
|
+
var _a, _b, _c, _d, _e, _f;
|
|
8184
|
+
if (this.initialFilters != null) {
|
|
8185
|
+
const realtimeStatuses = ['Paid', 'PaidCancelled', 'Cancelled', 'Void', 'Rejected'];
|
|
8186
|
+
const isTerminatingStatus = realtimeStatuses.includes((_a = this.initialFilters) === null || _a === void 0 ? void 0 : _a.transactionStatus);
|
|
8187
|
+
const isZeroCount = ((_b = this.initialFilters) === null || _b === void 0 ? void 0 : _b.count) === 0;
|
|
8188
|
+
// block api call
|
|
8189
|
+
if (isTerminatingStatus && isZeroCount && (!criteria.modal.fromDate && !criteria.modal.toDate)) {
|
|
8190
|
+
this.noDataFound = true;
|
|
8191
|
+
this.showReport = true;
|
|
8192
|
+
this.loadingState = ComponentLoadingStates.Complete;
|
|
8193
|
+
this.clearSearch = false;
|
|
8194
|
+
this.showMessage = true;
|
|
8195
|
+
return;
|
|
8196
|
+
}
|
|
8197
|
+
}
|
|
8149
8198
|
this.searchCriteria = criteria.searchCriteria;
|
|
8150
8199
|
this.reportDate = new Date().toISOString();
|
|
8151
8200
|
this.reportDate = formatDate(this.reportDate, 'dd/MM/yyyy hh:mm a', 'en-US');
|
|
8152
8201
|
const modal = criteria.modal;
|
|
8153
8202
|
this.user = criteria.sysUserID;
|
|
8154
8203
|
// this.fromDate = formatDate(modal.fromDate, '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);
|
|
8204
|
+
// this.toDate = formatDate(modal.toDate, 'dd/MM/yyyy hh:mm a', 'en-US').slice(0, 10);
|
|
8156
8205
|
this.fromDate = modal.fromDate
|
|
8157
8206
|
? formatDate(modal.fromDate, 'dd/MM/yyyy hh:mm a', 'en-US').slice(0, 10)
|
|
8158
8207
|
: null;
|
|
@@ -8162,7 +8211,7 @@ class TransactionMonitoringReportComponent {
|
|
|
8162
8211
|
console.log(modal);
|
|
8163
8212
|
// Code For Meta Data
|
|
8164
8213
|
this.leftData = {
|
|
8165
|
-
//
|
|
8214
|
+
// 'Report Period': this.fromDate + " - " + this.toDate,
|
|
8166
8215
|
'Report Period': this.fromDate && this.toDate
|
|
8167
8216
|
? `${this.fromDate} - ${this.toDate}`
|
|
8168
8217
|
: ''
|
|
@@ -8180,9 +8229,11 @@ class TransactionMonitoringReportComponent {
|
|
|
8180
8229
|
"PayoutCurrency": modal.receiveCurrency,
|
|
8181
8230
|
"TransactionType": modal.product,
|
|
8182
8231
|
"BranchCode": modal.branch,
|
|
8183
|
-
"IsrealTime":
|
|
8232
|
+
"IsrealTime": (_d = (_c = this.initialFilters) === null || _c === void 0 ? void 0 : _c.isRealtime) !== null && _d !== void 0 ? _d : false,
|
|
8233
|
+
"LoggedInTime": (_f = (_e = this.initialFilters) === null || _e === void 0 ? void 0 : _e.loggedInTime) !== null && _f !== void 0 ? _f : null
|
|
8184
8234
|
};
|
|
8185
8235
|
this.showMessage = true;
|
|
8236
|
+
this.clearSearch = true;
|
|
8186
8237
|
this.loadingState = ComponentLoadingStates.Loading;
|
|
8187
8238
|
this.reportService.getTransactionMonitoringReport(searchData).subscribe({
|
|
8188
8239
|
next: (data) => {
|
|
@@ -8197,10 +8248,12 @@ class TransactionMonitoringReportComponent {
|
|
|
8197
8248
|
},
|
|
8198
8249
|
error: (err) => {
|
|
8199
8250
|
this.loadingState = ComponentLoadingStates.Complete;
|
|
8251
|
+
this.clearSearch = false;
|
|
8200
8252
|
},
|
|
8201
8253
|
complete: () => {
|
|
8202
8254
|
this.loadingState = ComponentLoadingStates.Complete;
|
|
8203
8255
|
this.showReport = true;
|
|
8256
|
+
this.clearSearch = false;
|
|
8204
8257
|
}
|
|
8205
8258
|
});
|
|
8206
8259
|
}
|