diff --git a/components/DocumentDisplayModal.vue b/components/DocumentDisplayModal.vue index a920fa3..d4edf41 100644 --- a/components/DocumentDisplayModal.vue +++ b/components/DocumentDisplayModal.vue @@ -78,6 +78,7 @@ const updateDocument = async () => { if(objData.profile) objData.profile = objData.profile.id if(objData.check) objData.check = objData.check.id if(objData.inventoryitem) objData.inventoryitem = objData.inventoryitem.id + if(objData.incominginvoice) objData.incominginvoice = objData.incominginvoice.id const {data,error} = await supabase @@ -90,6 +91,8 @@ const updateDocument = async () => { console.log(error) } else { toast.add({title: "Datei aktualisiert"}) + modal.close() + emit("updateNeeded") //openShowModal.value = false } } @@ -295,6 +298,12 @@ const moveFile = async () => { {{props.documentData.profile.fullName}} + + Eingangsrechnung + + {{props.documentData.incominginvoice.reference}} + + Datei zuweisen