[freeside-commits] freeside/httemplate/edit/process quick-charge.cgi, 1.13, 1.14

Ivan,,, ivan at wavetail.420.am
Thu Jun 5 12:24:35 PDT 2008


Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv22150/httemplate/edit/process

Modified Files:
	quick-charge.cgi 
Log Message:
voxlinesystems CDRs and quantity bs

Index: quick-charge.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/quick-charge.cgi,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- quick-charge.cgi	13 Feb 2008 23:46:52 -0000	1.13
+++ quick-charge.cgi	5 Jun 2008 19:24:33 -0000	1.14
@@ -30,6 +30,11 @@
   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 @@
 
   $error ||= $cust_main->charge( {
     'amount'     => $amount,
+    'quantity'   => $quantity,
     'pkg'        => scalar($cgi->param('pkg')),
     'taxclass'   => scalar($cgi->param('taxclass')),
     'classnum'   => scalar($cgi->param('classnum')),



More information about the freeside-commits mailing list