[freeside-commits] freeside/httemplate/edit/process quick-charge.cgi, 1.10.2.3, 1.10.2.4
Ivan,,,
ivan at wavetail.420.am
Thu Jun 5 12:24:40 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv22157/httemplate/edit/process
Modified Files:
Tag: FREESIDE_1_7_BRANCH
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.10.2.3
retrieving revision 1.10.2.4
diff -u -d -r1.10.2.3 -r1.10.2.4
--- quick-charge.cgi 13 Feb 2008 23:45:42 -0000 1.10.2.3
+++ quick-charge.cgi 5 Jun 2008 19:24:37 -0000 1.10.2.4
@@ -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