Steuer-News aktuell
Neuerungen in Caseware IDEA 13.0
Codebeispiel Anomalienerkennung in Python: Interaktion von Python und Caseware IDEA mittels win32com.client
# Import von IDEA-Daten und Anomalie-Erkennung
import win32com.client as win32
import pandas as pd
import numpy as np
from sklearn.ensemble import IsolationForest
# IDEA-Verbindung herstellen
idea = win32.Dispatch("Idea.IdeaClient")
db = idea.OpenDatabase("Rechnungsdaten.IMD")
# Daten nach Pandas exportieren
data = []
for i in range(1, db.Count + 1):
rec = db.ReadRow(i)
data.append({
'Betrag': float(rec.Value("BETRAG")),
'Tag': rec.Value("TAG"),
'ID': rec.Value("RECHNUNGS_ID")
})
df = pd.DataFrame(data)
# Anomalie-Erkennung mit Isolation Forest
model = IsolationForest(contamination=0.05)
df['anomalie'] = model.fit_predict(df[['Betrag']])
anomalien = df[df['anomalie'] == -1]
# Ergebnis in IDEA importieren
# Anomalien als neue Datenbank speichern
output_path = idea.WorkingDirectory + "\Anomalien.xlsx"
anomalien.to_excel(output_path)
# In IDEA importieren
idea.ImportExcel(output_path, "Anomalien", "", "", "", 1)
Codebeispiel Python: Interaktion von Python und Caseware IDEA mittels win32com.client
import win32com.client as win32ComClient
if __name__ == "__main__":
try:
# IDEA-Objekt erstellen und Tabelle öffnen
idea = win32ComClient.Dispatch(dispatch="Idea.IdeaClient")
table = idea.OpenDatabase("Sample-Employees.IMD")
# Extraktion basierend auf Kriterien durchführen
task = table.Extraction()
task.IncludeAllFields()
task.AddExtraction("Ergebnis.IMD", "", 'COUNTRY=="Deutschland"')
task.PerformTask(1, table.Count)
# Ergebnistabelle öffnen
idea.OpenDatabase("Ergebnis.IMD")
finally:
# Ressourcen freigeben
task = None
table = None
idea = None
BFH-Urteil vom 11.03.2025, Az. IX R 30/22: Kein Feststellungsinteresse für eine Nichtigkeitsfeststellungsklage gegen eine Prüfungsanordnung unter https://www.bundesfinanzhof.de/de/entscheidung/entscheidungen-online/detail/STRE202520098/
vorgehend Niedersächsisches Finanzgericht , 19. November 2021, Az: 7 K 169/21