Bug 12847: Items issued today is considered as overdue
authorJonathan Druart <jonathan.druart@biblibre.com>
Thu, 16 Apr 2015 11:01:03 +0000 (13:01 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Mon, 20 Apr 2015 12:57:25 +0000 (09:57 -0300)
commit4b0b273cb078c17b82818211576fb7b3b17c2703
treef049449af5573f116cc08b7de8b7863e3a02ea88
parentdbd8602280192e4e4cd9915ad8c345a2d40dfb72
Bug 12847: Items issued today is considered as overdue

The date comparisons in C4::Members::IssueSlip does not work as
expected.
Is an item is issue yesterday and due today (23:59), it should not be
considered as an overdue yet.

Test plan:
Define a valid issue slip (code ISSUESLIP)
Check 2 items out and update the issuedate value for one of them as
yesterday (using the mariadb/mysql cli or similar)
Print the slip
Before this patch the item marked as issued yesterday is considered as
overdue.

Special cases:
- hourly loans
- Quick slip is impacted too

Signed-off-by: Nick Clemens <nick@quecheelibrary.org>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Members.pm
t/db_dependent/Members/IssueSlip.t [new file with mode: 0644]