From 0cc86c6db73cee2f236b220636305150c797597f Mon Sep 17 00:00:00 2001 From: ivan Date: Fri, 16 Sep 2005 08:18:31 +0000 Subject: [PATCH] with taxclasses, might have multiple records for a state/county/country --- FS/FS/cust_main.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, -- 2.11.0