Changes in Document Creation, Calendar, Notifications, Settings

This commit is contained in:
2024-03-04 20:26:30 +01:00
parent 8e69cda09b
commit 8f444bd917
12 changed files with 315 additions and 71 deletions

View File

@@ -98,6 +98,10 @@ export const useDataStore = defineStore('data', () => {
labelSingle: "Leistung",
redirect: true
},
events: {
label: "Termine",
labelSingle: "Termin"
},
}
const documentTypesForCreation = ref({
@@ -461,7 +465,7 @@ export const useDataStore = defineStore('data', () => {
} else if (data) {
const returnPath = data.path
documentsToInsert.push({...formData, path: returnPath})
documentsToInsert.push({...formData, path: returnPath, tenant: currentTenant.value})
}
console.log(data)
@@ -766,6 +770,10 @@ export const useDataStore = defineStore('data', () => {
return texttemplates.value.filter(i => i.documentType === documentType)
})
const getCreatedDocumentsByProject = computed(() => (project) => {
return createddocuments.value.filter(i => i.project === project)
})
const getStockByProductId = computed(() => (productId) => {
let productMovements = movements.value.filter(movement => movement.productId === productId)
@@ -1127,6 +1135,7 @@ export const useDataStore = defineStore('data', () => {
getMovementsBySpaceId,
getMessagesByChatId,
getTextTemplatesByDocumentType,
getCreatedDocumentsByProject,
getStockByProductId,
getIncomingInvoicesByVehicleId,
getEventTypes,