This commit is contained in:
2025-09-25 17:20:33 +02:00
parent 62c403307f
commit e5696191af
3 changed files with 3 additions and 13 deletions

View File

@@ -9,7 +9,6 @@ const dataStore = useDataStore()
const profileStore = useProfileStore()
const route = useRoute()
const router = useRouter()
const supabase = useSupabaseClient()
const modal = useModal()
const auth = useAuthStore()
@@ -134,7 +133,8 @@ const setupPage = async () => {
console.log(route.query.loadMode)
if (route.query.loadMode === "deliveryNotes") {
let linkedDocuments = (await supabase.from("createddocuments").select().in("id", JSON.parse(route.query.linkedDocuments))).data
let linkedDocuments = (await useEntities("createddocuments").select()).filter(i => JSON.parse(route.query.linkedDocuments).includes(i.id))
//let linkedDocuments = (await supabase.from("createddocuments").select().in("id", JSON.parse(route.query.linkedDocuments))).data
//TODO: Implement Checking for Same Customer, Contact and Project