@sachin9822/reports-lib 0.0.221 → 0.0.223

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.
@@ -3624,13 +3624,14 @@ class AccGlDetailsEnquiryReportComponent {
3624
3624
  this.searchText = '';
3625
3625
  this.dateType = this.dateTypeFilter === 1 ? 'VD' : 'PD';
3626
3626
  this.reportService.getAccGLDetailsReport(this.date.split('T')[0], this.dateType).subscribe((data) => {
3627
+ var _a;
3627
3628
  if (data) {
3628
3629
  // Pre-format entries before storing
3629
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') })));
3630
3631
  this.accGlDetailsEnquiryReportModel = Object.assign(Object.assign({}, data), { journalVoucherEntries: formattedEntries });
3631
3632
  this.rowData = formattedEntries;
3632
3633
  this.companyName = data.companyName;
3633
- this.reportUser = data.reportUser.toLowerCase();
3634
+ this.reportUser = (_a = data.reportUser) === null || _a === void 0 ? void 0 : _a.toLowerCase();
3634
3635
  this.reportTime = formatDate(new Date(), 'dd/MM/yyyy hh:mm a', 'en-US');
3635
3636
  this.currentReportValueOrPostDate = formatDate(data.date, 'dd/MM/yyyy', 'en-US');
3636
3637
  const DateType = this.dateType === 'VD' ? 'Value Date' : 'Posting Date';
@@ -3802,51 +3803,11 @@ class TransactionEnquiryComponent {
3802
3803
  { headerName: 'Send Client Branch', field: 'sendAgtBranch', flex: 1, minWidth: 120, tooltipField: 'sendAgtBranch' },
3803
3804
  { headerName: 'Receive Client', field: 'recvAgent', flex: 1, minWidth: 120, tooltipField: 'recvAgent' },
3804
3805
  { headerName: 'Receive Client Branch', field: 'rcvAgtBranch', flex: 1, minWidth: 120, tooltipField: 'rcvAgtBranch' },
3805
- { headerName: 'Is Sender Corporate', field: 'senderType', flex: 1, minWidth: 80,
3806
- valueFormatter: (params) => {
3807
- if (!params.value)
3808
- return '';
3809
- const value = params.value.toUpperCase();
3810
- if (value === 'CORPORATE')
3811
- return 'YES';
3812
- if (value === 'INDIVIDUAL')
3813
- return 'NO';
3814
- return '';
3815
- },
3816
- tooltipValueGetter: (params) => {
3817
- if (!params.value)
3818
- return '';
3819
- const value = params.value.toUpperCase();
3820
- if (value === 'CORPORATE')
3821
- return 'YES';
3822
- if (value === 'INDIVIDUAL')
3823
- return 'NO';
3824
- return '';
3825
- } },
3806
+ { headerName: 'Is Sender Corporate', field: 'isSenderCorporate', flex: 1, minWidth: 80 },
3826
3807
  { headerName: 'Sender Name', field: 'sendName', flex: 1, minWidth: 120, tooltipField: 'sendName' },
3827
3808
  { headerName: 'Sender ID Type', field: 'sendIdType', flex: 1, minWidth: 90, tooltipField: 'sendIdType' },
3828
3809
  { headerName: 'Sender ID Number', field: 'sendIdNumber', flex: 1, minWidth: 85, tooltipField: 'sendIdNumber' },
3829
- { headerName: 'Is Beneficiary Corporate', field: 'beneficiaryType', flex: 1, minWidth: 80,
3830
- valueFormatter: (params) => {
3831
- if (!params.value)
3832
- return '';
3833
- const value = params.value.toUpperCase();
3834
- if (value === 'CORPORATE')
3835
- return 'YES';
3836
- if (value === 'INDIVIDUAL')
3837
- return 'NO';
3838
- return '';
3839
- },
3840
- tooltipValueGetter: (params) => {
3841
- if (!params.value)
3842
- return '';
3843
- const value = params.value.toUpperCase();
3844
- if (value === 'CORPORATE')
3845
- return 'YES';
3846
- if (value === 'INDIVIDUAL')
3847
- return 'NO';
3848
- return '';
3849
- } },
3810
+ { headerName: 'Is Beneficiary Corporate', field: 'isBeneficiaryCorporate', flex: 1, minWidth: 80 },
3850
3811
  { headerName: 'Benf. Name', field: 'benName', flex: 1, minWidth: 100, tooltipField: 'benName' },
3851
3812
  { headerName: 'Receive Currency', field: 'payOutCurrency', flex: 1, minWidth: 80, tooltipField: 'payOutCurrency' },
3852
3813
  { headerName: 'Receive Amount', field: 'payOutAmount', flex: 1, minWidth: 100, cellClass: 'ag-right-aligned-cell ', tooltipField: 'payOutAmount' },
@@ -4100,49 +4061,9 @@ class BranchActivitySendReportComponent {
4100
4061
  { field: 'product', headerName: 'Product', flex: 0.5, wrapText: true, autoHeight: true, minWidth: 80, width: 120, tooltipField: 'product' },
4101
4062
  { field: 'sendAgentBranchCode', headerName: 'SendClient BranchCode', flex: 1, wrapText: true, autoHeight: true, minWidth: 90, width: 120, tooltipField: 'sendAgentBranchCode' },
4102
4063
  { field: 'receiveAgentCode', headerName: 'Receive ClientCode', flex: 1, wrapText: true, autoHeight: true, minWidth: 90, width: 70, tooltipField: 'receiveAgentCode' },
4103
- { headerName: 'Is Sender Corporate', field: 'senderType', flex: 1, minWidth: 80,
4104
- valueFormatter: (params) => {
4105
- if (!params.value)
4106
- return '';
4107
- const value = params.value.toUpperCase();
4108
- if (value === 'CORPORATE')
4109
- return 'YES';
4110
- if (value === 'INDIVIDUAL')
4111
- return 'NO';
4112
- return '';
4113
- },
4114
- tooltipValueGetter: (params) => {
4115
- if (!params.value)
4116
- return '';
4117
- const value = params.value.toUpperCase();
4118
- if (value === 'CORPORATE')
4119
- return 'YES';
4120
- if (value === 'INDIVIDUAL')
4121
- return 'NO';
4122
- return '';
4123
- } },
4064
+ { headerName: 'Is Sender Corporate', field: 'isSenderCorporate', flex: 1, minWidth: 80 },
4124
4065
  { headerName: 'Sender Name', field: 'senderName', flex: 1, minWidth: 120, tooltipField: 'senderName' },
4125
- { headerName: 'Is Beneficiary Corporate', field: 'beneficiaryType', flex: 1, minWidth: 80,
4126
- valueFormatter: (params) => {
4127
- if (!params.value)
4128
- return '';
4129
- const value = params.value.toUpperCase();
4130
- if (value === 'CORPORATE')
4131
- return 'YES';
4132
- if (value === 'INDIVIDUAL')
4133
- return 'NO';
4134
- return '';
4135
- },
4136
- tooltipValueGetter: (params) => {
4137
- if (!params.value)
4138
- return '';
4139
- const value = params.value.toUpperCase();
4140
- if (value === 'CORPORATE')
4141
- return 'YES';
4142
- if (value === 'INDIVIDUAL')
4143
- return 'NO';
4144
- return '';
4145
- } },
4066
+ { headerName: 'Is Beneficiary Corporate', field: 'isBeneficiaryCorporate', flex: 1, minWidth: 80 },
4146
4067
  { headerName: 'Beneficiary Name', field: 'beneficiaryName', flex: 1, minWidth: 100, tooltipField: 'beneficiaryName' },
4147
4068
  { field: 'payoutCCcode', headerName: 'ReceiveCcy Code', flex: 1, wrapText: true, autoHeight: true, minWidth: 90, width: 110, tooltipField: 'payoutCCcode' },
4148
4069
  { field: 'payoutAmount', headerName: 'Receive Amount', flex: 1, wrapText: true, autoHeight: true, minWidth: 90, maxWidth: 120, cellClass: 'ag-right-aligned-cell compact-cell', tooltipField: 'payoutAmount' },
@@ -4594,49 +4515,9 @@ class CancellationTransactionReportComponent {
4594
4515
  { headerName: 'Send Client Branch Code', field: 'sendAgentBranchCode', flex: 1, minWidth: 90, tooltipField: 'sendAgentBranchCode' },
4595
4516
  { headerName: 'Send Principal Client Code (If Applicable)', field: 'sendPrincipalAgentCode', flex: 1, minWidth: 90, tooltipField: 'sendPrincipalAgentCode' },
4596
4517
  { headerName: 'Receive Client Code', field: 'recvAGTcode', flex: 1, minWidth: 80, tooltipField: 'recvAGTcode' },
4597
- { headerName: 'Is Sender Corporate', field: 'senderType', flex: 1, minWidth: 80,
4598
- valueFormatter: (params) => {
4599
- if (!params.value)
4600
- return '';
4601
- const value = params.value.toUpperCase();
4602
- if (value === 'CORPORATE')
4603
- return 'YES';
4604
- if (value === 'INDIVIDUAL')
4605
- return 'NO';
4606
- return '';
4607
- },
4608
- tooltipValueGetter: (params) => {
4609
- if (!params.value)
4610
- return '';
4611
- const value = params.value.toUpperCase();
4612
- if (value === 'CORPORATE')
4613
- return 'YES';
4614
- if (value === 'INDIVIDUAL')
4615
- return 'NO';
4616
- return '';
4617
- } },
4518
+ { headerName: 'Is Sender Corporate', field: 'isSenderCorporate', flex: 1, minWidth: 80 },
4618
4519
  { headerName: 'Sender Name', field: 'senderName', flex: 1, minWidth: 120, tooltipField: 'senderName' },
4619
- { headerName: 'Is Beneficiary Corporate', field: 'beneficiaryType', flex: 1, minWidth: 80,
4620
- valueFormatter: (params) => {
4621
- if (!params.value)
4622
- return '';
4623
- const value = params.value.toUpperCase();
4624
- if (value === 'CORPORATE')
4625
- return 'YES';
4626
- if (value === 'INDIVIDUAL')
4627
- return 'NO';
4628
- return '';
4629
- },
4630
- tooltipValueGetter: (params) => {
4631
- if (!params.value)
4632
- return '';
4633
- const value = params.value.toUpperCase();
4634
- if (value === 'CORPORATE')
4635
- return 'YES';
4636
- if (value === 'INDIVIDUAL')
4637
- return 'NO';
4638
- return '';
4639
- } },
4520
+ { headerName: 'Is Beneficiary Corporate', field: 'isBeneficiaryCorporate', flex: 1, minWidth: 80 },
4640
4521
  { headerName: 'Beneficiary Name', field: 'beneficiaryName', flex: 1, minWidth: 100, tooltipField: 'beneficiaryName' },
4641
4522
  { headerName: 'Receive CcyCode', field: 'payoutCCcode', flex: 1, minWidth: 65, tooltipField: 'payoutCCcode' },
4642
4523
  { headerName: 'Receive Amount', field: 'payOutAmount', flex: 1, minWidth: 82, cellClass: 'ag-right-aligned-cell', tooltipField: 'payOutAmount' },
@@ -4879,48 +4760,8 @@ class RevenuePerTransactionReportComponent {
4879
4760
  { field: 'receiveCountry', headerName: 'Receive Country', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true, tooltipField: 'receiveCountry' },
4880
4761
  { field: 'receiveAgentName', headerName: 'ReceiveClient Name', flex: 1, headerClass: 'ag-header-cell', minWidth: 150, wrapText: true, autoHeight: true, tooltipField: 'receiveAgentName' },
4881
4762
  { field: 'receiveAgentCode', headerName: 'ReceiveClient Code', flex: 1, headerClass: 'ag-header-cell', minWidth: 90, wrapText: true, autoHeight: true, tooltipField: 'receiveAgentCode' },
4882
- { headerName: 'Is Sender Corporate', field: 'senderType', flex: 1, minWidth: 80,
4883
- valueFormatter: (params) => {
4884
- if (!params.value)
4885
- return '';
4886
- const value = params.value.toUpperCase();
4887
- if (value === 'CORPORATE')
4888
- return 'YES';
4889
- if (value === 'INDIVIDUAL')
4890
- return 'NO';
4891
- return '';
4892
- },
4893
- tooltipValueGetter: (params) => {
4894
- if (!params.value)
4895
- return '';
4896
- const value = params.value.toUpperCase();
4897
- if (value === 'CORPORATE')
4898
- return 'YES';
4899
- if (value === 'INDIVIDUAL')
4900
- return 'NO';
4901
- return '';
4902
- } },
4903
- { headerName: 'Is Beneficiary Corporate', field: 'beneficiaryType', flex: 1, minWidth: 80,
4904
- valueFormatter: (params) => {
4905
- if (!params.value)
4906
- return '';
4907
- const value = params.value.toUpperCase();
4908
- if (value === 'CORPORATE')
4909
- return 'YES';
4910
- if (value === 'INDIVIDUAL')
4911
- return 'NO';
4912
- return '';
4913
- },
4914
- tooltipValueGetter: (params) => {
4915
- if (!params.value)
4916
- return '';
4917
- const value = params.value.toUpperCase();
4918
- if (value === 'CORPORATE')
4919
- return 'YES';
4920
- if (value === 'INDIVIDUAL')
4921
- return 'NO';
4922
- return '';
4923
- } },
4763
+ { headerName: 'Is Sender Corporate', field: 'isSenderCorporate', flex: 1, minWidth: 80 },
4764
+ { headerName: 'Is Beneficiary Corporate', field: 'isBeneficiaryCorporate', flex: 1, minWidth: 80 },
4924
4765
  { field: 'payInCurrency', headerName: 'Send CcyCode', flex: 1, headerClass: 'ag-header-cell', minWidth: 80, wrapText: true, autoHeight: true, tooltipField: 'payInCurrency' },
4925
4766
  { 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' },
4926
4767
  { 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' },
@@ -5934,48 +5775,8 @@ class AccountingReportComponent {
5934
5775
  { headerName: 'Principle SendClient (If Applicable)', field: 'principleSendClient', tooltipField: 'principleSendClient', minWidth: 90, },
5935
5776
  { headerName: 'ReceiveClient', field: 'receiveClient', minWidth: 90, tooltipField: 'receiveClient' },
5936
5777
  { headerName: 'Principle ReceiveClient (If Applicable)', field: 'principleReceiveClient', tooltipField: 'principleReceiveClient', minWidth: 90 },
5937
- { headerName: 'Is Sender Corporate', field: 'senderType', minWidth: 80,
5938
- valueFormatter: (params) => {
5939
- if (!params.value)
5940
- return '';
5941
- const value = params.value.toUpperCase();
5942
- if (value === 'CORPORATE')
5943
- return 'YES';
5944
- if (value === 'INDIVIDUAL')
5945
- return 'NO';
5946
- return '';
5947
- },
5948
- tooltipValueGetter: (params) => {
5949
- if (!params.value)
5950
- return '';
5951
- const value = params.value.toUpperCase();
5952
- if (value === 'CORPORATE')
5953
- return 'YES';
5954
- if (value === 'INDIVIDUAL')
5955
- return 'NO';
5956
- return '';
5957
- } },
5958
- { headerName: 'Is Beneficiary Corporate', field: 'beneficiaryType', minWidth: 80,
5959
- valueFormatter: (params) => {
5960
- if (!params.value)
5961
- return '';
5962
- const value = params.value.toUpperCase();
5963
- if (value === 'CORPORATE')
5964
- return 'YES';
5965
- if (value === 'INDIVIDUAL')
5966
- return 'NO';
5967
- return '';
5968
- },
5969
- tooltipValueGetter: (params) => {
5970
- if (!params.value)
5971
- return '';
5972
- const value = params.value.toUpperCase();
5973
- if (value === 'CORPORATE')
5974
- return 'YES';
5975
- if (value === 'INDIVIDUAL')
5976
- return 'NO';
5977
- return '';
5978
- } },
5778
+ { headerName: 'Is Sender Corporate', field: 'isSenderCorporate', minWidth: 80 },
5779
+ { headerName: 'Is Beneficiary Corporate', field: 'isBeneficiaryCorporate', minWidth: 80 },
5979
5780
  { headerName: 'ReceiveCcy', field: 'receiveCurrency', minWidth: 80, tooltipField: 'receiveCurrency' },
5980
5781
  { headerName: 'AmountPaid', field: 'amountPaid', minWidth: 85, tooltipField: 'amountPaid', cellClass: 'ag-right-aligned-cell' },
5981
5782
  { headerName: 'SendCcy', field: 'sendCurrency', minWidth: 80, tooltipField: 'sendCurrency', },