New Backend changes

This commit is contained in:
2025-09-02 19:10:59 +02:00
parent 27af6a0953
commit 8d5e158d59
4 changed files with 33 additions and 18 deletions

View File

@@ -10,17 +10,15 @@ defineShortcuts({
}
})
const profileStore = useProfileStore()
const tempStore = useTempStore()
const router = useRouter()
const supabase = useSupabaseClient()
const bankstatements = ref([])
const bankaccounts = ref([])
const setupPage = async () => {
bankstatements.value = (await supabase.from("bankstatements").select("*, statementallocations(*)").is("archived",false).eq('tenant', profileStore.currentTenant).order("date", {ascending:false})).data
bankaccounts.value = await useSupabaseSelect("bankaccounts")
bankstatements.value = (await useEntities("bankstatements").select("*, statementallocations(*)", "date", false))
bankaccounts.value = await useEntities("bankaccounts").select()
}
const templateColumns = [