projects
/
koha_gimpoz
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Bug 5549 : Daily loans should be due at 23:59
[koha_gimpoz]
/
C4
/
Circulation.pm
diff --git
a/C4/Circulation.pm
b/C4/Circulation.pm
index
bbff8ae
..
49bd7b2
100644
(file)
--- a/
C4/Circulation.pm
+++ b/
C4/Circulation.pm
@@
-2838,6
+2838,10
@@
sub CalcDateDue {
}
my $calendar = Koha::Calendar->new( branchcode => $branch );
$datedue = $calendar->addDate( $startdate, $dur, $loanlength->{lengthunit} );
+ if ($loanlength->{lengthunit} eq 'days') {
+ $datedue->set_hour(23);
+ $datedue->set_minute(59);
+ }
}
}