]> git.koha-community.org Git - koha.git/commit
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)
committerChris Cormack <chris@bigballofwax.co.nz>
Wed, 22 Apr 2015 06:05:48 +0000 (18:05 +1200)
commite8aec1068c6ca7a5e336be96534a1282bf86b83b
tree959fde1a1d83a4513d81db5698d0c5543f49f134
parent02f7d6a4731cd58cb9653755acab8d9af6eb4542
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>
Bug 13601 is not in 3.18.x, so I removed the change connected
to that and it still tested ok.

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
C4/Members.pm
t/db_dependent/Members/IssueSlip.t [new file with mode: 0644]