Rebuild Inventory

Added Advance Invoices
This commit is contained in:
2024-04-23 20:28:26 +02:00
parent 633d75b798
commit 1cbb8cbacf
6 changed files with 432 additions and 69 deletions

View File

@@ -45,10 +45,10 @@ const tabItems = [
},{
key: "events",
label: "Termine"
}/*,{
},{
key: "material",
label: "Material"
}*/
}
]
const timeTableRows = [
@@ -426,6 +426,23 @@ setupPage()
</UTable>
</div>
<div v-else-if="item.key === 'material'" class="space-y-3">
Auf das Projekt gebuchte Artikel:
<UTable
:rows="dataStore.getStocksByProjectId(currentItem.id)"
:columns="[{key:'productId',label:'Artikel'},{key:'stock',label:'Anzahl'}]"
@select="(i) => router.push(`/products/show/${i.productId}`)"
>
<template #productId-data="{row}">
{{dataStore.getProductById(row.productId).name}}
</template>
<template #stock-data="{row}">
{{row.stock}} {{dataStore.units.find(i => i.id === dataStore.getProductById(row.productId).unit).short}}
</template>
</UTable>
</div>
</UCard>
</template>