Tidying
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user