feat: adjustment report
parent
41f4773df6
commit
b1bc05fcb9
|
@ -1,4 +1,6 @@
|
||||||
import { ReportConfigEntity } from '../../entities/report-config.entity';
|
import { ReportConfigEntity } from '../../entities/report-config.entity';
|
||||||
import SampleReport from './configs/sample.report';
|
import SampleReport from './configs/sample.report';
|
||||||
|
|
||||||
export const TenantReportConfig: ReportConfigEntity[] = [SampleReport];
|
export const TenantReportConfig: ReportConfigEntity[] = [
|
||||||
|
// SampleReport
|
||||||
|
];
|
||||||
|
|
|
@ -1,5 +1,13 @@
|
||||||
import { DATA_FORMAT, DATA_TYPE, REPORT_GROUP } from '../../../constant';
|
import { TransactionType } from 'src/modules/transaction/transaction/constants';
|
||||||
|
import {
|
||||||
|
DATA_FORMAT,
|
||||||
|
DATA_TYPE,
|
||||||
|
FILTER_FIELD_TYPE,
|
||||||
|
FILTER_TYPE,
|
||||||
|
REPORT_GROUP,
|
||||||
|
} from '../../../constant';
|
||||||
import { ReportConfigEntity } from '../../../entities/report-config.entity';
|
import { ReportConfigEntity } from '../../../entities/report-config.entity';
|
||||||
|
import { STATUS } from 'src/core/strings/constants/base.constants';
|
||||||
|
|
||||||
export default <ReportConfigEntity>{
|
export default <ReportConfigEntity>{
|
||||||
group_name: REPORT_GROUP.transaction_report,
|
group_name: REPORT_GROUP.transaction_report,
|
||||||
|
@ -156,5 +164,30 @@ export default <ReportConfigEntity>{
|
||||||
format: DATA_FORMAT.DATE_EPOCH,
|
format: DATA_FORMAT.DATE_EPOCH,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
filter_configs: [],
|
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,
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,11 @@
|
||||||
import { DATA_FORMAT, DATA_TYPE, REPORT_GROUP } from '../../../constant';
|
import { STATUS } from 'src/core/strings/constants/base.constants';
|
||||||
|
import {
|
||||||
|
DATA_FORMAT,
|
||||||
|
DATA_TYPE,
|
||||||
|
FILTER_FIELD_TYPE,
|
||||||
|
FILTER_TYPE,
|
||||||
|
REPORT_GROUP,
|
||||||
|
} from '../../../constant';
|
||||||
import { ReportConfigEntity } from '../../../entities/report-config.entity';
|
import { ReportConfigEntity } from '../../../entities/report-config.entity';
|
||||||
|
|
||||||
export default <ReportConfigEntity>{
|
export default <ReportConfigEntity>{
|
||||||
|
@ -131,5 +138,19 @@ export default <ReportConfigEntity>{
|
||||||
format: DATA_FORMAT.DATE_EPOCH,
|
format: DATA_FORMAT.DATE_EPOCH,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
filter_configs: [],
|
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,
|
||||||
|
],
|
||||||
|
},
|
||||||
|
],
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,13 +11,13 @@ import CashierLogReport from './configs/cashier-log';
|
||||||
import CashWithdrawalsReport from './configs/cash-withdrawals';
|
import CashWithdrawalsReport from './configs/cash-withdrawals';
|
||||||
|
|
||||||
export const TransactionReportConfig: ReportConfigEntity[] = [
|
export const TransactionReportConfig: ReportConfigEntity[] = [
|
||||||
IncomeReport,
|
// IncomeReport,
|
||||||
RevenuePerItemReport,
|
// RevenuePerItemReport,
|
||||||
SalesQtyPerItemReport,
|
// SalesQtyPerItemReport,
|
||||||
VisitorsPerRideReport,
|
// VisitorsPerRideReport,
|
||||||
TimePerRideReport,
|
// TimePerRideReport,
|
||||||
BookingReport,
|
BookingReport,
|
||||||
RefundsReport,
|
RefundsReport,
|
||||||
CashierLogReport,
|
// CashierLogReport,
|
||||||
CashWithdrawalsReport,
|
// CashWithdrawalsReport,
|
||||||
];
|
];
|
||||||
|
|
Loading…
Reference in New Issue