Compare commits

..

No commits in common. "2f9c96bdec2ef7e8b07910541f6f7511e795ad59" and "000c3f1800d26c73a68771084db6a60fbe227f0c" have entirely different histories.

4 changed files with 12 additions and 68 deletions

View File

@ -1,6 +1,4 @@
import { ReportConfigEntity } from '../../entities/report-config.entity';
import SampleReport from './configs/sample.report';
export const TenantReportConfig: ReportConfigEntity[] = [
// SampleReport
];
export const TenantReportConfig: ReportConfigEntity[] = [SampleReport];

View File

@ -1,13 +1,5 @@
import { TransactionType } from 'src/modules/transaction/transaction/constants';
import {
DATA_FORMAT,
DATA_TYPE,
FILTER_FIELD_TYPE,
FILTER_TYPE,
REPORT_GROUP,
} from '../../../constant';
import { DATA_FORMAT, DATA_TYPE, REPORT_GROUP } from '../../../constant';
import { ReportConfigEntity } from '../../../entities/report-config.entity';
import { STATUS } from 'src/core/strings/constants/base.constants';
export default <ReportConfigEntity>{
group_name: REPORT_GROUP.transaction_report,
@ -164,30 +156,5 @@ export default <ReportConfigEntity>{
format: DATA_FORMAT.DATE_EPOCH,
},
],
filter_configs: [
{
filed_label: 'Status',
filter_column: 'main__status',
field_type: FILTER_FIELD_TYPE.select,
filter_type: FILTER_TYPE.TEXT_IN_MEMBER,
select_custom_options: [
STATUS.DRAFT,
STATUS.WAITING,
STATUS.PENDING,
STATUS.SETTLED,
STATUS.REJECTED,
],
},
{
filed_label: 'Sumber',
filter_column: 'main__type',
field_type: FILTER_FIELD_TYPE.select,
filter_type: FILTER_TYPE.TEXT_IN_MEMBER,
select_custom_options: [
TransactionType.ADMIN,
TransactionType.COUNTER,
TransactionType.ONLINE,
],
},
],
filter_configs: [],
};

View File

@ -1,11 +1,4 @@
import { STATUS } from 'src/core/strings/constants/base.constants';
import {
DATA_FORMAT,
DATA_TYPE,
FILTER_FIELD_TYPE,
FILTER_TYPE,
REPORT_GROUP,
} from '../../../constant';
import { DATA_FORMAT, DATA_TYPE, REPORT_GROUP } from '../../../constant';
import { ReportConfigEntity } from '../../../entities/report-config.entity';
export default <ReportConfigEntity>{
@ -138,19 +131,5 @@ export default <ReportConfigEntity>{
format: DATA_FORMAT.DATE_EPOCH,
},
],
filter_configs: [
{
filed_label: 'Status',
filter_column: 'main__status',
field_type: FILTER_FIELD_TYPE.select,
filter_type: FILTER_TYPE.TEXT_IN_MEMBER,
select_custom_options: [
STATUS.DRAFT,
STATUS.WAITING,
STATUS.PENDING,
STATUS.SETTLED,
STATUS.REJECTED,
],
},
],
filter_configs: [],
};

View File

@ -11,13 +11,13 @@ import CashierLogReport from './configs/cashier-log';
import CashWithdrawalsReport from './configs/cash-withdrawals';
export const TransactionReportConfig: ReportConfigEntity[] = [
// IncomeReport,
// RevenuePerItemReport,
// SalesQtyPerItemReport,
// VisitorsPerRideReport,
// TimePerRideReport,
IncomeReport,
RevenuePerItemReport,
SalesQtyPerItemReport,
VisitorsPerRideReport,
TimePerRideReport,
BookingReport,
RefundsReport,
// CashierLogReport,
// CashWithdrawalsReport,
CashierLogReport,
CashWithdrawalsReport,
];