Changes in times and Dashboard
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user