summaryrefslogtreecommitdiff
path: root/src/services.js
blob: 83fc42520864bcdc19e69c2f46c04788adecee90 (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
25
26
27
28
29
import ContractorForm from './containers/ContractorForm';
import ProductForm from './containers/ProductForm';
import { ServiceParams } from './containers/Service/ServiceContext';

const services: ServiceParams[] = [
  {
    route: 'products',
    name: 'Товары',
    nameSingular: 'Товар',
    tableFields: [
      { key: 'name', label: 'Название' },
      { key: 'price', label: 'Цена' },
    ],
    Form: ProductForm,
  },
  {
    route: 'contractors',
    name: 'Контрагенты',
    nameSingular: 'Контрагент',
    tableFields: [
      { key: 'vatId', label: 'УНП' },
      { key: 'name', label: 'Название' },
      { key: 'debt', label: 'Долг' },
    ],
    Form: ContractorForm,
  },
];

export default services;