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
=== modified file 'account_banking_payment/model/payment_order_create.py'
--- account_banking_payment/model/payment_order_create.py 2013-05-24 09:00:42 +0000
+++ account_banking_payment/model/payment_order_create.py 2013-06-04 21:23:26 +0000
@@ -98,8 +98,12 @@
98 # customer invoice number (in the case of debit order)98 # customer invoice number (in the case of debit order)
99 communication = line.invoice.number.replace('/', '')99 communication = line.invoice.number.replace('/', '')
100 state = 'structured'100 state = 'structured'
101 if communication != line.ref:101 if line.invoice.number != line.ref:
102 communication2 = line.ref102 communication2 = line.ref
103 else:
104 state = 'normal'
105 communication2 = line.ref
106
103 # support debit orders when enabled107 # support debit orders when enabled
104 if (payment.payment_order_type == 'debit' and108 if (payment.payment_order_type == 'debit' and
105 'amount_to_receive' in line):109 'amount_to_receive' in line):

Subscribers

People subscribed via source and target branches

to status/vote changes: