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
1=== modified file 'account_banking/wizard/bank_import.py'
2--- account_banking/wizard/bank_import.py 2012-05-02 15:09:49 +0000
3+++ account_banking/wizard/bank_import.py 2012-06-26 11:20:36 +0000
4@@ -260,7 +260,8 @@
5 # Get the period for the statement (as bank statement object checks this)
6 period_ids = period_obj.search(cursor, uid, [('company_id','=',company.id),
7 ('date_start','<=',statement.date),
8- ('date_stop','>=',statement.date)])
9+ ('date_stop','>=',statement.date),
10+ ('special', '=', False)])
11
12 # Create the bank statement record
13 statement_id = statement_obj.create(cursor, uid, dict(
14
15=== modified file 'account_banking/wizard/banktools.py'
16--- account_banking/wizard/banktools.py 2012-04-14 08:58:58 +0000
17+++ account_banking/wizard/banktools.py 2012-06-26 11:20:36 +0000
18@@ -71,7 +71,8 @@
19 fiscalyear_id = fiscalyear_ids[0]
20 period_ids = period_obj.search(cursor, uid, [
21 ('date_start','<=',search_date), ('date_stop','>=',search_date),
22- ('fiscalyear_id','=',fiscalyear_id), ('state','=','draft')
23+ ('fiscalyear_id','=',fiscalyear_id), ('state','=','draft'),
24+ ('special', '=', False),
25 ])
26 if not period_ids:
27 log.append(_('No suitable period found for date %(date)s and company %(company_name)s')

Subscribers

People subscribed via source and target branches