Changes in times and Dashboard

This commit is contained in:
2024-03-19 12:26:16 +01:00
parent edf1de189b
commit 66ee33cdde
6 changed files with 183 additions and 20 deletions

View File

@@ -853,6 +853,10 @@ export const useDataStore = defineStore('data', () => {
return workingtimes.value.filter(i => i.profile === profileId)
})
const getStartedWorkingTimes = computed(() => () => {
return workingtimes.value.filter(i => !i.end)
})
const getStockByProductId = computed(() => (productId) => {
let productMovements = movements.value.filter(movement => movement.productId === productId)
@@ -1254,6 +1258,7 @@ export const useDataStore = defineStore('data', () => {
getTextTemplatesByDocumentType,
getCreatedDocumentsByProject,
getWorkingTimesByProfileId,
getStartedWorkingTimes,
getStockByProductId,
getIncomingInvoicesByVehicleId,
getEventTypes,