Commit graph

6 commits

Author SHA1 Message Date
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
2f0f438ec4 Add update SQL script for v1.7 migrations
Adds fk_statement column for existing installations that were
created before this column was added to the schema.

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