diff --git a/server/pb_schema.json b/server/pb_schema.json
index 9e46f46..b76175b 100644
--- a/server/pb_schema.json
+++ b/server/pb_schema.json
@@ -54,119 +54,6 @@
"deleteRule": null,
"options": {}
},
- {
- "id": "74ftooxenpeq14b",
- "name": "accounts",
- "type": "base",
- "system": false,
- "schema": [
- {
- "id": "as1gvc1r",
- "name": "accountNumber",
- "type": "text",
- "system": false,
- "required": false,
- "options": {
- "min": null,
- "max": null,
- "pattern": ""
- }
- },
- {
- "id": "vxeq20lk",
- "name": "firstName",
- "type": "text",
- "system": false,
- "required": true,
- "options": {
- "min": null,
- "max": null,
- "pattern": ""
- }
- },
- {
- "id": "bsinpdk7",
- "name": "lastName",
- "type": "text",
- "system": false,
- "required": true,
- "options": {
- "min": null,
- "max": null,
- "pattern": ""
- }
- },
- {
- "id": "4lw6gmtc",
- "name": "grade",
- "type": "text",
- "system": false,
- "required": true,
- "options": {
- "min": null,
- "max": null,
- "pattern": ""
- }
- },
- {
- "id": "syfivtki",
- "name": "lastCheckIn",
- "type": "date",
- "system": false,
- "required": false,
- "options": {
- "min": "",
- "max": ""
- }
- },
- {
- "id": "gwrzizpu",
- "name": "company",
- "type": "relation",
- "system": false,
- "required": false,
- "options": {
- "collectionId": "s854d2w72fvyl54",
- "cascadeDelete": false,
- "minSelect": null,
- "maxSelect": 1,
- "displayFields": []
- }
- },
- {
- "id": "rtvjzpxw",
- "name": "shift",
- "type": "text",
- "system": false,
- "required": true,
- "options": {
- "min": null,
- "max": null,
- "pattern": ""
- }
- },
- {
- "id": "ma5ckyk1",
- "name": "wageFactor",
- "type": "number",
- "system": false,
- "required": true,
- "options": {
- "min": 1,
- "max": null
- }
- }
- ],
- "indexes": [
- "CREATE INDEX `idx_mPdvrAQ` ON `accounts` (`accountNumber`)"
- ],
- "listRule": "",
- "viewRule": null,
- "createRule": null,
- "updateRule": "(@request.data.id = null && @request.data.accountNumber = null && @request.data.firstName = null && @request.data.lastName = null && @request.data.grade = null && @request.data.created = null && @request.data.updated = null && @request.data.company = null && @request.data.shift = null && @request.data.wageFactor = null) || (@request.data.id = null && @request.data.accountNumber = null && @request.data.firstName = null && @request.data.lastName = null && @request.data.created = null && @request.data.updated = null && @request.data.company = null && @request.auth.id = company.id)",
- "deleteRule": null,
- "options": {}
- },
{
"id": "5msnfxat1sc2c1r",
"name": "companyTransactions",
@@ -219,79 +106,6 @@
"deleteRule": null,
"options": {}
},
- {
- "id": "t4gewf713jqhz3i",
- "name": "settings",
- "type": "base",
- "system": false,
- "schema": [
- {
- "id": "z7pmr7wm",
- "name": "minWage",
- "type": "number",
- "system": false,
- "required": true,
- "options": {
- "min": 0,
- "max": null
- }
- },
- {
- "id": "7wzv9qum",
- "name": "incomeTax",
- "type": "number",
- "system": false,
- "required": true,
- "options": {
- "min": 0,
- "max": null
- }
- },
- {
- "id": "3pgjcfai",
- "name": "incomeTaxRecipient",
- "type": "relation",
- "system": false,
- "required": true,
- "options": {
- "collectionId": "s854d2w72fvyl54",
- "cascadeDelete": false,
- "minSelect": null,
- "maxSelect": 1,
- "displayFields": []
- }
- },
- {
- "id": "dawtvakx",
- "name": "maxWageFactor",
- "type": "number",
- "system": false,
- "required": true,
- "options": {
- "min": 0,
- "max": null
- }
- },
- {
- "id": "ftzmu1na",
- "name": "radioUrl",
- "type": "url",
- "system": false,
- "required": true,
- "options": {
- "exceptDomains": [],
- "onlyDomains": []
- }
- }
- ],
- "indexes": [],
- "listRule": "",
- "viewRule": "",
- "createRule": null,
- "updateRule": null,
- "deleteRule": null,
- "options": {}
- },
{
"id": "s854d2w72fvyl54",
"name": "companies",
@@ -431,5 +245,191 @@
"options": {
"query": "SELECT\n a.id AS id,\n a.accountNumber AS accountNumber,\n (a.firstName || ' ' || a.lastName) AS name,\n a.grade AS grade,\n a.lastCheckIn AS lastCheckIn,\n SUM(t.amount) AS balance\nFROM\n accounts AS a\nLEFT JOIN\n transactions AS t\nON\n a.id = t.account\nGROUP BY\n a.id\nORDER BY\n a.grade, a.lastName"
}
+ },
+ {
+ "id": "t4gewf713jqhz3i",
+ "name": "settings",
+ "type": "base",
+ "system": false,
+ "schema": [
+ {
+ "id": "z7pmr7wm",
+ "name": "minWage",
+ "type": "number",
+ "system": false,
+ "required": true,
+ "options": {
+ "min": 0,
+ "max": null
+ }
+ },
+ {
+ "id": "7wzv9qum",
+ "name": "incomeTax",
+ "type": "number",
+ "system": false,
+ "required": true,
+ "options": {
+ "min": 0,
+ "max": null
+ }
+ },
+ {
+ "id": "3pgjcfai",
+ "name": "incomeTaxRecipient",
+ "type": "relation",
+ "system": false,
+ "required": true,
+ "options": {
+ "collectionId": "s854d2w72fvyl54",
+ "cascadeDelete": false,
+ "minSelect": null,
+ "maxSelect": 1,
+ "displayFields": []
+ }
+ },
+ {
+ "id": "dawtvakx",
+ "name": "maxWage",
+ "type": "number",
+ "system": false,
+ "required": true,
+ "options": {
+ "min": 0,
+ "max": null
+ }
+ },
+ {
+ "id": "ftzmu1na",
+ "name": "radioUrl",
+ "type": "url",
+ "system": false,
+ "required": true,
+ "options": {
+ "exceptDomains": [],
+ "onlyDomains": []
+ }
+ }
+ ],
+ "indexes": [],
+ "listRule": "",
+ "viewRule": "",
+ "createRule": null,
+ "updateRule": null,
+ "deleteRule": null,
+ "options": {}
+ },
+ {
+ "id": "74ftooxenpeq14b",
+ "name": "accounts",
+ "type": "base",
+ "system": false,
+ "schema": [
+ {
+ "id": "as1gvc1r",
+ "name": "accountNumber",
+ "type": "text",
+ "system": false,
+ "required": false,
+ "options": {
+ "min": null,
+ "max": null,
+ "pattern": ""
+ }
+ },
+ {
+ "id": "vxeq20lk",
+ "name": "firstName",
+ "type": "text",
+ "system": false,
+ "required": true,
+ "options": {
+ "min": null,
+ "max": null,
+ "pattern": ""
+ }
+ },
+ {
+ "id": "bsinpdk7",
+ "name": "lastName",
+ "type": "text",
+ "system": false,
+ "required": true,
+ "options": {
+ "min": null,
+ "max": null,
+ "pattern": ""
+ }
+ },
+ {
+ "id": "4lw6gmtc",
+ "name": "grade",
+ "type": "text",
+ "system": false,
+ "required": true,
+ "options": {
+ "min": null,
+ "max": null,
+ "pattern": ""
+ }
+ },
+ {
+ "id": "syfivtki",
+ "name": "lastCheckIn",
+ "type": "date",
+ "system": false,
+ "required": false,
+ "options": {
+ "min": "",
+ "max": ""
+ }
+ },
+ {
+ "id": "gwrzizpu",
+ "name": "company",
+ "type": "relation",
+ "system": false,
+ "required": false,
+ "options": {
+ "collectionId": "s854d2w72fvyl54",
+ "cascadeDelete": false,
+ "minSelect": null,
+ "maxSelect": 1,
+ "displayFields": []
+ }
+ },
+ {
+ "id": "rtvjzpxw",
+ "name": "shift",
+ "type": "text",
+ "system": false,
+ "required": true,
+ "options": {
+ "min": null,
+ "max": null,
+ "pattern": ""
+ }
+ },
+ {
+ "id": "ggx1gyeq",
+ "name": "wage",
+ "type": "number",
+ "system": false,
+ "required": false,
+ "options": {
+ "min": null,
+ "max": null
+ }
+ }
+ ],
+ "indexes": [
+ "CREATE INDEX `idx_mPdvrAQ` ON `accounts` (`accountNumber`)"
+ ],
+ "listRule": "",
+ "viewRule": null,
+ "createRule": null,
+ "updateRule": "(@request.data.id = null && @request.data.accountNumber = null && @request.data.firstName = null && @request.data.lastName = null && @request.data.grade = null && @request.data.created = null && @request.data.updated = null && @request.data.company = null && @request.data.shift = null && @request.data.wage = null) || (@request.data.id = null && @request.data.accountNumber = null && @request.data.firstName = null && @request.data.lastName = null && @request.data.created = null && @request.data.updated = null && @request.data.company = null && @request.auth.id = company.id)",
+ "deleteRule": null,
+ "options": {}
}
]
\ No newline at end of file
diff --git a/webapp/package.json b/webapp/package.json
index 0717015..08f4c93 100644
--- a/webapp/package.json
+++ b/webapp/package.json
@@ -2,7 +2,7 @@
"name": "hgoe-sas",
"private": true,
"author": "Simon Giesel",
- "version": "1.1.0",
+ "version": "1.2.0",
"scripts": {
"dev": "vite",
"build": "vue-tsc --noEmit && vite build",
diff --git a/webapp/src/components/atoms/AtomCurrencyInput.vue b/webapp/src/components/atoms/AtomCurrencyInput.vue
index ef6f57d..b5ab8df 100644
--- a/webapp/src/components/atoms/AtomCurrencyInput.vue
+++ b/webapp/src/components/atoms/AtomCurrencyInput.vue
@@ -1,24 +1,61 @@