summaryrefslogtreecommitdiff
path: root/src/services/transfers/index.ts
diff options
context:
space:
mode:
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: 'Сумма' },