diff --git a/components/EntityShowSubCreatedDocuments.vue b/components/EntityShowSubCreatedDocuments.vue index 7f57b80..7af0ff5 100644 --- a/components/EntityShowSubCreatedDocuments.vue +++ b/components/EntityShowSubCreatedDocuments.vue @@ -68,27 +68,27 @@ setup() const templateColumns = [ { key: "reference", - label: "Referenz", - sortable: true + label: "Referenz" + + }, { key: 'type', - label: "Typ", - sortable: true + label: "Typ" },{ key: 'state', - label: "Status", - sortable: true + label: "Status" + },{ + key: 'paid', + label: "Bezahlt" }, { key: "date", - label: "Datum", - sortable: true + label: "Datum" }, { key: "dueDate", - label: "Fällig", - sortable: true + label: "Fällig" } ] const selectedColumns = ref(tempStore.columns["createddocuments"] ? tempStore.columns["createddocuments"] : templateColumns) @@ -119,7 +119,14 @@ const getAvailableQueryStringData = (keys) => { } const invoiceDeliveryNotes = () => { - router.push(`/createDocument/edit?type=invoices&linkedDocuments=[${props.item.createddocuments.filter(i => i.type === "deliveryNotes").map(i => i.id)}]`) + router.push(`/createDocument/edit?type=invoices&loadMode=deliveryNotes&linkedDocuments=[${props.item.createddocuments.filter(i => i.type === "deliveryNotes").map(i => i.id)}]`) +} + +const showFinalInvoiceConfig = ref(false) +const referenceDocument = ref(null) +const advanceInvoicesToAdd = ref([]) +const invoiceAdvanceInvoices = () => { + router.push(`/createDocument/edit?type=invoices&loadMode=finalInvoice&linkedDocuments=[${[referenceDocument.value, ... advanceInvoicesToAdd.value]}]`) } const selectItem = (item) => { @@ -166,6 +173,59 @@ const selectItem = (item) => { > + Abschlagsrechnung + + + Schlussrechnung + + + + + + + Schlussrechnung konfigurieren + + + + + + + + + + + + + + + + Weiter + + + + @@ -219,6 +279,12 @@ const selectItem = (item) => { {{row.state}} + + + Bezahlt + Offen + + {{row.documentNumber}} {{row.documentNumber}}