From 5f6df7c69d7519f66b92a2bb01e020f5e30b2b6c Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Fri, 14 Nov 2025 17:54:27 +0100 Subject: [PATCH] Fixed Some Errors in IncomingInvoices --- pages/incomingInvoices/[mode]/[id].vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/pages/incomingInvoices/[mode]/[id].vue b/pages/incomingInvoices/[mode]/[id].vue index 26a5496..319fc26 100644 --- a/pages/incomingInvoices/[mode]/[id].vue +++ b/pages/incomingInvoices/[mode]/[id].vue @@ -45,6 +45,8 @@ const setup = async () => { itemInfo.value = await useEntities("incominginvoices").selectSingle(route.params.id, "*, files(*)") await loadFile(itemInfo.value.files[itemInfo.value.files.length-1].id) + if(itemInfo.value.date && !itemInfo.value.dueDate) itemInfo.value.dueDate = itemInfo.value.date + } setup() @@ -145,7 +147,7 @@ const findIncomingInvoiceErrors = computed(() => { let errors = [] if(itemInfo.value.vendor === null) errors.push({message: "Es ist kein Lieferant ausgewählt", type: "breaking"}) - if(itemInfo.value.reference === null) errors.push({message: "Es ist keine Referenz angegeben", type: "breaking"}) + if(itemInfo.value.reference === null || itemInfo.value.reference.length === 0) errors.push({message: "Es ist keine Referenz angegeben", type: "breaking"}) if(itemInfo.value.date === null) errors.push({message: "Es ist kein Datum ausgewählt", type: "breaking"}) if(itemInfo.value.dueDate === null) errors.push({message: "Es ist kein Fälligkeitsdatum ausgewählt", type: "breaking"}) if(itemInfo.value.paymentType === null) errors.push({message: "Es ist keine Zahlart ausgewählt", type: "breaking"}) @@ -220,7 +222,6 @@ const findIncomingInvoiceErrors = computed(() => { class="mx-5 documentPreview" />
- { -
+
{ { .scrollContainer { overflow-y: scroll; - padding-left: 1em; - padding-right: 1em; height: 70vh; -ms-overflow-style: none; /* IE and Edge */ scrollbar-width: none; /* Firefox */