[Koha-bugs] [Bug 27945] Limit the number of article requests per day per patron category

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Aug 18 14:55:59 CEST 2021


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

--- Comment #24 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
Koha::Patron

+    my $count = Koha::ArticleRequests->search({
+            borrowernumber => $self->borrowernumber,
+            status => {'!=' => 'CANCELED'},
+            created_on => {
+                '>=' => $date->date.' 00:00:00',
+                '<=' => $date->date.' 23:59:59'
+            }
+        })->count;

We should use Koha::Database->new->schema->storage->datetime_parser. Look in
the same modules for more examples.

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


More information about the Koha-bugs mailing list