+
+
+
+
+
+
+
@@ -781,6 +862,7 @@ setupPage()
-
-
-
-
-
-
-
@@ -936,6 +1014,82 @@ setupPage()
+
+
+ Einstellungen für die Serienrechnung
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
@@ -969,7 +1123,7 @@ setupPage()
{{option.name}} - {{option.text}}
- {{dataStore.texttemplates.find(i => i.text === itemInfo.startText && i.documentType === itemInfo.type) ? dataStore.texttemplates.find(i => i.text === itemInfo.startText && i.documentType === itemInfo.type).name : "Keine Vorlage ausgewählt oder Vorlage verändert"}}
+ {{dataStore.texttemplates.find(i => i.text === itemInfo.startText && (itemInfo.type === "serialInvoices" ? i.documentType === "invoices" : i.documentType === itemInfo.type)) ? dataStore.texttemplates.find(i => i.text === itemInfo.startText && (itemInfo.type === "serialInvoices" ? i.documentType === "invoices" : i.documentType === itemInfo.type)).name : "Keine Vorlage ausgewählt oder Vorlage verändert"}}
@@ -1305,7 +1459,7 @@ setupPage()
{{option.name}} - {{option.text}}
- {{dataStore.texttemplates.find(i => i.text === itemInfo.endText) ? dataStore.texttemplates.find(i => i.text === itemInfo.endText).name : "Keine Vorlage ausgewählt oder Vorlage verändert"}}
+ {{dataStore.texttemplates.find(i => i.text === itemInfo.endText && (itemInfo.type === "serialInvoices" ? i.documentType === "invoices" : i.documentType === itemInfo.type)) ? dataStore.texttemplates.find(i => i.text === itemInfo.endText && (itemInfo.type === "serialInvoices" ? i.documentType === "invoices" : i.documentType === itemInfo.type)).name : "Keine Vorlage ausgewählt oder Vorlage verändert"}}
diff --git a/pages/createDocument/index.vue b/pages/createDocument/index.vue
index f0a88a9..2418f52 100644
--- a/pages/createDocument/index.vue
+++ b/pages/createDocument/index.vue
@@ -224,6 +224,9 @@ const templateTypes = [
}, {
key: "deliveryNotes",
label: "Lieferscheine"
+ }, {
+ key: "confirmationOrders",
+ label: "Auftragsbestätigungen"
}
]
const selectedTypes = ref(templateTypes)
@@ -237,12 +240,6 @@ const selectItem = (item) => {
} else if(item.state !== "Entwurf") {
router.push(`/createDocument/show/${item.id}`)
}
-
-
-
-
-
-
}
const displayCurrency = (value, currency = "€") => {
@@ -255,6 +252,7 @@ const showDrafts = ref(false)
const filteredRows = computed(() => {
let temp = items.value.filter(i => types.value.find(x => x.key === i.type))
+ temp = temp.filter(i => i.type !== "serialInvoices")
/*if(showDrafts.value === true) {
temp = temp.filter(i => i.state === "Entwurf")