From: Mark Wells Date: Wed, 13 Mar 2013 16:35:33 +0000 (-0700) Subject: fix math error, #18333 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=97f03b3b092ed922462308fa68dabfe92c7f7905;p=freeside.git fix math error, #18333 --- diff --git a/FS/bin/freeside-ipifony-download b/FS/bin/freeside-ipifony-download index 36d3e8e75..9df4db08a 100755 --- a/FS/bin/freeside-ipifony-download +++ b/FS/bin/freeside-ipifony-download @@ -185,7 +185,7 @@ FILE: foreach my $filename (@$files) { my $amount = sprintf('%.2f',$hash{quantity} * $hash{unit_price}); # construct arguments for $cust_main->charge my %charge_opt = ( - amount => $amount, + amount => $hash{unit_price}, quantity => $hash{quantity}, start_date => $cust_main->next_bill_date, pkg => $hash{date_desc} . @@ -223,7 +223,7 @@ FILE: foreach my $filename (@$files) { $num_errors++; } else { $num_charges++; - $sum_charges += $hash{amount}; + $sum_charges += $amount; } if ( $opt{e} and $is_e911{$hash{classname}} ) {