[Koha-patches] [PATCH] Bug 3166 Penny round off error when summing fines for patrons

Galen Charlton galen.charlton at liblime.com
Wed Apr 29 14:57:24 CEST 2009


Hi Darrell,

To avoid having the committer show up as 'root
<root at kohavmware.(none)>', please set user.name using git-config and
redo and resubmit the patch.

Thanks,

Galen

On Tue, Apr 28, 2009 at 10:19 AM,  <darrellulm at smfpl.org> wrote:
> From: root <root at kohavmware.(none)>
>
> Thanks! D.Ulm
> ---
>  C4/Members.pm |    4 ++--
>  1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/C4/Members.pm b/C4/Members.pm
> index c0af300..a5892a2 100644
> --- a/C4/Members.pm
> +++ b/C4/Members.pm
> @@ -1169,9 +1169,9 @@ sub GetMemberAccountRecords {
>                $data->{biblionumber} = $biblio->{biblionumber};
>         $acctlines[$numlines] = $data;
>         $numlines++;
> -        $total += int(100 * $data->{'amountoutstanding'}); # convert float to integer to avoid round-off errors
> +        $total += int(1000 * $data->{'amountoutstanding'}); # convert float to integer to avoid round-off errors
>     }
> -    $total /= 100;
> +    $total /= 1000;
>     $sth->finish;
>     return ( $total, \@acctlines,$numlines);
>  }
> --
> 1.5.6.5
>
> _______________________________________________
> Koha-patches mailing list
> Koha-patches at lists.koha.org
> http://lists.koha.org/mailman/listinfo/koha-patches
>



-- 
Galen Charlton
VP, Research & Development, LibLime
galen.charlton at liblime.com
p: 1-888-564-2457 x709
skype: gmcharlt



More information about the Koha-patches mailing list