Initial commit - Stand 26.04.2026
This commit is contained in:
@@ -0,0 +1,70 @@
|
||||
import openpyxl
|
||||
|
||||
file_path = 'Kopie von Kostenrechnung der Nächsten jahre (3).xlsx'
|
||||
wb = openpyxl.load_workbook(file_path, data_only=True)
|
||||
sheet = wb['Tilgung bei Gleichbleibenden Be']
|
||||
|
||||
row = 189 # April 2026
|
||||
|
||||
print('╔══════════════════════════════════════════════════════════════╗')
|
||||
print('║ KREDIT-ÜBERSICHT APRIL 2026 ║')
|
||||
print('╚══════════════════════════════════════════════════════════════╝')
|
||||
print()
|
||||
|
||||
# KREDIT 1: DSL Bank (Spalte 9)
|
||||
print('┌─────────────────────────────────────────────────────────────┐')
|
||||
print('│ KREDIT 1: DSL Bank (allgemein, nicht Zingelstr.) │')
|
||||
print('├─────────────────────────────────────────────────────────────┤')
|
||||
print(f'│ Spalten: 9 (Restschuld), 10 (Rate) │')
|
||||
print(f'│ Restschuld (Apr 2026): {sheet.cell(row, 9).value:>10,.2f} € │')
|
||||
print(f'│ Monatsrate: {sheet.cell(row, 10).value:>10.2f} € │')
|
||||
print('└─────────────────────────────────────────────────────────────┘')
|
||||
print()
|
||||
|
||||
# KREDIT 2: PSD Nord (Spalte 13)
|
||||
print('┌─────────────────────────────────────────────────────────────┐')
|
||||
print('│ KREDIT 2: PSD Nord │')
|
||||
print('├─────────────────────────────────────────────────────────────┤')
|
||||
print(f'│ Spalten: 13 (Restschuld), 14 (Rate) │')
|
||||
print(f'│ Restschuld (Apr 2026): {sheet.cell(row, 13).value:>10,.2f} € │')
|
||||
print(f'│ Monatsrate: {sheet.cell(row, 14).value:>10.2f} € │')
|
||||
print('└─────────────────────────────────────────────────────────────┘')
|
||||
print()
|
||||
|
||||
# KREDIT 3: Zingelstr. 14 - DSL (Spalte 20)
|
||||
print('┌─────────────────────────────────────────────────────────────┐')
|
||||
print('│ KREDIT 3: Zingelstr. 14 - DSL Bank │')
|
||||
print('├─────────────────────────────────────────────────────────────┤')
|
||||
print(f'│ Spalte: 20 (Restschuld) │')
|
||||
print(f'│ Restschuld (Apr 2026): {sheet.cell(row, 20).value:>10,.2f} € │')
|
||||
print('│ Rate: separat ausgewiesen (nicht in Datei sichtbar) │')
|
||||
print('└─────────────────────────────────────────────────────────────┘')
|
||||
print()
|
||||
|
||||
# KREDIT 4: Zingelstr. 14 - Sparkasse (Spalte 28/21)
|
||||
print('┌─────────────────────────────────────────────────────────────┐')
|
||||
print('│ KREDIT 4: Zingelstr. 14 - Sparkasse │')
|
||||
print('├─────────────────────────────────────────────────────────────┤')
|
||||
print(f'│ Spalten: 28 (Restschuld), 21 (Rate) │')
|
||||
print(f'│ Restschuld (Apr 2026): {sheet.cell(row, 28).value:>10,.2f} € │')
|
||||
print(f'│ Monatsrate: {sheet.cell(row, 21).value:>10.2f} € │')
|
||||
print('└─────────────────────────────────────────────────────────────┘')
|
||||
print()
|
||||
|
||||
print('═══════════════════════════════════════════════════════════════')
|
||||
print('KORREKTUR BESTÄTIGT:')
|
||||
print()
|
||||
print('• Spalte 20 = Zingelstr. 14 DSL (Restschuld: {:,.2f} €)'.format(sheet.cell(row, 20).value))
|
||||
print('• Spalte 28 = Zingelstr. 14 Sparkasse (Restschuld: {:,.2f} €)'.format(sheet.cell(row, 28).value))
|
||||
print('• Spalte 21 = Sparkasse Rate ({} €)'.format(sheet.cell(row, 21).value))
|
||||
print()
|
||||
print('→ 2 separate Kredite für Zingelstr. 14 (DSL + Sparkasse)')
|
||||
print('→ PLUS 2 weitere Kredite (DSL Bank allg. + PSD Nord)')
|
||||
print('→ TOTAL: 4 aktive Kredite im April 2026')
|
||||
print()
|
||||
print('Mathematische Prüfung:')
|
||||
gesamt = sheet.cell(row, 24).value
|
||||
summe = sheet.cell(row, 9).value + sheet.cell(row, 13).value + sheet.cell(row, 20).value + sheet.cell(row, 28).value
|
||||
print(f' Summe Einzelkredite: {summe:,.2f} €')
|
||||
print(f' Gesamt (Spalte 24): {gesamt:,.2f} €')
|
||||
print(f' Status: {"✓ KORREKT" if abs(summe - gesamt) < 0.01 else "✗ FEHLER"}')
|
||||
Reference in New Issue
Block a user