@sachin9822/reports-lib 0.0.154 → 0.0.156
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 +12 -12
- package/esm2020/lib/components/accounting-report/accounting-report.component.mjs +5 -45
- package/esm2020/lib/shared/search-filter/search-filter.component.mjs +3 -3
- package/fesm2015/sachin9822-reports-lib.mjs +17 -57
- package/fesm2015/sachin9822-reports-lib.mjs.map +1 -1
- package/fesm2020/sachin9822-reports-lib.mjs +17 -57
- package/fesm2020/sachin9822-reports-lib.mjs.map +1 -1
- package/lib/components/accounting-report/accounting-report.component.d.ts +0 -1
- package/package.json +1 -1
|
@@ -1115,10 +1115,10 @@ class SearchFilterComponent {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
if (this.ReportName == "Accounting") {
|
|
1117
1117
|
this.searchForm = this.fb.group({
|
|
1118
|
-
client: [
|
|
1118
|
+
client: [null, Validators.required],
|
|
1119
1119
|
fromDate: [new Date().toISOString().split("T")[0], Validators.required],
|
|
1120
1120
|
toDate: [new Date().toISOString().split("T")[0], Validators.required],
|
|
1121
|
-
branch: [
|
|
1121
|
+
branch: [null, Validators.required],
|
|
1122
1122
|
currency: ['All'],
|
|
1123
1123
|
product: ['All', Validators.required],
|
|
1124
1124
|
transactionStatus: [['All'], Validators.required],
|
|
@@ -1816,7 +1816,7 @@ class AccGlDetailsEnquiryReportComponent {
|
|
|
1816
1816
|
sortable: false,
|
|
1817
1817
|
minWidth: 40,
|
|
1818
1818
|
suppressSizeToFit: false,
|
|
1819
|
-
cellStyle: { userSelect: 'text' },
|
|
1819
|
+
cellStyle: { userSelect: 'text', 'line-height': '1.2', 'white-space': 'normal', 'word-break': 'normal', 'overflow-wrap': 'break-word' },
|
|
1820
1820
|
// Header wrapping
|
|
1821
1821
|
wrapHeaderText: true,
|
|
1822
1822
|
autoHeaderHeight: true,
|
|
@@ -1825,20 +1825,20 @@ class AccGlDetailsEnquiryReportComponent {
|
|
|
1825
1825
|
autoHeight: true
|
|
1826
1826
|
};
|
|
1827
1827
|
this.columnDefs = [
|
|
1828
|
-
{ headerName: 'Journal ID', field: 'journalID', flex: 1.8, cellClass: 'ag-left-cols-cell compact-cell', minWidth:
|
|
1828
|
+
{ headerName: 'Journal ID', field: 'journalID', flex: 1.8, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 95, tooltipField: 'journalID' },
|
|
1829
1829
|
{ headerName: 'Trans No', field: 'transactionNo', flex: 1.8, cellClass: 'ag-left-cols-cell compact-cell-transaction', minWidth: 73, tooltipField: 'transactionNo' },
|
|
1830
|
-
{ headerName: 'Trans Code', field: 'transactionCode', flex: 1.2, cellClass: 'ag-left-cols-cell compact-cell', minWidth:
|
|
1831
|
-
{ headerName: 'Journal Type', field: 'journalType', flex: 1.2, cellClass: 'ag-left-cols-cell compact-cell', minWidth:
|
|
1830
|
+
{ headerName: 'Trans Code', field: 'transactionCode', flex: 1.2, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 60, tooltipField: 'transactionCode' },
|
|
1831
|
+
{ headerName: 'Journal Type', field: 'journalType', flex: 1.2, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 73, tooltipField: 'journalType' },
|
|
1832
1832
|
{ headerName: 'Posting Date', field: 'postingDate', flex: 1.2, valueFormatter: this.formatDate, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 69, tooltipValueGetter: (params) => this.formatDate(params) },
|
|
1833
1833
|
{ headerName: 'Value Date', field: 'valueDate', flex: 1.2, valueFormatter: this.formatDate, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 68, tooltipValueGetter: (params) => this.formatDate(params), },
|
|
1834
|
-
{ headerName: 'Description', field: 'description', flex: 4.8,
|
|
1834
|
+
{ headerName: 'Description', field: 'description', flex: 4.8, minWidth: 119, wrapText: true, autoHeight: true, cellStyle: { 'line-height': '1.2', 'white-space': 'normal', 'word-break': 'normal', 'overflow-wrap': 'break-word' }, tooltipField: 'description' },
|
|
1835
1835
|
{ headerName: 'Account Code', field: 'accountCode', flex: 1.2, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 73, tooltipField: 'accountCode' },
|
|
1836
1836
|
{ headerName: 'Ccy', field: 'currency', flex: 0.8, cellClass: 'ag-left-cols-cell', minWidth: 35, tooltipField: 'currency' },
|
|
1837
|
-
{ headerName: 'Rate', field: 'rate', flex: 1.3, valueFormatter: this.formatNumber, cellClass: 'ag-right-aligned-cell compact-cell', minWidth:
|
|
1838
|
-
{ headerName: 'FxDebit', field: 'forexDebit', flex: 1, valueFormatter: this.formatNumber, cellClass: 'ag-right-aligned-cell compact-cell', minWidth:
|
|
1839
|
-
{ headerName: 'Local Debit', field: 'localDebit', flex: 1, valueFormatter: this.formatNumber, cellClass: 'ag-right-aligned-cell compact-cell', minWidth:
|
|
1840
|
-
{ headerName: 'FxCredit', field: 'forexCredit', flex: 1, valueFormatter: this.formatNumber, cellClass: 'ag-right-aligned-cell compact-cell', minWidth:
|
|
1841
|
-
{ headerName: 'Local Credit', field: 'localCredit', flex: 1, valueFormatter: this.formatNumber, cellClass: 'ag-right-aligned-cell compact-cell', minWidth:
|
|
1837
|
+
{ headerName: 'Rate', field: 'rate', flex: 1.3, valueFormatter: this.formatNumber, cellClass: 'ag-right-aligned-cell compact-cell', minWidth: 69, tooltipValueGetter: (params) => this.formatNumber(params), },
|
|
1838
|
+
{ headerName: 'FxDebit', field: 'forexDebit', flex: 1, valueFormatter: this.formatNumber, cellClass: 'ag-right-aligned-cell compact-cell', minWidth: 58, tooltipValueGetter: (params) => this.formatNumber(params), },
|
|
1839
|
+
{ headerName: 'Local Debit', field: 'localDebit', flex: 1, valueFormatter: this.formatNumber, cellClass: 'ag-right-aligned-cell compact-cell', minWidth: 62, tooltipValueGetter: (params) => this.formatNumber(params), },
|
|
1840
|
+
{ headerName: 'FxCredit', field: 'forexCredit', flex: 1, valueFormatter: this.formatNumber, cellClass: 'ag-right-aligned-cell compact-cell', minWidth: 58, tooltipValueGetter: (params) => this.formatNumber(params), },
|
|
1841
|
+
{ headerName: 'Local Credit', field: 'localCredit', flex: 1, valueFormatter: this.formatNumber, cellClass: 'ag-right-aligned-cell compact-cell', minWidth: 62, tooltipValueGetter: (params) => this.formatNumber(params), },
|
|
1842
1842
|
];
|
|
1843
1843
|
}
|
|
1844
1844
|
ngOnInit() {
|
|
@@ -1880,7 +1880,7 @@ class AccGlDetailsEnquiryReportComponent {
|
|
|
1880
1880
|
'VD' ? 'Value Date' : 'Posting Date';
|
|
1881
1881
|
this.metaDataTwo = {
|
|
1882
1882
|
"Company": this.companyName,
|
|
1883
|
-
DateType:
|
|
1883
|
+
[DateType]: this.currentReportValueOrPostDate,
|
|
1884
1884
|
};
|
|
1885
1885
|
this.loading = false;
|
|
1886
1886
|
this.dataReady = true;
|
|
@@ -3532,18 +3532,6 @@ class AccountingReportComponent {
|
|
|
3532
3532
|
this.reportService = reportService;
|
|
3533
3533
|
this.exportService = exportService;
|
|
3534
3534
|
this.ReportName = "Accounting";
|
|
3535
|
-
this.reportRequest = {
|
|
3536
|
-
startDate: "2025-06-01",
|
|
3537
|
-
endDate: "2025-11-08",
|
|
3538
|
-
sendCountryCode: "ALL",
|
|
3539
|
-
recvCountryCode: "ALL",
|
|
3540
|
-
businessPartnerCorrelationID: "ALL",
|
|
3541
|
-
transactionStatus: "ALL",
|
|
3542
|
-
payoutCurrency: "ALL",
|
|
3543
|
-
transactionType: "ALL",
|
|
3544
|
-
branchCode: "ALL",
|
|
3545
|
-
companyCode: "ALL"
|
|
3546
|
-
};
|
|
3547
3535
|
this.searchText = '';
|
|
3548
3536
|
this.rowData = [];
|
|
3549
3537
|
this.pageSize = 15;
|
|
@@ -3552,39 +3540,15 @@ class AccountingReportComponent {
|
|
|
3552
3540
|
this.defaultColDef = {
|
|
3553
3541
|
resizable: true,
|
|
3554
3542
|
sortable: false,
|
|
3555
|
-
minWidth: 40,
|
|
3556
3543
|
suppressSizeToFit: false,
|
|
3557
|
-
|
|
3544
|
+
cellStyle: { userSelect: 'text', 'line-height': '1.2', 'white-space': 'normal', 'word-break': 'normal', 'overflow-wrap': 'break-word' },
|
|
3545
|
+
// Header wrapping
|
|
3558
3546
|
wrapHeaderText: true,
|
|
3559
3547
|
autoHeaderHeight: true,
|
|
3560
|
-
//
|
|
3548
|
+
// Cell wrapping
|
|
3561
3549
|
wrapText: true,
|
|
3562
3550
|
autoHeight: true
|
|
3563
3551
|
};
|
|
3564
|
-
// columnDefs: ColDef[] = [
|
|
3565
|
-
// { headerName: 'BusinessDate', field: 'businessDate', flex: 1.2, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 80, tooltipField: 'businessDate' },
|
|
3566
|
-
// { headerName: 'TxnDate&Time', field: 'transactionDateAndTime', flex: 1.8, cellClass: 'ag-left-cols-cell compact-cell-transaction', minWidth: 80, tooltipField: 'transactionDateAndTime', valueFormatter: this.formatDate },
|
|
3567
|
-
// { headerName: 'Transaction Number', field: 'transactionNumber', flex: 1.2, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 90, tooltipField: 'transactionNumber' },
|
|
3568
|
-
// { headerName: 'SendClient', field: 'sendClient', flex: 1.2, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 80, tooltipField: 'sendClient' },
|
|
3569
|
-
// { headerName: 'Principle SendClient (If Applicable)', field: 'principleSendClient', flex: 1.2, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 160, tooltipField: 'principleSendClient' },
|
|
3570
|
-
// { headerName: 'ReceiveClient', field: 'receiveClient', flex: 1.2, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 120, tooltipField: 'receiveClient' },
|
|
3571
|
-
// { headerName: 'Principle ReceiveClient (If Applicable)', field: 'principleReceiveClient', flex: 1.2, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 170, tooltipField: 'principleReceiveClient' },
|
|
3572
|
-
// { headerName: 'ReceiveCcy', field: 'receiveCurrency', flex: 0.8, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 80, tooltipField: 'receiveCurrency' },
|
|
3573
|
-
// { headerName: 'AmountPaid', field: 'amountPaid', flex: 1.2, valueFormatter: this.formatNumber, cellClass: 'ag-right-aligned-cell compact-cell', minWidth: 100, tooltipValueGetter: (params) => this.formatNumber(params) },
|
|
3574
|
-
// { headerName: 'SendCcy', field: 'sendCurrency', flex: 0.8, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 80, tooltipField: 'sendCurrency' },
|
|
3575
|
-
// { headerName: 'ServiceFee', field: 'serviceFee', flex: 1.2, valueFormatter: this.formatNumber, cellClass: 'ag-right-aligned-cell compact-cell', minWidth: 90, tooltipValueGetter: (params) => this.formatNumber(params) },
|
|
3576
|
-
// { headerName: 'Tax', field: 'tax', flex: 1.2, valueFormatter: this.formatNumber, cellClass: 'ag-right-aligned-cell compact-cell', minWidth: 70, tooltipValueGetter: (params) => this.formatNumber(params) },
|
|
3577
|
-
// { headerName: 'PrincipleSend Amount', field: 'principleSendAmount', flex: 1.2, valueFormatter: this.formatNumber, cellClass: 'ag-right-aligned-cell compact-cell', minWidth: 130, tooltipValueGetter: (params) => this.formatNumber(params) },
|
|
3578
|
-
// { headerName: 'Transaction Status', field: 'transactionStatus', flex: 1.2, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 120, tooltipField: 'transactionStatus' },
|
|
3579
|
-
// { headerName: 'SettlementCcy', field: 'settlementCurrency', flex: 0.8, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 100, tooltipField: 'settlementCurrency' },
|
|
3580
|
-
// { headerName: 'ClientSettl (in SCcy)', field: 'clientSettlementInSCcy', flex: 1.2, valueFormatter: this.formatNumber, cellClass: 'ag-right-aligned-cell compact-cell', minWidth: 140, tooltipValueGetter: (params) => this.formatNumber(params) },
|
|
3581
|
-
// { headerName: 'ClientSettl (in USD)', field: 'clientSettlementInUSD', flex: 1.2, valueFormatter: this.formatNumber, cellClass: 'ag-right-aligned-cell compact-cell', minWidth: 140, tooltipValueGetter: (params) => this.formatNumber(params) },
|
|
3582
|
-
// { headerName: 'ShareType', field: 'shareType', flex: 1.2, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 100, tooltipField: 'shareType' },
|
|
3583
|
-
// { headerName: 'ShareValue', field: 'shareValue', flex: 1.2, valueFormatter: this.formatNumber, cellClass: 'ag-right-aligned-cell compact-cell', minWidth: 100, tooltipValueGetter: (params) => this.formatNumber(params) },
|
|
3584
|
-
// { headerName: 'Send/Receive FeeCcy', field: 'sendReceiveFeeCcy', flex: 1.2, cellClass: 'ag-left-cols-cell compact-cell', minWidth: 150, tooltipField: 'sendReceiveFeeCcy' },
|
|
3585
|
-
// { headerName: 'ShareAmt (in USD)', field: 'shareAmountInUSD', flex: 1.2, valueFormatter: this.formatNumber, cellClass: 'ag-right-aligned-cell compact-cell', minWidth: 130, tooltipValueGetter: (params) => this.formatNumber(params) },
|
|
3586
|
-
// { headerName: 'Settlement Rate', field: 'settlementRate', flex: 1.2, valueFormatter: this.formatNumber, cellClass: 'ag-right-aligned-cell compact-cell', minWidth: 130, tooltipValueGetter: (params) => this.formatNumber(params) },
|
|
3587
|
-
// ];
|
|
3588
3552
|
this.columnDefs = [
|
|
3589
3553
|
{ headerName: 'BusinessDate', field: 'businessDate', tooltipField: 'businessDate' },
|
|
3590
3554
|
{ headerName: 'TxnDate&Time', field: 'transactionDateAndTime', tooltipField: 'transactionDateAndTime', minWidth: 110, },
|
|
@@ -3615,7 +3579,7 @@ class AccountingReportComponent {
|
|
|
3615
3579
|
}
|
|
3616
3580
|
getAccountingReport(request) {
|
|
3617
3581
|
this.accountingReportModel = undefined;
|
|
3618
|
-
const finalReq = request
|
|
3582
|
+
const finalReq = request;
|
|
3619
3583
|
this.reportService.getAccountingReport(finalReq).subscribe(data => {
|
|
3620
3584
|
this.accountingReportModel = data;
|
|
3621
3585
|
this.rowData = this.accountingReportModel.accountingReportEntriesList.map(entry => {
|
|
@@ -3636,7 +3600,6 @@ class AccountingReportComponent {
|
|
|
3636
3600
|
'Company': "Xpress Money",
|
|
3637
3601
|
'Report Period': `${this.reportPeriod}`,
|
|
3638
3602
|
};
|
|
3639
|
-
// console.log(data);
|
|
3640
3603
|
console.log(this.accountingReportModel);
|
|
3641
3604
|
console.log(this.rowData);
|
|
3642
3605
|
}, error => {
|
|
@@ -3680,9 +3643,6 @@ class AccountingReportComponent {
|
|
|
3680
3643
|
this.rowData = formattedData;
|
|
3681
3644
|
}
|
|
3682
3645
|
}
|
|
3683
|
-
// public formatDate(params: any): string {
|
|
3684
|
-
// return formatDate(new Date(params.value), 'dd/MM/yyyy', 'en-US');
|
|
3685
|
-
// }
|
|
3686
3646
|
onGridReady(params) {
|
|
3687
3647
|
this.gridApi = params.api;
|
|
3688
3648
|
this.gridColumnApi = params.columnApi;
|