Rebuild Inventory
Added Advance Invoices
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user