summaryrefslogtreecommitdiff
path: root/httemplate/edit/process
diff options
context:
space:
mode:
authorivan <ivan>2008-06-05 19:24:33 +0000
committerivan <ivan>2008-06-05 19:24:33 +0000
commit1203e278e2ec38fcf1468da2e4f10862004bebeb (patch)
tree0a9c3155181c6443f5e6faacfa4911e944435697 /httemplate/edit/process
parent3b54099d7b5532a411bb477006d78844c0597745 (diff)
voxlinesystems CDRs and quantity bs
Diffstat (limited to 'httemplate/edit/process')
-rw-r--r--httemplate/edit/process/quick-charge.cgi6
1 files changed, 6 insertions, 0 deletions
diff --git a/httemplate/edit/process/quick-charge.cgi b/httemplate/edit/process/quick-charge.cgi
index 22f96852f..4c4927f4d 100644
--- a/httemplate/edit/process/quick-charge.cgi
+++ b/httemplate/edit/process/quick-charge.cgi
@@ -30,6 +30,11 @@ $param->{"amount"} =~ /^\s*(\d+(\.\d{1,2})?)\s*$/
or $error .= "Illegal amount " . $param->{"amount"} . " ";
my $amount = $1;
+my $quantity = 1;
+if ( $cgi->param('quantity') =~ /^\s*(\d+)\s*$/ ) {
+ $quantity = $1;
+}
+
if ( $param->{'taxclass'} eq '(select)' ) {
$error .= "Must select a tax class. ";
}
@@ -40,6 +45,7 @@ unless ( $error ) {
$error ||= $cust_main->charge( {
'amount' => $amount,
+ 'quantity' => $quantity,
'pkg' => scalar($cgi->param('pkg')),
'taxclass' => scalar($cgi->param('taxclass')),
'classnum' => scalar($cgi->param('classnum')),