Commit graph

5 commits

Author SHA1 Message Date
b552b90303 feat: PaymentVarious - Zahlung anlegen für Transaktionen ohne Rechnung
Neuer Button "Zahlung anlegen" auf der Transaktions-Detailseite (card.php)
für Bankbuchungen ohne zugehörige Rechnung (z.B. Steuer-Erstattungen,
private Umbuchungen, sonstige Zahlungen).

- Inline-Formular mit Buchungskonto (Select2), Nebenbuchkonto,
  Buchungsseite (Soll/Haben) und Label
- Buchungsseite wird automatisch aus Vorzeichen ermittelt
- Erstellt PaymentVarious mit Bank-Eintrag und bank_url-Verknüpfung
- Transaktion wird auf MATCHED gesetzt
- Anzeige der sonstigen Zahlung mit Link bei gematchten Transaktionen
- Fix: update() speichert jetzt fk_user_match und date_match korrekt
- Fix: Leeres Nebenbuchkonto wird nicht mehr als -1 gespeichert

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-10 15:52:20 +01:00
95220dda14 Add repair page for orphaned transactions and fix paid invoice filter
- New repair.php page for admin to fix orphaned BankImport transactions
  that are still marked as "New" but have existing payments in Dolibarr
- Fix invoice filter in card.php to only check BankImport linkage,
  not payment.fk_bank - allows linking paid invoices not yet in BankImport
- Add translations for repair page (DE/EN)
- Bump version to 1.7.1

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-20 12:04:20 +01:00
48b8fe2773 Filter out paid invoices already linked to bank entries
When showing paid invoices for linking, exclude those whose
payment is already linked to a bank entry (fk_bank > 0).
A paid invoice can only be linked to one bank transaction.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-20 09:18:41 +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
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