Rebuild Inventory
Added Advance Invoices
This commit is contained in:
@@ -17,7 +17,7 @@ const {vendors} = storeToRefs(useDataStore())
|
||||
const {fetchVendorInvoices} = useDataStore()
|
||||
|
||||
const availableDocuments = computed(() => {
|
||||
return dataStore.documents.filter(i => i.tags.includes('Eingangsrechnung' && dataStore.incominginvoices.filter(x => x.document === i).length === 0))
|
||||
return dataStore.documents.filter(i => i.tags.includes('Eingangsrechnung' /*&& dataStore.incominginvoices.filter(x => x.document === i).length === 0*/))
|
||||
})
|
||||
|
||||
|
||||
@@ -184,7 +184,7 @@ setupPage()
|
||||
</template>
|
||||
</UDashboardNavbar>
|
||||
<div v-if="!itemInfo.document">
|
||||
<div v-if="availableDocuments.length === 0" class="w-1/2 mx-auto text-center">
|
||||
<!-- <div v-if="availableDocuments.length === 0" class="w-1/2 mx-auto text-center">
|
||||
<p class="text-2xl mt-5">Keine Dokumente zur Auswahl vefügbar</p>
|
||||
<UButton
|
||||
@click="router.push(`/documents`)"
|
||||
@@ -193,11 +193,10 @@ setupPage()
|
||||
>
|
||||
Zu den Dokumenten
|
||||
</UButton>
|
||||
</div>
|
||||
</div>-->
|
||||
|
||||
|
||||
<DocumentList
|
||||
v-else
|
||||
:documents="availableDocuments"
|
||||
:return-document-id="true"
|
||||
@selectDocument="(documentId) => itemInfo.document = documentId"
|
||||
|
||||
Reference in New Issue
Block a user