[Koha-bugs] [Bug 24138] suspension miscalculated when Suspension charging interval bigger than 1 and Max. suspension duration is defined

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon Dec 9 14:11:00 CET 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24138

--- Comment #15 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
(In reply to Jonathan Druart from comment #13)
> (In reply to Marcel de Rooy from comment #8)
> > my $suspension_days = $deltadays * $finedays;
> > finedays is a number, deltadays is not ?
> > 
> > and then:
> > floor( $suspension_days->in_units('days') etc
> > 
> > suspension_days is just a number not a duration?
> 
> I am not sure I understand your concern here.
> 
> perl -MDateTime::Duration -e 'my $dur = DateTime::Duration->new( days => 3
> ); $dur *= 3; print $dur->in_units("days")' 
> 
> This is valid and will display 9

Which might be a bit confusing too, but okay. There must still be something
wrong somewhere, my test does not work? Will have another look.

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list