From: ivan Date: Fri, 16 Sep 2005 08:18:31 +0000 (+0000) Subject: with taxclasses, might have multiple records for a state/county/country X-Git-Tag: BEFORE_FINAL_MASONIZE~391 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=0cc86c6db73cee2f236b220636305150c797597f with taxclasses, might have multiple records for a state/county/country --- diff --git a/FS/FS/cust_main.pm b/FS/FS/cust_main.pm index bbe01bda6..733a242c9 100644 --- a/FS/FS/cust_main.pm +++ b/FS/FS/cust_main.pm @@ -1035,7 +1035,7 @@ sub check { } ) ) { return "Unknown state/county/country: ". $self->state. "/". $self->county. "/". $self->country - unless qsearch('cust_main_county',{ + unless qsearc('cust_main_county',{ 'state' => $self->state, 'county' => $self->county, 'country' => $self->country, @@ -1082,7 +1082,7 @@ sub check { } ) ) { return "Unknown ship_state/ship_county/ship_country: ". $self->ship_state. "/". $self->ship_county. "/". $self->ship_country - unless qsearchs('cust_main_county',{ + unless qsearch('cust_main_county',{ 'state' => $self->ship_state, 'county' => $self->ship_county, 'country' => $self->ship_country,