[freeside-commits] freeside/httemplate/edit/process cust_main_county-add.cgi, 1.1.2.2, 1.1.2.3

Ivan,,, ivan at wavetail.420.am
Tue Feb 8 20:43:05 PST 2011


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

Modified Files:
      Tag: FREESIDE_2_1_BRANCH
	cust_main_county-add.cgi 
Log Message:
tax editor fix for adding additional counties when you already have cities, RT#11144

Index: cust_main_county-add.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/cust_main_county-add.cgi,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -w -d -r1.1.2.2 -r1.1.2.3
--- cust_main_county-add.cgi	30 Jan 2011 06:33:41 -0000	1.1.2.2
+++ cust_main_county-add.cgi	9 Feb 2011 04:43:03 -0000	1.1.2.3
@@ -31,10 +31,14 @@
   my(%hash)=$cust_main_county->hash;
   my($new)=new FS::cust_main_county \%hash;
   $new->setfield('taxnum','');
+  $new->setfield('taxclass', '');
   if ( $cgi->param('what') eq 'state' ) { #??
     $new->setfield('state',$_);
+    $new->setfield('county', '');
+    $new->setfield('city', '');
   } elsif ( $cgi->param('what') eq 'county' ) {
     $new->setfield('county',$_);
+    $new->setfield('city', '');
   } elsif ( $cgi->param('what') eq 'city' ) {
     #uppercase cities in the US to try and agree with USPS validation
     $new->setfield('city', $new->country eq 'US' ? uc($_) : $_ );



More information about the freeside-commits mailing list