]> git.koha-community.org Git - koha.git/commit
Bug 17689: Add the Koha::Checkout->is_overdue method
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 25 Nov 2016 13:16:26 +0000 (14:16 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 23 Dec 2016 11:55:25 +0000 (11:55 +0000)
commit7ecd9e330481389d523da27f962e8e5242c1bbfa
treea8bc49976339fe8498170c1039650e8db5bb381d
parent19ee95a6d5a292152ac0313ad4429b78210da4e0
Bug 17689: Add the Koha::Checkout->is_overdue method

This patch adds a new method Koha::Checkout->is_overdue and provide tests
to cover it.
The goal is to behave like GetItemIssues set the 'overdue' flag to
issues.
I don't understand why the existing GetItemIssues truncate dates to
minutes, so I did not recreate this behavior.

Test plan:
  prove t/db_dependent/Koha/Checkouts.t
should return green

Signed-off-by: Mika Smith <mikasmith@catalyst.net.nz>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Checkout.pm
t/db_dependent/Koha/Checkouts.t