summaryrefslogtreecommitdiff
path: root/src/services/account/index.ts
blob: d2a91bd042ca1d560f946a1677f803d9cf1f9476 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { ServiceParams } from '../../lib/ServiceContext';
import { transformDate } from '../transforms';

const service: ServiceParams = {
  route: 'account',
  name: 'Расчётный счёт',
  tableFields: [
    { key: 'date', label: 'Дата', transform: transformDate },
    { key: 'amount', label: 'Сумма' },
  ],
  actions: [
    {
      name: 'Загрузить выписку',
      route: '/transfers/upload',
    },
  ],
  rowLink: item => `/transfers?date=${item.date}`,
};

export default service;