[IMP] Add statement line reference to search

Add the reference to the search for matching statements. When importing CAMT (Dutch banking files) the description of the invoice is filled in the reference field. The name field only has the index (eg 001), not the full text.
This commit is contained in:
Roel Adriaans
2014-07-13 14:57:05 +02:00
parent 59234d8e15
commit dc895512ba

View File

@@ -92,7 +92,7 @@ class AccountStatementCompletionRule(orm.Model):
ON
st_l.statement_id = s.id
WHERE
st_l.name ~* l.label
(st_l.name ~* l.label OR st_l.ref ~* l.label)
AND
l.profile_id = s.profile_id
AND