[Koha-bugs] [Bug 17138] UpdateFine() modyfies existing fine records even when there is no need
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Aug 23 16:05:40 CEST 2016
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17138
--- Comment #4 from Marcel de Rooy <m.de.rooy at rijksmuseum.nl> ---
+ if ( $data->{'amount'} ne sprintf('%.6f', $amount) ) {
Why not force them both to sprintf and get rid of the hardcoded 6 ?
Or would rounding with Math::Round::nearest be better than sprintf ?
my $info = $schema->source('Accountline')->column_info('amount');
my $scale = $info->{size}->[1];
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list