https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40817
--- Comment #16 from Martin Renvoize (ashimema) <[email protected]> --- Created attachment 193204 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=193204&action=edit Bug 40817: Add Koha object methods for hold-account line linking This patch implements the core object methods to support direct linking between holds and their associated account lines: Koha::Account.pm: - Enhance add_debit() to accept hold_id parameter for linking fees to holds - Add automatic detection of current vs old holds for proper field assignment - Add graceful handling of non-existent holds Koha::Account::Line.pm: - Add hold() method to retrieve associated hold (current or old) - Support bidirectional navigation between account lines and holds Koha::Hold.pm: - Add debits() method to get all charges associated with the hold - Update charge_hold_fee() to link created fees to the hold - Enhance _move_to_old() to migrate account line relationships - Add hold_id parameter to fee creation calls Koha::Old::Hold.pm: - Add debits() method for accessing charges linked to old holds Signed-off-by: Jackie Usher <[email protected]> -- You are receiving this mail because: You are watching all bug changes. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
