diff options
author | eug-vs <eug-vs@keemail.me> | 2021-04-17 14:55:08 +0300 |
---|---|---|
committer | eug-vs <eug-vs@keemail.me> | 2021-04-17 14:55:08 +0300 |
commit | e371759af6c218f18edc7a7dca8ba7b55cc367fb (patch) | |
tree | 1561efd44de6f015ef54edd66884e65463160aa8 /src/services/transfers/index.ts | |
parent | 1bf07892f2cd8007f48469c42fa9fcc84d5ef435 (diff) | |
download | commercel-ui-e371759af6c218f18edc7a7dca8ba7b55cc367fb.tar.gz |
feat: initialize filters based on query string
Diffstat (limited to 'src/services/transfers/index.ts')
-rw-r--r-- | src/services/transfers/index.ts | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/services/transfers/index.ts b/src/services/transfers/index.ts index 3feb6e2..de75d53 100644 --- a/src/services/transfers/index.ts +++ b/src/services/transfers/index.ts @@ -15,7 +15,10 @@ const service: ServiceParams<Transfer> = { { key: 'operation', label: 'Операция', transform: transformOperation }, { key: 'amount', label: 'Сумма' }, ], - filters: ['operation', 'contractor.name'], + filters: [ + { key: 'operation', label: 'Операция', transform: transformOperation }, + { key: 'contractor._id', label: 'Контрагент', as: 'contractor.name' }, + ], actions: [ { name: 'Загрузить выписку', |