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

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

export default service;