projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
8078ab6
)
protect set_usage and reset_usage here, too
author
jeff
<jeff>
Tue, 29 Jun 2010 01:17:08 +0000
(
01:17
+0000)
committer
jeff
<jeff>
Tue, 29 Jun 2010 01:17:08 +0000
(
01:17
+0000)
httemplate/misc/process/recharge_svc.html
patch
|
blob
|
history
diff --git
a/httemplate/misc/process/recharge_svc.html
b/httemplate/misc/process/recharge_svc.html
index
5f68bf1
..
b56f8a2
100755
(executable)
--- a/
httemplate/misc/process/recharge_svc.html
+++ b/
httemplate/misc/process/recharge_svc.html
@@
-62,6
+62,7
@@
unless ($error) {
$error = $cust_main->charge($amount, "Recharge " . $svc_acct->label,
$description, $part_pkg->taxclass);
$error = $cust_main->charge($amount, "Recharge " . $svc_acct->label,
$description, $part_pkg->taxclass);
+ $error ||= "invalid $_" foreach grep { $rhash{$_} !~ /^\d*$/ } keys %rhash;
if ($part_pkg->option('recharge_reset', 1)) {
$error ||= $svc_acct->set_usage(\%rhash, 'null' => 1);
}else{
if ($part_pkg->option('recharge_reset', 1)) {
$error ||= $svc_acct->set_usage(\%rhash, 'null' => 1);
}else{