clearcorp team mailing list archive
-
clearcorp team
-
Mailing list archive
-
Message #00753
[Branch ~banking-addons-team/banking-addons/6.1] Rev 166: [FIX] Do not match on very short signatures
Merge authors:
Stefan Rijnhart (Therp) (stefan-therp)
Related merge proposals:
https://code.launchpad.net/~therp-nl/banking-addons/ba6.1-do_not_match_on_very_short_signatures/+merge/161095
proposed by: Stefan Rijnhart (Therp) (stefan-therp)
review: Approve - Guewen Baconnier @ Camptocamp (gbaconnier-c2c)
review: Approve - Ronald Portier (Therp) (rportier1962)
------------------------------------------------------------
revno: 166 [merge]
author: Stefan Rijnhart <stefan@xxxxxxxx>
committer: Guewen Baconnier <guewen.baconnier@xxxxxxxxxxxxxx>
branch nick: banking-addons
timestamp: Mon 2013-04-29 08:50:26 +0200
message:
[FIX] Do not match on very short signatures
modified:
account_banking/banking_import_transaction.py
--
lp:banking-addons
https://code.launchpad.net/~banking-addons-team/banking-addons/6.1
Your team CLEARCORP development team is subscribed to branch lp:banking-addons.
To unsubscribe from this branch go to https://code.launchpad.net/~banking-addons-team/banking-addons/6.1/+edit-subscription
=== modified file 'account_banking/banking_import_transaction.py'
--- account_banking/banking_import_transaction.py 2013-03-21 13:27:19 +0000
+++ account_banking/banking_import_transaction.py 2013-04-26 08:27:33 +0000
@@ -222,7 +222,7 @@
Match on ID of invoice (reference, name or number, whatever
available and sensible)
'''
- if invoice.reference:
+ if invoice.reference and len(invoice.reference) > 2:
# Reference always comes first, as it is manually set for a
# reason.
iref = invoice.reference.upper()
@@ -230,7 +230,7 @@
return True
if invoice.type.startswith('in_'):
# Internal numbering, no likely match on number
- if invoice.name:
+ if invoice.name and len(invoice.name) > 2:
iname = invoice.name.upper()
if iname in ref or iname in msg:
return True