Added HistoryDisplay to IncomingInvoices
This commit is contained in:
@@ -30,6 +30,10 @@ const historyItems = computed(() => {
|
||||
items = dataStore.historyItems.filter(i => i.project === elementId)
|
||||
} else if(type === "plant") {
|
||||
items = dataStore.historyItems.filter(i => i.plant === elementId)
|
||||
} else if(type === "incomingInvoice") {
|
||||
items = dataStore.historyItems.filter(i => i.incomingInvoice === elementId)
|
||||
} else if(type === "document") {
|
||||
items = dataStore.historyItems.filter(i => i.document === elementId)
|
||||
}
|
||||
|
||||
return items.reverse()
|
||||
@@ -51,6 +55,10 @@ const addHistoryItem = async () => {
|
||||
addHistoryItemData.value.project = elementId
|
||||
} else if(type === "plant") {
|
||||
addHistoryItemData.value.plant = elementId
|
||||
} else if(type === "incomingInvoice") {
|
||||
addHistoryItemData.value.incomingInvoice = elementId
|
||||
} else if(type === "document") {
|
||||
addHistoryItemData.value.document = elementId
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user