From a2d4d8977684427eb921f5d821bce32b6efb6c48 Mon Sep 17 00:00:00 2001 From: Simon Giesel Date: Tue, 11 Jul 2023 13:38:58 +0200 Subject: [PATCH] feat(core): add company bank accounts --- server/pb_schema.json | 64 +++++++++++++ webapp/src/components/views/ViewBank.vue | 117 ++++++++++++++--------- webapp/src/services/bank.service.ts | 28 +++++- webapp/src/services/company.service.ts | 3 + webapp/src/types/pocketbase.types.ts | 11 +++ 5 files changed, 178 insertions(+), 45 deletions(-) diff --git a/server/pb_schema.json b/server/pb_schema.json index 936a329..400d797 100644 --- a/server/pb_schema.json +++ b/server/pb_schema.json @@ -300,6 +300,18 @@ "type": "auth", "system": false, "schema": [ + { + "id": "h5ogbj93", + "name": "accountNumber", + "type": "text", + "system": false, + "required": false, + "options": { + "min": null, + "max": null, + "pattern": "" + } + }, { "id": "cvcgnf4x", "name": "name", @@ -329,5 +341,57 @@ "onlyEmailDomains": null, "requireEmail": false } + }, + { + "id": "5msnfxat1sc2c1r", + "name": "companyTransactions", + "type": "base", + "system": false, + "schema": [ + { + "id": "7rnyupog", + "name": "account", + "type": "relation", + "system": false, + "required": true, + "options": { + "collectionId": "s854d2w72fvyl54", + "cascadeDelete": false, + "minSelect": null, + "maxSelect": 1, + "displayFields": [] + } + }, + { + "id": "ruby9fp9", + "name": "label", + "type": "text", + "system": false, + "required": true, + "options": { + "min": null, + "max": null, + "pattern": "" + } + }, + { + "id": "4hiu46ib", + "name": "amount", + "type": "number", + "system": false, + "required": false, + "options": { + "min": null, + "max": null + } + } + ], + "indexes": [], + "listRule": "", + "viewRule": "", + "createRule": "", + "updateRule": null, + "deleteRule": null, + "options": {} } ] \ No newline at end of file diff --git a/webapp/src/components/views/ViewBank.vue b/webapp/src/components/views/ViewBank.vue index 920c437..fac316d 100644 --- a/webapp/src/components/views/ViewBank.vue +++ b/webapp/src/components/views/ViewBank.vue @@ -1,11 +1,22 @@