mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user