From 64d812bef17639d2fc8650089845cadfd7dbcc82 Mon Sep 17 00:00:00 2001 From: Firman Ramdhani <33869609+firmanramdhani@users.noreply.github.com> Date: Fri, 9 Aug 2024 17:21:12 +0700 Subject: [PATCH] feat(SPG-267): report cash withdrawals --- .../transaction-report/configs/cash-withdrawals.ts | 12 ++++++++++++ .../shared/configs/transaction-report/index.ts | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/src/modules/reports/shared/configs/transaction-report/configs/cash-withdrawals.ts b/src/modules/reports/shared/configs/transaction-report/configs/cash-withdrawals.ts index 39391d5..f29b020 100644 --- a/src/modules/reports/shared/configs/transaction-report/configs/cash-withdrawals.ts +++ b/src/modules/reports/shared/configs/transaction-report/configs/cash-withdrawals.ts @@ -73,6 +73,12 @@ export default { }, ], filter_configs: [ + { + filed_label: 'Tanggal', + filter_column: 'main__date', + field_type: FILTER_FIELD_TYPE.date_range_picker, + filter_type: FILTER_TYPE.DATE_IN_RANGE_EPOCH, + }, { filed_label: 'Nama Penarik', filter_column: 'main__drawn_by_name', @@ -85,5 +91,11 @@ export default { field_type: FILTER_FIELD_TYPE.input_tag, filter_type: FILTER_TYPE.TEXT_MULTIPLE_CONTAINS, }, + { + filed_label: 'No. PoS', + filter_column: 'main__pos_number', + field_type: FILTER_FIELD_TYPE.input_tag, + filter_type: FILTER_TYPE.TEXT_MULTIPLE_CONTAINS, + }, ], }; diff --git a/src/modules/reports/shared/configs/transaction-report/index.ts b/src/modules/reports/shared/configs/transaction-report/index.ts index 389493c..6b2b880 100644 --- a/src/modules/reports/shared/configs/transaction-report/index.ts +++ b/src/modules/reports/shared/configs/transaction-report/index.ts @@ -23,5 +23,5 @@ export const TransactionReportConfig: ReportConfigEntity[] = [ BookingReport, RefundsReport, CashierLogReport, - // CashWithdrawalsReport, + CashWithdrawalsReport, ];