https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=40808

Martin Renvoize (ashimema) <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #186438|0                           |1
        is obsolete|                            |

--- Comment #11 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 186460
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=186460&action=edit
Bug 40808: Add Koha::Object classes for accountline_links and update existing
objects

This patch implements the Koha::Object layer for the new polymorphic
account line linking system.

New classes:
- Koha::Account::Link - Individual link object with validation
- Koha::Account::Links - Collection class with filtering methods

Enhanced existing classes:
- Koha::Account::Line gains methods: add_link, links, holds
- Koha::Hold gains method: account_lines

Features:
- Clean API using modern class names (holds)
- Built-in validation for link integrity
- Optimized queries with proper joins and prefetch
- Seamless integration with existing Koha::Object patterns

Usage examples:
  my $fees = $hold->debits;
  my $holds = $account_line->holds;
  $account_line->add_link('hold', $hold_id);

-- 
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/

Reply via email to