https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=44082 Bug ID: 44082 Summary: Backfill accountlines.checkin_id for the charges created by past check-ins Initiative type: --- Sponsorship --- status: Product: Koha Version: Main Hardware: All OS: All Status: NEW Severity: enhancement Priority: P5 - low Component: Database Assignee: koha-bugs@lists.koha-community.org Reporter: tomascohen@gmail.com QA Contact: testopia@bugs.koha-community.org Depends on: 42425 Target Milestone: --- Bug 42425 adds accountlines.checkin_id and populates it going forward. Its first version backfilled existing accountlines through old_issue_id, which linked charges the check-in did not create (comment 37), so the backfill was dropped. A correct backfill can be done later without losing anything: restrict it to the lines a check-in creates (OVERDUE debits, FORGIVEN, LOST_FOUND and PROCESSING_FOUND credits), the item of the check-in, a short time window around the check-in, and only link a line that matches a single check-in. Backdated returns cannot be matched and stay unlinked. Referenced Bugs: https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=42425 [Bug 42425] Add checkin_id FK to accountlines to link fee adjustments to checkin events -- You are receiving this mail because: You are watching all bug changes. You are the assignee for the bug.