[freeside-commits] freeside/httemplate/search cust_tax_adjustment.html, 1.1, 1.2
Ivan,,,
ivan at wavetail.420.am
Thu Jun 25 12:06:26 PDT 2009
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv5351
Modified Files:
cust_tax_adjustment.html
Log Message:
fix tax adjustment report
Index: cust_tax_adjustment.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_tax_adjustment.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- cust_tax_adjustment.html 25 Jun 2009 01:28:53 -0000 1.1
+++ cust_tax_adjustment.html 25 Jun 2009 19:06:24 -0000 1.2
@@ -27,11 +27,13 @@
my $hashref = {};
-my $custnum = $cgi->param('custnum');
-my $cust_main;
-if ( $custnum ) {
+my $custnum = '';
+my $cust_main = '';
+if ( $cgi->param('custnum') =~ /^(\d+)$/ ) {
+ $custnum = $1;
$cust_main = qsearchs('cust_main', { 'custnum' => $custnum } );
$hashref->{'custnum'} = $custnum;
+ $count_query .= " WHERE custnum = $custnum ";
}
my $title = 'Tax adjustments';
More information about the freeside-commits
mailing list