summaryrefslogtreecommitdiff
path: root/src/services/transfers/index.ts
diff options
context:
space:
mode:
authoreug-vs <eug-vs@keemail.me>2021-04-17 15:21:08 +0300
committereug-vs <eug-vs@keemail.me>2021-04-17 15:21:08 +0300
commitcfdce1fb1179cfe4f15fc26676f064ca10fb9ce4 (patch)
treea87cb7ed78dc2df79885b38c124cf061cdd351b5 /src/services/transfers/index.ts
parentf3a5275522c90a9ddc961b994a8c9adc041d0f3d (diff)
downloadcommercel-ui-cfdce1fb1179cfe4f15fc26676f064ca10fb9ce4.tar.gz
refactor: move transformDate to transforms
Diffstat (limited to 'src/services/transfers/index.ts')
-rw-r--r--src/services/transfers/index.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/services/transfers/index.ts b/src/services/transfers/index.ts
index ece8dae..2a0cad1 100644
--- a/src/services/transfers/index.ts
+++ b/src/services/transfers/index.ts
@@ -1,6 +1,6 @@
import Form from './TransferForm';
import UploadPage from './TransfersUpload';
-import { transformOperation } from '../transforms';
+import { transformDate, transformOperation } from '../transforms';
import { ServiceParams } from '../../lib/ServiceContext';
import { Transfer } from '../types';
@@ -10,7 +10,7 @@ const service: ServiceParams<Transfer> = {
name: 'Переводы',
nameSingular: 'Перевод',
tableFields: [
- { key: 'date', label: 'Дата', transform: date => new Date(date).toLocaleDateString() },
+ { key: 'date', label: 'Дата', transform: transformDate },
{ key: 'contractor.name', label: 'Контрагент' },
{ key: 'operation', label: 'Операция', transform: transformOperation },
{ key: 'amount', label: 'Сумма' },