Changes in Document Creation, Calendar, Notifications, Settings
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user