Commit graph

10 commits

Author SHA1 Message Date
8b64fd24d3 feat: php-fints 4.0 Update + HKEKA/HKKAA Segmente (WIP)
- php-fints Bibliothek von 3.7.0 auf 4.0.0 aktualisiert
- Parser-Fix: Ignoriert zusätzliche Bank-Felder statt Exception
- HKEKA Segmente implementiert (HIEKASv5, HKEKAv5, HIEKAv5)
- HKKAA Segmente implementiert (HIKAASv1, HKKAAv1)
- GetStatementFromArchive und GetElectronicStatement Actions

HINWEIS: HKKAA/HKEKA funktionieren noch nicht mit VR Bank
(Fehler "unerwarteter Aufbau wrt DE 2" - Kontoverbindungsformat)
Normale Funktionalität (Transaktionsimport) ist nicht betroffen.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-05 15:47:27 +01:00
fc380892f0 feat: PDF-Kontoauszüge per FinTS (HKEKP) abrufen
- Neue php-fints Segmente: HKEKPv2, HIEKPv2, HIEKPSv2
- Action-Klasse GetStatementPDF mit Pagination-Support
- Integration in pdfstatements.php (2-Spalten-Layout)
- Cronjob doAutoFetchPdf für automatischen Abruf
- Bank-Support-Prüfung via BPD (HIEKPS Parameter)

Hinweis: Nicht alle Banken unterstützen HKEKP

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-05 14:26:35 +01:00
463e7bdf0d fix: Sortierung bevorzugt Matches mit näherem Betrag
Matches die innerhalb von 10% des Transaktionsbetrags liegen
werden jetzt vor Matches mit größerer Abweichung angezeigt.

Bei 523€ Transaktion:
- Multi-Match 529€ (Diff 6€) → wird bevorzugt
- Einzelmatch 60€ (Diff 463€) → kommt danach

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-05 10:54:43 +01:00
f9852f98f6 fix: Multi-Invoice Match Score auf 98 erhöht
Multi-Invoice Matches werden jetzt bevorzugt angezeigt,
da sie besser zum Transaktionsbetrag passen als Einzelmatches.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-05 10:52:41 +01:00
dbcad6a884 feat: Multi-Invoice Skonto-Erkennung und automatische Skonto-Verarbeitung
- Toleranz für Multi-Invoice-Matching auf 3% des Betrags erhöht (statt 5€ fix)
- Automatische proportionale Verteilung der Zahlung bei Skonto-Abzug
- Rechnungen werden mit close_code='discount_vat' als bezahlt markiert
- Skonto-Betrag wird in der Notiz dokumentiert
- Version 3.1

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-03-05 10:46:23 +01:00
717ae539d3 feat: GlobalNotify Integration für Zahlungsabgleich
- Helper-Funktion BankImportTransaction::notify() für sichere GlobalNotify-Nutzung
- Benachrichtigung bei neuen importierten Bankbuchungen
- Aktion-erforderlich wenn unzugeordnete Buchungen warten
- countUnmatchedTransactions() Funktion hinzugefügt
- Fallback auf dol_syslog wenn GlobalNotify nicht verfügbar
- Version 2.8

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-23 11:26:32 +01:00
f340ba2da5 feat: Robustes Cron-System mit Monitoring (v2.7)
- Dediziertes Cron-Logging unter /documents/bankimport/logs/
- Shutdown Handler für fatale PHP-Fehler
- Pause-Mechanismus nach 3 Fehlern (verhindert Bank-Sperrung)
- Auth-Fehler-Erkennung für Authentifizierungsprobleme
- Neue Admin-Seite: Cron-Monitor (Status, Logs, Pause/Resume)
- CHANGELOG aktualisiert

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-23 10:58:06 +01:00
6342225cc1 Fix: Wrong column name fk_paiement_fourn -> fk_paiementfourn
The column in llx_paiementfourn_facturefourn is fk_paiementfourn (no underscore)
not fk_paiement_fourn. This caused payment lookups to fail, creating
duplicate payments instead of linking to existing ones.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-20 09:12:53 +01:00
2dc9279143 Fix: linkExistingPayment and linkMultipleExistingPayments not updating transaction
When linking paid invoices that already have bank entries:
- Added missing commit() and return after update() in bank_line branch
- Added proper error handling for update() failures
- Fixed both single invoice (linkExistingPayment) and multi-invoice linking

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-20 09:09:32 +01:00
94efa59df3 v1.7: Multi-invoice payments and payment unlinking
- Add multi-invoice payment support (link one bank transaction to multiple invoices)
- Add payment unlinking feature to correct wrong matches
- Show linked payments, invoices and bank entries in transaction detail view
- Allow linking already paid invoices to bank transactions
- Update README with new features
- Add CHANGELOG.md

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-20 09:00:05 +01:00