summaryrefslogtreecommitdiff
path: root/src/services/waybills/index.ts
blob: 4e50f54c41ed55eca0aa31f75b7489436bbab5a4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import Form from './WaybillForm';
import Panel from './WaybillPanel';
import { transformOperation, transformStatus } from '../transforms';
import { ServiceParams } from '../../containers/Service/ServiceContext';

const service: ServiceParams = {
  route: 'waybills',
  name: 'Накладные',
  nameSingular: 'Накладная',
  tableFields: [
    { key: 'status', label: 'Статус', transform: transformStatus },
    { key: 'operation', label: 'Операция', transform: transformOperation },
    { key: 'total', label: 'Сумма' },
    { key: 'contractor.name', label: 'Контрагент' },
  ],
  default: {
    operation: 'in',
    records: [],
  },
  Form,
  Panel,
};

export default service;