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

@@ -16,7 +16,6 @@ const profileStore = useProfileStore()
const route = useRoute()
const router = useRouter()
const mode = ref(route.params.mode || "show")
const supabase = useSupabaseClient()
const itemInfo = ref({statementallocations:[]})
const oldItemInfo = ref({})
@@ -202,15 +201,7 @@ const archiveStatement = async () => {
let temp = itemInfo.value
delete temp.statementallocations
await dataStore.updateItem("bankstatements", {...temp,archived:true})
const {data,error} = await supabase.from("historyitems").insert({
createdBy: useProfileStore().activeProfile.id,
tenant: useProfileStore().currentTenant,
text: "Bankbuchung archiviert",
bankStatement: itemInfo.value.id
})
await useEntities("bankstatements").archive(temp.id)
}
</script>