[freeside-commits] freeside/httemplate/edit/cust_main choose_tax_location.html, 1.1, 1.2
Jeff Finucane,420,,
jeff at wavetail.420.am
Wed Dec 3 17:46:23 PST 2008
Update of /home/cvs/cvsroot/freeside/httemplate/edit/cust_main
In directory wavetail.420.am:/tmp/cvs-serv23584
Modified Files:
choose_tax_location.html
Log Message:
better behavior when zip code is missing
Index: choose_tax_location.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/cust_main/choose_tax_location.html,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- choose_tax_location.html 3 Dec 2008 01:42:24 -0000 1.1
+++ choose_tax_location.html 4 Dec 2008 01:46:20 -0000 1.2
@@ -50,7 +50,10 @@
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 };
}
More information about the freeside-commits
mailing list