diff options
Diffstat (limited to 'src/services.js')
-rw-r--r-- | src/services.js | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/services.js b/src/services.js index 2e219ed..a21c5b9 100644 --- a/src/services.js +++ b/src/services.js @@ -58,6 +58,21 @@ const services: ServiceParams[] = [ records: [], }, }, + { + route: 'transfers', + name: 'Переводы', + nameSingular: 'Перевод', + tableFields: [ + { key: 'date', label: 'Дата', transform: date => new Date(date).toLocaleDateString() }, + { key: 'contractor.name', label: 'Контрагент' }, + { key: 'operation', label: 'Операция', transform: op => operationNames[op] }, + { key: 'amount', label: 'Сумма' }, + ], + default: { + operation: 'in', + records: [], + }, + }, ]; export default services; |