X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=FS%2Fbin%2Ffreeside-ipifony-download;h=9df4db08a7070d02e0f676d7a339886c3ecde757;hb=dfe1fd273b486e5884fedd9acae61ee976bc02fc;hp=36d3e8e75e9c0e3dfcf77ee9f6c85542680a4159;hpb=5983b3190e9b59e90f9dffc6a9d80cdcdeaa151a;p=freeside.git diff --git a/FS/bin/freeside-ipifony-download b/FS/bin/freeside-ipifony-download index 36d3e8e75..9df4db08a 100644 --- 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}} ) {