summaryrefslogtreecommitdiff
path: root/src/services/waybills/index.ts
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-04-18 20:36:19 +0300
committereug-vs <eug-vs@keemail.me>2021-04-18 20:36:19 +0300
commit6627ec88b2a02b522511b85eb38d21225098cfad (patch)
tree25a92e3c92a6a08bf513af29a236e4cbecbe1e4b /src/services/waybills/index.ts
parentc222bc06f9c123d3e2fa4a428d74032f54887485 (diff)
downloadcommercel-ui-6627ec88b2a02b522511b85eb38d21225098cfad.tar.gz
feat: support date filters
Diffstat (limited to 'src/services/waybills/index.ts')
-rw-r--r--src/services/waybills/index.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/services/waybills/index.ts b/src/services/waybills/index.ts
index 0b24876..b623da6 100644
--- a/src/services/waybills/index.ts
+++ b/src/services/waybills/index.ts
@@ -10,11 +10,13 @@ const service: ServiceParams<Waybill> = {
nameSingular: 'Накладная',
tableFields: [
{ key: 'status', label: 'Статус', transform: transformStatus },
+ { key: 'date', label: 'Дата' },
{ key: 'operation', label: 'Операция', transform: transformOperation },
{ key: 'total', label: 'Сумма' },
{ key: 'contractor.name', label: 'Контрагент' },
],
filters: [
+ { key: 'date', label: 'Дата', date: true },
{ key: 'status', label: 'Статус', transform: transformStatus },
{ key: 'operation', label: 'Операция', transform: transformOperation },
{ key: 'contractorId', label: 'Контрагент', as: 'contractor.name' },