[freeside-commits] freeside/httemplate/search cust_bill_pkg.cgi, 1.7.2.3, 1.7.2.4
Ivan,,,
ivan at wavetail.420.am
Mon Jul 7 19:20:00 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/search
In directory wavetail.420.am:/tmp/cvs-serv8555/httemplate/search
Modified Files:
Tag: FREESIDE_1_7_BRANCH
cust_bill_pkg.cgi
Log Message:
fix line-item reports on taxclass-less regions
Index: cust_bill_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/search/cust_bill_pkg.cgi,v
retrieving revision 1.7.2.3
retrieving revision 1.7.2.4
diff -u -d -r1.7.2.3 -r1.7.2.4
--- cust_bill_pkg.cgi 8 Jul 2008 02:03:07 -0000 1.7.2.3
+++ cust_bill_pkg.cgi 8 Jul 2008 02:19:57 -0000 1.7.2.4
@@ -127,8 +127,17 @@
if $cgi->param('taxclass');
if ( $cgi->param('taxclassNULL') ) {
- my $same_sql = $r->sql_taxclass_sameregion;
+
+ my %hash = ( 'country' => scalar($cgi->param('country')) );
+ foreach (qw( state county )) {
+ $hash{$_} = scalar($cgi->param($_)) if $cgi->param($_);
+ }
+ my $cust_main_county = qsearchs('cust_main_county', \%hash);
+ die "unknown base region for empty taxclass" unless $cust_main_county;
+
+ my $same_sql = $cust_main_county->sql_taxclass_sameregion;
push @where, $same_sql if $same_sql;
+
}
}
More information about the freeside-commits
mailing list