From 4a0a4fe350526348157f2f5095236479063b54b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mika=C3=ABl=20Olangcay=20Brisebois?= Date: Fri, 1 Mar 2019 15:58:00 -0500 Subject: [PATCH] Bug 19336: (follow-up) Initialize $unitcount instead of $unitcounttotal after changes on master Signed-off-by: Chris Cormack Signed-off-by: Kyle M Hall --- misc/cronjobs/fines.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cronjobs/fines.pl b/misc/cronjobs/fines.pl index 0f9fd1bd90e..dca99d92a7c 100755 --- a/misc/cronjobs/fines.pl +++ b/misc/cronjobs/fines.pl @@ -161,7 +161,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'; + $unitcount = 'n/a'; } else { print "No overduefinescap defined for {branchcode = $branchcode, itemtype = $itype and categorycode = $borrower->{categorycode}}\n"; -- 2.39.2