mifosx-538 global search functionality query fix

This commit is contained in:
mifoscontributer
2013-08-01 12:23:00 +05:30
parent e8975d93f4
commit 538039e9bd
@@ -52,7 +52,7 @@ public class SearchReadPlatformServiceImpl implements SearchReadPlatformService
public String searchSchema(final SearchConditions searchConditions) {
String union = " union all ";
String union = " union ";
String clientExactMatchSql = " (select 'CLIENT' as entityType, c.id as entityId, c.display_name as entityName, c.external_id as entityExternalId, c.account_no as entityAccountNo "
+ " , c.office_id as parentId, o.name as parentName "
+ " from m_client c join m_office o on o.id = c.office_id where o.hierarchy like :hierarchy and (c.account_no like :search or c.display_name like :search or c.external_id like :search)) ";