Restructured Workingtimes without date to start and end

Added Page to Edit Workingtimes
This commit is contained in:
2024-04-07 18:26:14 +02:00
parent 491cbf15b6
commit e0750e755f
5 changed files with 333 additions and 152 deletions

View File

@@ -106,6 +106,10 @@ export const useDataStore = defineStore('data', () => {
label: "Mitarbeiter",
labelSingle: "Mitarbeiter",
redirect: true
},
workingtimes: {
label: "Anwesenheiten",
labelSingle: "Anwesenheit"
}
}
@@ -1127,6 +1131,10 @@ export const useDataStore = defineStore('data', () => {
return events.value.find(item => item.id === itemId)
})
const getWorkingTimeById = computed(() => (itemId) => {
return workingtimes.value.find(item => item.id === itemId)
})
const getProjectById = computed(() => (itemId) => {
if(projects.value.find(i => i.id === itemId)) {
let project = projects.value.find(project => project.id === itemId)
@@ -1295,7 +1303,8 @@ export const useDataStore = defineStore('data', () => {
getCreatedDocumentById,
getInventoryItemById,
getBankAccountById,
getEventById
getEventById,
getWorkingTimeById
}