]> git.koha-community.org Git - koha.git/commit
Bug 24440: Add ->current_holds to Koha::Acquisition::Order
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 16 Jan 2020 18:58:25 +0000 (15:58 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 4 Feb 2020 10:17:48 +0000 (10:17 +0000)
commit8829e8d21473486e29b7f4969165d201aa0a3c81
tree6d8a5f5302bec8a4315638cd698433f6ce328280
parenta567c990876d8d33a29e0b43c4f45940ddafd8b6
Bug 24440: Add ->current_holds to Koha::Acquisition::Order

This patch introduces a method to fetch the current holds associated with the
items linked to an order line. It basically implements what's done in
parcel.pl, but fully tested and suitable for using on the API.

To test:
1. Apply this patches
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Acquisition/Order.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Acquisition/Order.pm
Koha/Schema/Result/Aqorder.pm