Changes
This commit is contained in:
@@ -786,6 +786,10 @@ export const useDataStore = defineStore('data', () => {
|
||||
return createddocuments.value.filter(i => i.project === project)
|
||||
})
|
||||
|
||||
const getWorkingTimesByProfileId = computed(() => (profileId) => {
|
||||
return workingtimes.value.filter(i => i.profile === profileId)
|
||||
})
|
||||
|
||||
const getStockByProductId = computed(() => (productId) => {
|
||||
let productMovements = movements.value.filter(movement => movement.productId === productId)
|
||||
|
||||
@@ -1123,6 +1127,7 @@ export const useDataStore = defineStore('data', () => {
|
||||
fetchInventoryItems,
|
||||
fetchChats,
|
||||
fetchMessages,
|
||||
fetchWorkingTimes,
|
||||
addHistoryItem,
|
||||
//Getters
|
||||
getOpenTasksCount,
|
||||
@@ -1148,6 +1153,7 @@ export const useDataStore = defineStore('data', () => {
|
||||
getMessagesByChatId,
|
||||
getTextTemplatesByDocumentType,
|
||||
getCreatedDocumentsByProject,
|
||||
getWorkingTimesByProfileId,
|
||||
getStockByProductId,
|
||||
getIncomingInvoicesByVehicleId,
|
||||
getEventTypes,
|
||||
|
||||
Reference in New Issue
Block a user