Bug 36458

Summary: Koha::Item->return_claim method name is not correct
Product: Koha Reporter: Tomás Cohen Arazi (tcohen) <tomascohen>
Component: Architecture, internals, and plumbingAssignee: Bugs List <koha-bugs>
Status: NEW --- QA Contact: Testopia <testopia>
Severity: enhancement    
Priority: P5 - low CC: tomascohen
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: ---
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:
Bug Depends on: 28854    
Bug Blocks:    

Description Tomás Cohen Arazi (tcohen) 2024-03-28 14:54:28 UTC

    
Comment 1 Tomás Cohen Arazi (tcohen) 2024-03-28 14:58:44 UTC
This method should be named something like 'newest_unresolved_claim'. I leave it to others to pick the right name. But as-is it is ambiguous.
Comment 2 Tomás Cohen Arazi (tcohen) 2024-03-28 15:24:26 UTC
or maybe.. `$item->return_claims->get_newest_active`.