From 6bff0e985bd6e56bf31184df4d5ca460d5545f34 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Wed, 21 May 2008 18:12:52 +0000 Subject: Correcting more vendor search errors. git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2154 4979c152-3d1c-0410-bac9-87ea11338e46 --- sql/modules/Company.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/modules/Company.sql b/sql/modules/Company.sql index 16dcde77..63714c31 100644 --- a/sql/modules/Company.sql +++ b/sql/modules/Company.sql @@ -41,7 +41,7 @@ BEGIN AND (ec.meta_number = in_meta_number OR in_meta_number IS NULL) AND (c.legal_name like '%' || in_legal_name || '%' - OR legal_name IS NULL) + OR in_legal_name IS NULL) AND ((in_address IS NULL AND in_city IS NULL AND in_state IS NULL AND in_country IS NULL) @@ -79,7 +79,7 @@ BEGIN AND in_business_id IS NULL)) AND (ec.startdate <= coalesce(in_date_to, ec.startdate) - OR (ec.startdate IS NULL) + OR (ec.startdate IS NULL)) AND (ec.enddate >= coalesce(in_date_from, ec.enddate) OR (ec.enddate IS NULL)) LOOP -- cgit v1.2.3