banking-addons-team team mailing list archive
-
banking-addons-team team
-
Mailing list archive
-
Message #01266
[Merge] lp:~therp-nl/banking-addons/6.1-undefined_variables_ref_msg into lp:banking-addons/6.1
Stefan Rijnhart (Therp) has proposed merging lp:~therp-nl/banking-addons/6.1-undefined_variables_ref_msg into lp:banking-addons/6.1.
Requested reviews:
Banking Addons Core Editors (banking-addons-team)
For more details, see:
https://code.launchpad.net/~therp-nl/banking-addons/6.1-undefined_variables_ref_msg/+merge/201292
A recent change revealed a bug in a code path that was never reached before, in which two variables are referenced that are not available in that code path.
--
https://code.launchpad.net/~therp-nl/banking-addons/6.1-undefined_variables_ref_msg/+merge/201292
Your team Banking Addons Core Editors is requested to review the proposed merge of lp:~therp-nl/banking-addons/6.1-undefined_variables_ref_msg into lp:banking-addons/6.1.
=== modified file 'account_banking/banking_import_transaction.py'
--- account_banking/banking_import_transaction.py 2014-01-06 11:56:31 +0000
+++ account_banking/banking_import_transaction.py 2014-01-11 16:10:13 +0000
@@ -296,9 +296,9 @@
# creation. This also enables us to search for the invoice number in the
# reference instead of the other way around, as most human interventions
# *add* text.
+ ref = trans.reference.upper()
+ msg = trans.message.upper()
if len(candidates) > 1 or not candidates:
- ref = trans.reference.upper()
- msg = trans.message.upper()
# The manual usage of the sales journal creates moves that
# are not tied to invoices. Thanks to Stefan Rijnhart for
# reporting this.
Follow ups