fix(cash-accounts): rebind movable transactions when remapping a PSD2 ledger (#2023)

When a PSD2 remap collides with an overflow duplicate cash account (1931 next to a promoted 1930), the unbooked, unmatched, non-anchored transactions on the duplicate are rebound onto the promoted row before the duplicate is resolved, so booking stops proposing the dead ledger. Rows that are booked or anchored via transaction_voucher_links / invoice_payments / supplier_invoice_payments stay put and the duplicate is demoted (never deleted) while any remain, as before. Supersedes #1756.

Co-authored-by: Daniel Stenborg <[email protected]>
This commit is contained in:
Jakob Wennberg
2026-08-30 11:23:15 +02:00
committed by GitHub
co-authored by Daniel Stenborg
parent cc7050f6cb
commit 24614c19ff
3 changed files with 419 additions and 18 deletions
+1
View File
File diff suppressed because one or more lines are too long