[Koha-bugs] [Bug 17737] Move GetReservesFromItemnumber to Koha::Item->holds

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Feb 3 12:23:50 CET 2017


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

--- Comment #11 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
+my $item = Koha::Items->find( $itemnumber );
+$holds = $item->holds_placed_before_today;
+my $dtf = Koha::Database->new->schema->storage->datetime_parser;
+my $future_holds = $holds->search({ reservedate => { '>' => $dtf->format_date(
dt_from_string ) } } );
+is( $future_holds->count, 0, 'holds_placed_before_today does not return a
future next available hold');
+# 9788b: holds_placed_before_today does not return future item level hold

Hm. You look at future_holds and then say something about the results of
holds_placed_before_today as saved in holds ?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list