[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb:[6639] trunk/sql/modules/Report.sql



Revision: 6639
          http://sourceforge.net/p/ledger-smb/code/6639
Author:   einhverfr
Date:     2014-01-25 14:13:52 +0000 (Sat, 25 Jan 2014)
Log Message:
-----------
Fixing search for transaction search again.  Now the following pull up customers including 'Orchards' in their names:  Orcharding, Orc, ard

Modified Paths:
--------------
    trunk/sql/modules/Report.sql

Modified: trunk/sql/modules/Report.sql
===================================================================
--- trunk/sql/modules/Report.sql	2014-01-25 14:08:43 UTC (rev 6638)
+++ trunk/sql/modules/Report.sql	2014-01-25 14:13:52 UTC (rev 6639)
@@ -514,7 +514,7 @@
        EXISTS (select * from acc_trans 
                where trans_id = a.id AND chart_id = in_account_id))
        AND (in_entity_name IS NULL 
-           OR eeca.name ilike in_entity_name || '%'
+           OR eeca.name ilike '%' || in_entity_name || '%'
            OR eeca.name @@ plainto_tsquery(in_entity_name))
        AND (in_meta_number IS NULL OR eca.meta_number ilike in_meta_number)
        AND (in_employee_id = ee.entity_id OR in_employee_id IS NULL)

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Ledger-smb-commits mailing list
..hidden..
https://lists.sourceforge.net/lists/listinfo/ledger-smb-commits