[freeside-commits] branch master updated. 57db4484cae295551c72c88c936ef8a71d35730d
Mark Wells
mark at 420.am
Wed Mar 13 09:36:48 PDT 2013
The branch, master has been updated
via 57db4484cae295551c72c88c936ef8a71d35730d (commit)
from 5983b3190e9b59e90f9dffc6a9d80cdcdeaa151a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 57db4484cae295551c72c88c936ef8a71d35730d
Author: Mark Wells <mark at freeside.biz>
Date: Wed Mar 13 09:34:30 2013 -0700
fix math error, #18333
diff --git a/FS/bin/freeside-ipifony-download b/FS/bin/freeside-ipifony-download
index 36d3e8e..9df4db0 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}} ) {
-----------------------------------------------------------------------
Summary of changes:
FS/bin/freeside-ipifony-download | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list