[Koha-bugs] [Bug 4906] New: Problem with grace period calculation and fine intervals >1

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Jun 24 15:13:01 CEST 2010


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=4906

           Summary: Problem with grace period calculation and fine
                    intervals >1
 Change sponsored?: ---
           Product: Koha
           Version: rel_3_2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P5
         Component: Circulation
        AssignedTo: kyle.m.hall at gmail.com
        ReportedBy: katrin.fischer at bsz-bw.de
         QAContact: koha-bugs at lists.koha-community.org
                CC: gmcharlt at gmail.com
   Estimated Hours: 0.0


With a fine interval > 1 there is currently no way to avoid a effective grace
period. Fines can not start the day after the due date.

Configuration:
With grace period = 1
fine interval 5 (= weekly, the library is closed Sunday and Saturday)

Result:
The first fine ist set 7 days after the item was due.
Monday, checkout
Tuesday, item due
Wednesday
Thursday
Friday
Saturday, holiday
Sunday, holiday
Monday,
Tuesday, first fine

Grace period for fine intervals > 1 should describe the days between the due
date and the day the first fine is set.

CalcFines() in Overdues.pm:
 266         my $days_minus_grace = $daystocharge - $data->{'firstremind'};
 267     if ($data->{'chargeperiod'} > 0 && $days_minus_grace > 0 ) { 
 268         $amount = int($daystocharge / $data->{'chargeperiod'}) *
$data->{'fine'};

-- 
Configure bugmail: http://bugs.koha-community.org/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.


More information about the Koha-bugs mailing list