Bug 5549 : Fixing typo in C4/Circulation.pm
authorChris Cormack <chrisc@catalyst.net.nz>
Tue, 20 Mar 2012 19:33:26 +0000 (08:33 +1300)
committerChris Cormack <chrisc@catalyst.net.nz>
Tue, 20 Mar 2012 19:33:26 +0000 (08:33 +1300)
days_between not daysBetween

C4/Circulation.pm

index d2aa9b6..59f01fa 100644 (file)
@@ -1796,7 +1796,7 @@ sub _FixFineDaysOnReturn {
     my $calendar = Koha::Calendar->new( branchcode => $branchcode );
     my $today = C4::Dates->new();
 
-    my $deltadays = $calendar->daysBetween( $datedue, C4::Dates->new() );
+    my $deltadays = $calendar->days_between( $datedue, C4::Dates->new() );
 
     my $circcontrol = C4::Context::preference('CircControl');
     my $issuingrule = GetIssuingRule( $borrower->{categorycode}, $item->{itype}, $branchcode );