Merge lp:~therp-nl/banking-addons/ba70-payment_move_line into lp:banking-addons

Proposed by Stefan Rijnhart (Opener)
Status: Merged
Merged at revision: 172
Proposed branch: lp:~therp-nl/banking-addons/ba70-payment_move_line
Merge into: lp:banking-addons
Diff against target: 17 lines (+5/-1)
1 file modified
account_banking_payment/model/payment_order_create.py (+5/-1)
To merge this branch: bzr merge lp:~therp-nl/banking-addons/ba70-payment_move_line
Reviewer Review Type Date Requested Status
Holger Brunn (Therp) code review Approve
Review via email: mp+167411@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Holger Brunn (Therp) (hbrunn) :
review: Approve (code review)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'account_banking_payment/model/payment_order_create.py'
2--- account_banking_payment/model/payment_order_create.py 2013-05-24 09:00:42 +0000
3+++ account_banking_payment/model/payment_order_create.py 2013-06-04 21:23:26 +0000
4@@ -98,8 +98,12 @@
5 # customer invoice number (in the case of debit order)
6 communication = line.invoice.number.replace('/', '')
7 state = 'structured'
8- if communication != line.ref:
9+ if line.invoice.number != line.ref:
10 communication2 = line.ref
11+ else:
12+ state = 'normal'
13+ communication2 = line.ref
14+
15 # support debit orders when enabled
16 if (payment.payment_order_type == 'debit' and
17 'amount_to_receive' in line):

Subscribers

People subscribed via source and target branches

to status/vote changes: