fix: hard-delete konten instead of soft-deactivate, convert kontonummer to INTEGER with arithmetic sub-account derivation

This commit is contained in:
Matthias Hochmeister
2026-03-30 11:25:48 +02:00
parent e4f1d8864a
commit 4e42d4077a
2 changed files with 2 additions and 3 deletions

View File

@@ -1002,7 +1002,7 @@ function KontenTab({ haushaltsjahre, selectedJahrId, onJahrChange }: {
});
const deleteKontoMut = useMutation({
mutationFn: buchhaltungApi.deleteKonto,
onSuccess: () => { qc.invalidateQueries({ queryKey: ['buchhaltung-konten'] }); qc.invalidateQueries({ queryKey: ['kontenTree'] }); showSuccess('Konto deaktiviert'); },
onSuccess: () => { qc.invalidateQueries({ queryKey: ['buchhaltung-konten'] }); qc.invalidateQueries({ queryKey: ['kontenTree'] }); showSuccess('Konto gelöscht'); },
onError: () => showError('Löschen fehlgeschlagen'),
});