diff options
| author | cvs2git <cvs2git> | 2002-08-12 06:17:10 +0000 |
|---|---|---|
| committer | cvs2git <cvs2git> | 2002-08-12 06:17:10 +0000 |
| commit | 160be29a0dc62e79a4fb95d2ab8c0c7e5996760e (patch) | |
| tree | 94ebadb17321b138fd7bfd9a5c379eec97c5d328 /httemplate/edit/process/cust_main_county-collapse.cgi | |
| parent | 3ef62a0570055da710328937e7f65dbb2c027c62 (diff) | |
This commit was manufactured by cvs2svn to create branch 'BESTPRACTICAL'.
Diffstat (limited to 'httemplate/edit/process/cust_main_county-collapse.cgi')
| -rwxr-xr-x | httemplate/edit/process/cust_main_county-collapse.cgi | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/httemplate/edit/process/cust_main_county-collapse.cgi b/httemplate/edit/process/cust_main_county-collapse.cgi deleted file mode 100755 index 8e67140a8..000000000 --- a/httemplate/edit/process/cust_main_county-collapse.cgi +++ /dev/null @@ -1,35 +0,0 @@ -<% - -my($query) = $cgi->keywords; -$query =~ /^(\d+)$/ or die "Illegal taxnum!"; -my $taxnum = $1; -my $cust_main_county = qsearchs('cust_main_county',{'taxnum'=>$taxnum}) - or die ("Unknown taxnum!"); - -#really should do this in a .pm & start transaction - -foreach my $delete ( qsearch('cust_main_county', { - 'country' => $cust_main_county->country, - 'state' => $cust_main_county->state - } ) ) { -# unless ( qsearch('cust_main',{ -# 'state' => $cust_main_county->getfield('state'), -# 'county' => $cust_main_county->getfield('county'), -# 'country' => $cust_main_county->getfield('country'), -# } ) ) { - my $error = $delete->delete; - die $error if $error; -# } else { - #should really fix the $cust_main record -# } - -} - -$cust_main_county->taxnum(''); -$cust_main_county->county(''); -my $error = $cust_main_county->insert; -die $error if $error; - -print $cgi->redirect(popurl(3). "browse/cust_main_county.cgi"); - -%> |
