[Koha-bugs] [Bug 2013] New: New Overdues.pm breaks fines2.pl

bugzilla-daemon at pippin.metavore.com bugzilla-daemon at pippin.metavore.com
Sat Apr 12 05:24:42 CEST 2008


http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=2013

           Summary: New Overdues.pm breaks fines2.pl
           Product: Koha
           Version: rel_3_0
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P3
         Component: Command-line Utilities
        AssignedTo: jmf at liblime.com
        ReportedBy: dswhite42 at yahoo.com
         QAContact: koha-bugs at lists.koha.org


Somewhere between the alpha and beta (or slightly after the beta?) the
parameters for the CalcFine() function in C4/Overdues.pm were changed from:

    my ( $item, $bortype, $difference , $dues  ) = @_;

to

    my ( $item, $bortype, $branchcode, $difference , $dues  ) = @_;

This breaks cronjobs/fines2.pl, which passes its arguments to CalcFine() in the
older style.  This patch fixes that by adding the $branchcode parameter.  (Code
shamelessly stolen from cronjobs/fines-ll.pl , which DOES work, and is newer,
and maybe should be used instead of fines2.pl anyway?  Dunno.  At least this
keeps old setups working).




------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.



More information about the Koha-bugs mailing list