summaryrefslogtreecommitdiff
path: root/FS/bin
diff options
context:
space:
mode:
authorMark Wells <mark@freeside.biz>2013-03-13 09:34:30 -0700
committerMark Wells <mark@freeside.biz>2013-03-13 09:34:30 -0700
commit57db4484cae295551c72c88c936ef8a71d35730d (patch)
treed71c1ec42e6da9519ed5c2392c51bd8b0d109675 /FS/bin
parent5983b3190e9b59e90f9dffc6a9d80cdcdeaa151a (diff)
fix math error, #18333
Diffstat (limited to 'FS/bin')
-rw-r--r--FS/bin/freeside-ipifony-download4
1 files changed, 2 insertions, 2 deletions
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}} ) {