diff options
author | ivan <ivan> | 2008-06-05 19:24:33 +0000 |
---|---|---|
committer | ivan <ivan> | 2008-06-05 19:24:33 +0000 |
commit | 1203e278e2ec38fcf1468da2e4f10862004bebeb (patch) | |
tree | 0a9c3155181c6443f5e6faacfa4911e944435697 /httemplate/edit/process | |
parent | 3b54099d7b5532a411bb477006d78844c0597745 (diff) |
voxlinesystems CDRs and quantity bs
Diffstat (limited to 'httemplate/edit/process')
-rw-r--r-- | httemplate/edit/process/quick-charge.cgi | 6 |
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')), |