https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22837
Bug ID: 22837
Summary: Koha::Account::Line->apply should not require a 'set'
of debits
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Architecture, internals, and plumbing
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Target Milestone: ---
As it stands the apply method in Koha::Account::Line requires a Koha::Account
resultset to be passed in as the list of debits to be applied against. This is
suboptimal when the method is often required to apply against the results of a
Koha::Account::Line->find (single not set) as one needs to rework the query.
We should accept an arrayref of results rather than requiring a resultset as
converting from a set to an arrayref is simple (->as_list), but converting for
a single record up to a set is considerably more challenging (both coding wise
and DB hits wise).
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://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/