could be multiple returns from these searches, with taxclasses
authorivan <ivan>
Sat, 21 Dec 2002 10:14:48 +0000 (10:14 +0000)
committerivan <ivan>
Sat, 21 Dec 2002 10:14:48 +0000 (10:14 +0000)
FS/FS/cust_main.pm

index 890371d..1727c4b 100644 (file)
@@ -591,13 +591,13 @@ sub check {
 
 # bad idea to disable, causes billing to fail because of no tax rates later
 #  unless ( $import ) {
-    unless ( qsearchs('cust_main_county', {
+    unless ( qsearch('cust_main_county', {
       'country' => $self->country,
       'state'   => '',
      } ) ) {
       return "Unknown state/county/country: ".
         $self->state. "/". $self->county. "/". $self->country
-        unless qsearchs('cust_main_county',{
+        unless qsearch('cust_main_county',{
           'state'   => $self->state,
           'county'  => $self->county,
           'country' => $self->country,