[Koha-bugs] [Bug 13909] New: _debar_user_on_return doesn't honour finesCalendar
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Mar 25 20:04:26 CET 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=13909
Bug ID: 13909
Summary: _debar_user_on_return doesn't honour finesCalendar
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P5 - low
Component: Circulation
Assignee: koha-bugs at lists.koha-community.org
Reporter: tomascohen at gmail.com
QA Contact: testopia at bugs.koha-community.org
CC: gmcharlt at gmail.com, kyle.m.hall at gmail.com
The routine should be using C4::Overdues::_get_chargeable_units instead of an
ad-hoc calculation of the overdue days to use as basis for the calculatio here:
my $calendar = Koha::Calendar->new( branchcode => $branchcode );
# $deltadays is a DateTime::Duration object
my $deltadays = $calendar->days_between( $dt_due, $dt_today );
To reproduce:
- Set finesCalendar = "directly"
- Have a circulation rule stating:
interval for calculating fines = 1
suspension days = 3
- Have the calendar set for sunday and saturday as holidays.
- Checkout an item with a branch/itype/borrower category that matches the
defined circ rule with a hand-writen due date to (say) last friday.
- Check the item in
=> FAIL: Notice that the user is debarred using the calendar (skipping saturday
and sunday).
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list