diff options
| author | Mark Wells <mark@freeside.biz> | 2013-03-13 09:35:33 -0700 |
|---|---|---|
| committer | Mark Wells <mark@freeside.biz> | 2013-03-13 09:35:33 -0700 |
| commit | 97f03b3b092ed922462308fa68dabfe92c7f7905 (patch) | |
| tree | ef9dd39af377d611fd3c632d032f41a389459955 | |
| parent | fc3df6cd7abe065e4db7e4fe47015619080c7ec1 (diff) | |
fix math error, #18333
| -rwxr-xr-x | FS/bin/freeside-ipifony-download | 4 |
1 files changed, 2 insertions, 2 deletions
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}} ) { |
