From 07c5238e54d70d1ffdd6ff50cec720adc32188aa Mon Sep 17 00:00:00 2001 From: Charles Farmer Date: Wed, 16 May 2018 12:08:23 -0400 Subject: [PATCH] Bug 19336: (QA follow-up) Initialize $unitcounttotal in case a report is written --- misc/cronjobs/fines.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/misc/cronjobs/fines.pl b/misc/cronjobs/fines.pl index c64ca926fb..79eae05dc4 100755 --- a/misc/cronjobs/fines.pl +++ b/misc/cronjobs/fines.pl @@ -132,6 +132,7 @@ for my $overdue ( @{$overdues} ) { my $data = Koha::IssuingRules->get_effective_issuing_rule( { categorycode => $borrower->{categorycode}, itemtype => $itype, branchcode => $branchcode } ); if ( defined($data->overduefinescap) ) { $amount = $data->overduefinescap; + $unitcounttotal = 'n/a'; } else { print "No overduefinescap defined for {branchcode = $branchcode, itemtype = $itype and categorycode = $borrower->{categorycode}}\n"; -- 2.17.1