https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24138
--- Comment #15 from Marcel de Rooy <[email protected]> --- (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. _______________________________________________ Koha-bugs mailing list [email protected] https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs website : http://www.koha-community.org/ git : http://git.koha-community.org/ bugs : http://bugs.koha-community.org/
