diff options
author | jeff <jeff> | 2008-12-04 01:46:20 +0000 |
---|---|---|
committer | jeff <jeff> | 2008-12-04 01:46:20 +0000 |
commit | 69676e2af001ffd5eec980bf977cc447c11ac3a9 (patch) | |
tree | 5df39e546577ff35b66d3a878f4d50c1d904e638 | |
parent | 2e105901d955aed4cecdad793defb8aa477966ed (diff) |
better behavior when zip code is missing
-rw-r--r-- | httemplate/edit/cust_main/choose_tax_location.html | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/httemplate/edit/cust_main/choose_tax_location.html b/httemplate/edit/cust_main/choose_tax_location.html index 23fdbf282..045490b55 100644 --- a/httemplate/edit/cust_main/choose_tax_location.html +++ b/httemplate/edit/cust_main/choose_tax_location.html @@ -50,7 +50,10 @@ my $hashref = { data_vendor => $data_vendor, my @keys = qw ( zip ); my @cust_tax_location = (); until ( @cust_tax_location ) { - @cust_tax_location = qsearch( 'cust_tax_location', $hashref ); + @cust_tax_location = qsearch({ table => 'cust_tax_location', + hashref => $hashref, + order_by => 'LIMIT 50', + }); last unless scalar(@keys); delete $hashref->{ shift @keys }; } |