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

--- Comment #13 from Jonathan Druart <[email protected]> 
---
(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.
_______________________________________________
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/

Reply via email to