This commit is contained in:
2024-03-07 11:26:18 +01:00
parent 5cbfbff4ac
commit 5783fb1f2e
3 changed files with 30 additions and 2 deletions

View File

@@ -43,6 +43,8 @@ const historyItems = computed(() => {
items = dataStore.historyItems.filter(i => i.inventoryitem === elementId)
} else if(type === "product") {
items = dataStore.historyItems.filter(i => i.product === elementId)
} else if(type === "profile") {
items = dataStore.historyItems.filter(i => i.profile === elementId)
}
return items
@@ -76,6 +78,8 @@ const addHistoryItem = async () => {
addHistoryItemData.value.inventoryitem = elementId
} else if(type === "product") {
addHistoryItemData.value.product = elementId
} else if(type === "profile") {
addHistoryItemData.value.profile = elementId
}