[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
Fri Dec 6 14:08:06 CET 2019
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24138
--- Comment #13 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
(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
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list