summaryrefslogtreecommitdiff
path: root/src/services/account/index.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/account/index.ts')
-rw-r--r--src/services/account/index.ts17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/services/account/index.ts b/src/services/account/index.ts
new file mode 100644
index 0000000..5b5eb10
--- /dev/null
+++ b/src/services/account/index.ts
@@ -0,0 +1,17 @@
+const service = {
+ route: 'account',
+ name: 'Рассчётный счёт',
+ tableFields: [
+ { key: 'date', label: 'Дата', transform: (date: string) => new Date(date).toLocaleDateString() },
+ { key: 'amount', label: 'Сумма' },
+ ],
+ actions: [
+ {
+ name: 'Загрузить выписку',
+ route: '/transfers/upload',
+ },
+ ],
+ rowLink: (item: any) => `/transfers?date=${item.date}`,
+};
+
+export default service;