Merge lp:~therp-nl/banking-addons/6.1-lp1017470-period_search_ignore_special into lp:banking-addons/6.1

Proposed by Stefan Rijnhart (Opener)
Status: Merged
Merged at revision: 137
Proposed branch: lp:~therp-nl/banking-addons/6.1-lp1017470-period_search_ignore_special
Merge into: lp:banking-addons/6.1
Diff against target: 27 lines (+4/-2)
2 files modified
account_banking/wizard/bank_import.py (+2/-1)
account_banking/wizard/banktools.py (+2/-1)
To merge this branch: bzr merge lp:~therp-nl/banking-addons/6.1-lp1017470-period_search_ignore_special
Reviewer Review Type Date Requested Status
Banking Addons Core Editors Pending
Review via email: mp+112063@code.launchpad.net
To post a comment you must log in.
138. By Stefan Rijnhart (Opener)

[FIX] remove call to debugger

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'account_banking/wizard/bank_import.py'
--- account_banking/wizard/bank_import.py 2012-05-02 15:09:49 +0000
+++ account_banking/wizard/bank_import.py 2012-06-26 11:20:36 +0000
@@ -260,7 +260,8 @@
260 # Get the period for the statement (as bank statement object checks this)260 # Get the period for the statement (as bank statement object checks this)
261 period_ids = period_obj.search(cursor, uid, [('company_id','=',company.id),261 period_ids = period_obj.search(cursor, uid, [('company_id','=',company.id),
262 ('date_start','<=',statement.date),262 ('date_start','<=',statement.date),
263 ('date_stop','>=',statement.date)])263 ('date_stop','>=',statement.date),
264 ('special', '=', False)])
264265
265 # Create the bank statement record266 # Create the bank statement record
266 statement_id = statement_obj.create(cursor, uid, dict(267 statement_id = statement_obj.create(cursor, uid, dict(
267268
=== modified file 'account_banking/wizard/banktools.py'
--- account_banking/wizard/banktools.py 2012-04-14 08:58:58 +0000
+++ account_banking/wizard/banktools.py 2012-06-26 11:20:36 +0000
@@ -71,7 +71,8 @@
71 fiscalyear_id = fiscalyear_ids[0]71 fiscalyear_id = fiscalyear_ids[0]
72 period_ids = period_obj.search(cursor, uid, [72 period_ids = period_obj.search(cursor, uid, [
73 ('date_start','<=',search_date), ('date_stop','>=',search_date),73 ('date_start','<=',search_date), ('date_stop','>=',search_date),
74 ('fiscalyear_id','=',fiscalyear_id), ('state','=','draft')74 ('fiscalyear_id','=',fiscalyear_id), ('state','=','draft'),
75 ('special', '=', False),
75 ])76 ])
76 if not period_ids:77 if not period_ids:
77 log.append(_('No suitable period found for date %(date)s and company %(company_name)s')78 log.append(_('No suitable period found for date %(date)s and company %(company_name)s')

Subscribers

People subscribed via source and target branches