[Koha-bugs] [Bug 3341] New: fines calculation erroneous when a repeatable holiday is added.

bugzilla-daemon at liblime.com bugzilla-daemon at liblime.com
Fri Jun 19 02:28:48 CEST 2009


http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3341

           Summary: fines calculation erroneous when a repeatable holiday is
                    added.
           Product: Koha
           Version: HEAD
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P5
         Component: Circulation
        AssignedTo: galen.charlton at liblime.com
        ReportedBy: rch at liblime.com
   Estimated Hours: 0.0
 Change sponsored?: ---


Adding a repeatable holiday creates holidays retroactively for Koha's calendar
module.  fines.pl balks when it sees an overdue fine calculation where amount
!= amountoutstanding (it assumes a payment was made, so tries to adjust the
amountoutstanding appropriately).  This fails if the calendar module reports a
smaller number of fine-inducing days on one run of fines.pl than it did on the
previous.

Symptoms:
Overdue charges appear on patron accounts with Amount Outstanding > Amount.

Steps to reproduce:
  * run fines.pl with some overdue items.
  * set calendaring sysprefs to ensure fines calculations take the calendar
into account
  * add a repeatable holiday that will fall within the overdue period of your
overdue items
  * run fines.pl again
  * the new Amount is the correct fine.  Amount Outstanding is now incorrect,
as it includes the fines on the days that are now holidays.

amountoutstanding > amount is nonsensical from Koha's standpoint, and should
not occur.


-- 
Configure bugmail: http://bugs.koha.org/cgi-bin/bugzilla3/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.



More information about the Koha-bugs mailing list