diff --git a/components/EntityShow.vue b/components/EntityShow.vue index 012e800..d74f5b7 100644 --- a/components/EntityShow.vue +++ b/components/EntityShow.vue @@ -113,6 +113,25 @@ const invoiceDeliveryNotes = () => { router.push(`/createDocument/edit?type=invoices&linkedDocuments=[${props.item.createddocuments.filter(i => i.type === "deliveryNotes").map(i => i.id)}]`) } +const getAvailableQueryStringData = () => { + let returnString ="" + + if(props.item.customer) { + returnString += `&customer=${props.item.customer.id}` + } else if(type === "customers") { + returnString += `&customer=${props.item.id}` + } + + if(props.item.project) { + returnString += `&project=${props.item.project.id}` + } else if(type === "projects") { + returnString += `&project=${props.item.id}` + } + + return returnString + +} +