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

--- Comment #3 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 186438
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=186438&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, checkouts,
article_requests
- Koha::Hold gains method: account_lines

Features:
- Clean API using modern class names (holds, checkouts vs reserves, issues)
- 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