https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42425 Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|Failed QA |Signed Off --- Comment #43 from Tomás Cohen Arazi (tcohen) <tomascohen@gmail.com> --- Thanks Pedro and Martin. Rebased on current main and addressed: 1. Rebase over bug 43504: checkin_id is now passed through Koha::Account::forgive_debit (documented in its POD), so the FORGIVEN credit gets it again. Tested in t/db_dependent/Koha/Account.t. 2. Backfill (comment 37 and point 2): dropped. A correct backfill can only match lines heuristically (type, item and a time window), and a wrong link cannot be told apart from a correct one later, while a missing link can always be added. checkin_id is populated going forward, and the backfill is filed as bug 44082, which describes how to do it without false links. This also removes the long UPDATE on large accountlines tables. 3. The ( $x ? ( checkin_id => $x ) : () ) idiom is gone, and add_credit and add_debit document checkin_id. 4. Tests added: PROCESSING_FOUND (Circulation.t), add_credit, add_debit and forgive_debit with checkin_id, and the FK setting it to NULL when the check-in is deleted (Koha/Account.t). The constraints sorting follow-up is folded into the DB changes patch. Sign-offs are kept on the patches that changed, as the changes are QA follow-ups. Back to Signed Off. -- You are receiving this mail because: You are watching all bug changes.