Merge pull request 'feat: fix filter report' (#97) from feat/adjustment-report into development
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
Reviewed-on: #97pull/98/head^2^2
commit
91370940d7
|
@ -26,6 +26,9 @@ export default <ReportConfigEntity>{
|
||||||
values: [PosLogType.cash_witdrawal],
|
values: [PosLogType.cash_witdrawal],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
whereCondition(filterModel) {
|
||||||
|
return [`main.created_at is not null`];
|
||||||
|
},
|
||||||
column_configs: [
|
column_configs: [
|
||||||
{
|
{
|
||||||
column: 'main__date',
|
column: 'main__date',
|
||||||
|
@ -105,7 +108,4 @@ export default <ReportConfigEntity>{
|
||||||
filter_type: FILTER_TYPE.NUMBER_EQUAL,
|
filter_type: FILTER_TYPE.NUMBER_EQUAL,
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
whereCondition(filterModel) {
|
|
||||||
return [`main.created_at is not null`];
|
|
||||||
},
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -26,6 +26,9 @@ export default <ReportConfigEntity>{
|
||||||
values: [PosLogType.login, PosLogType.logout],
|
values: [PosLogType.login, PosLogType.logout],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
whereCondition(filterModel) {
|
||||||
|
return [`main.creator_name is not null`];
|
||||||
|
},
|
||||||
column_configs: [
|
column_configs: [
|
||||||
{
|
{
|
||||||
column: 'main__date',
|
column: 'main__date',
|
||||||
|
|
|
@ -37,6 +37,11 @@ export default <ReportConfigEntity>{
|
||||||
values: [false],
|
values: [false],
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
whereCondition(filterModel) {
|
||||||
|
return [
|
||||||
|
`main.discount_percentage is not null or main.discount_value is not null`,
|
||||||
|
];
|
||||||
|
},
|
||||||
defaultOrderBy: [],
|
defaultOrderBy: [],
|
||||||
lowLevelOrderBy: [],
|
lowLevelOrderBy: [],
|
||||||
filter_period_config: {
|
filter_period_config: {
|
||||||
|
@ -73,8 +78,8 @@ export default <ReportConfigEntity>{
|
||||||
format: DATA_FORMAT.TEXT,
|
format: DATA_FORMAT.TEXT,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
column: 'main__payment_total_profit',
|
column: 'main__payment_sub_total',
|
||||||
query: 'main.payment_total_profit',
|
query: 'main.payment_sub_total',
|
||||||
label: 'Total Transaksi',
|
label: 'Total Transaksi',
|
||||||
type: DATA_TYPE.MEASURE,
|
type: DATA_TYPE.MEASURE,
|
||||||
format: DATA_FORMAT.CURRENCY,
|
format: DATA_FORMAT.CURRENCY,
|
||||||
|
|
Loading…
Reference in New Issue