summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorjeff <jeff>2009-03-23 23:33:04 +0000
committerjeff <jeff>2009-03-23 23:33:04 +0000
commit42682206b4ba30de01c82743042f5fb9d48a93ed (patch)
tree878abeade328c14d9273474f9fd6c4abeca7ec28 /httemplate
parentad57c5c8513d0980165e3088518ddddeba0db633 (diff)
more DTRT with usage on service transfer between packages and recharges RT #2884, #5040 + #4995 fallout
Diffstat (limited to 'httemplate')
-rwxr-xr-xhttemplate/misc/process/recharge_svc.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/httemplate/misc/process/recharge_svc.html b/httemplate/misc/process/recharge_svc.html
index 8c4d13e63..5f68bf151 100755
--- a/httemplate/misc/process/recharge_svc.html
+++ b/httemplate/misc/process/recharge_svc.html
@@ -1,6 +1,6 @@
%if ($error) {
% $cgi->param('error', $error);
-<% cgi->redirect(popurl(2). "recharge_svc.html?". $cgi->query_string ) %>
+<% $cgi->redirect(popurl(2). "recharge_svc.html?". $cgi->query_string ) %>
%} else {
<% header("Package recharged") %>
<SCRIPT TYPE="text/javascript">
@@ -47,7 +47,7 @@ unless ($error) {
$error = $cust_main->recharge_prepay( $prepaid );
} elsif ( $payby =~ /^(CARD|DCRD|CHEK|DCHK|LECB|BILL|COMP)$/ ) {
my $part_pkg = $svc_acct->cust_svc->cust_pkg->part_pkg;
- $amount = $part_pkg->option('recharge_amount', 1);
+ my $amount = $part_pkg->option('recharge_amount', 1);
my %rhash = map { $_ =~ /^recharge_(.*)$/; $1, $part_pkg->option($_) }
grep { $part_pkg->option($_, 1) }
qw ( recharge_seconds recharge_upbytes recharge_downbytes
@@ -63,7 +63,7 @@ unless ($error) {
$description, $part_pkg->taxclass);
if ($part_pkg->option('recharge_reset', 1)) {
- $error ||= $svc_acct->set_usage(\%rhash);
+ $error ||= $svc_acct->set_usage(\%rhash, 'null' => 1);
}else{
$error ||= $svc_acct->recharge(\%rhash);
}