[freeside-commits] branch FREESIDE_2_3_BRANCH updated. 97f03b3b092ed922462308fa68dabfe92c7f7905
Mark Wells
mark at 420.am
Wed Mar 13 09:36:46 PDT 2013
The branch, FREESIDE_2_3_BRANCH has been updated
via 97f03b3b092ed922462308fa68dabfe92c7f7905 (commit)
from fc3df6cd7abe065e4db7e4fe47015619080c7ec1 (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 97f03b3b092ed922462308fa68dabfe92c7f7905
Author: Mark Wells <mark at freeside.biz>
Date: Wed Mar 13 09:35:33 2013 -0700
fix math error, #18333
diff --git a/FS/bin/freeside-ipifony-download b/FS/bin/freeside-ipifony-download
index 36d3e8e..9df4db0 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}} ) {
-----------------------------------------------------------------------
Summary of changes:
FS/bin/freeside-ipifony-download | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list