From 1bf07892f2cd8007f48469c42fa9fcc84d5ef435 Mon Sep 17 00:00:00 2001 From: eug-vs Date: Sat, 17 Apr 2021 13:39:30 +0300 Subject: feat: correctly add filters from Service JSON --- src/services/transfers/index.ts | 1 + src/services/waybills/index.ts | 1 + 2 files changed, 2 insertions(+) (limited to 'src/services') diff --git a/src/services/transfers/index.ts b/src/services/transfers/index.ts index 1782103..3feb6e2 100644 --- a/src/services/transfers/index.ts +++ b/src/services/transfers/index.ts @@ -15,6 +15,7 @@ const service: ServiceParams = { { key: 'operation', label: 'Операция', transform: transformOperation }, { key: 'amount', label: 'Сумма' }, ], + filters: ['operation', 'contractor.name'], actions: [ { name: 'Загрузить выписку', diff --git a/src/services/waybills/index.ts b/src/services/waybills/index.ts index a26318b..ae1c8d3 100644 --- a/src/services/waybills/index.ts +++ b/src/services/waybills/index.ts @@ -14,6 +14,7 @@ const service: ServiceParams = { { key: 'total', label: 'Сумма' }, { key: 'contractor.name', label: 'Контрагент' }, ], + filters: ['status', 'operation', 'contractor.name'], default: { operation: 'in', records: [], -- cgit v1.2.3