From f1e50f7c388dd603781f28516f0bff1fe294c21e Mon Sep 17 00:00:00 2001 From: florianfederspiel Date: Mon, 24 Feb 2025 03:59:51 +0100 Subject: [PATCH] Changed Abschlagszahlungen to Auto Create Position --- pages/createDocument/edit/[[id]].vue | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/pages/createDocument/edit/[[id]].vue b/pages/createDocument/edit/[[id]].vue index cb1160d..691839e 100644 --- a/pages/createDocument/edit/[[id]].vue +++ b/pages/createDocument/edit/[[id]].vue @@ -290,6 +290,23 @@ const setDocumentTypeConfig = (withTexts = false) => { itemInfo.value.letterhead = letterheads.value[0].id + if(itemInfo.value.type === "advanceInvoices") { + + + itemInfo.value.rows.push({ + mode: "free", + text: "Abschlagszahlung", + quantity: 1, + unit: 10, + price: 0, + taxPercent: 19, + discountPercent: 0, + advanceInvoiceData: advanceInvoiceData.value + }) + + setPosNumbers() + } + } @@ -1182,12 +1199,12 @@ const setRowData = (row) => { {{dataStore.documentTypesForCreation[itemInfo.type].labelSingle}} - Auto Positionen + >Auto Positionen-->