This commit is contained in:
2024-03-18 20:50:20 +01:00
parent e4a41d9126
commit 6ef8573032
12 changed files with 527 additions and 1229 deletions

View File

@@ -1113,6 +1113,10 @@ export const useDataStore = defineStore('data', () => {
return inventoryitems.value.find(item => item.id === itemId)
})
const getBankAccountById = computed(() => (itemId) => {
return bankAccounts.value.find(item => item.id === itemId)
})
const getProjectById = computed(() => (itemId) => {
if(projects.value.find(i => i.id === itemId)) {
let project = projects.value.find(project => project.id === itemId)
@@ -1279,6 +1283,7 @@ export const useDataStore = defineStore('data', () => {
getPlantById,
getCreatedDocumentById,
getInventoryItemById,
getBankAccountById,
}