Merge authors:
  Holger Brunn (Therp) (hbrunn)
Related merge proposals:
  
https://code.launchpad.net/~hbrunn/banking-addons/lp-1106831-handle-P/+merge/145129
  proposed by: Holger Brunn (Therp) (hbrunn)
  review: Approve - Stefan Rijnhart (Therp) (stefan-therp)
------------------------------------------------------------
revno: 159 [merge]
author: [email protected]
committer: Stefan Rijnhart <[email protected]>
branch nick: banking-addons
timestamp: Mon 2013-01-28 11:19:32 +0100
message:
  [FIX] Handle NL Postbank account marker 'P' correctly in Clieop export
modified:
  account_banking_nl_clieop/wizard/clieop.py


--
lp:banking-addons
https://code.launchpad.net/~banking-addons-team/banking-addons/6.1

Your team CLEARCORP development team is subscribed to branch lp:banking-addons.
To unsubscribe from this branch go to 
https://code.launchpad.net/~banking-addons-team/banking-addons/6.1/+edit-subscription
=== modified file 'account_banking_nl_clieop/wizard/clieop.py'
--- account_banking_nl_clieop/wizard/clieop.py	2013-01-14 15:21:11 +0000
+++ account_banking_nl_clieop/wizard/clieop.py	2013-01-28 10:19:32 +0000
@@ -276,8 +276,9 @@
         self.paymentreference = Optional(PaymentReferenceRecord)
         self.description = Optional(DescriptionRecord, 4)
         self.transaction.transactiontype = type_
-        self.transaction.accountno_beneficiary = accountno_beneficiary
-        self.transaction.accountno_payer = accountno_payer
+        # Remove Postbank account marker 'P'
+        self.transaction.accountno_beneficiary = accountno_beneficiary.replace('P', '0')
+        self.transaction.accountno_payer = accountno_payer.replace('P', '0')
         self.transaction.amount = int(round(amount * 100))
         if reference:
             self.paymentreference.paymentreference = reference

_______________________________________________
Mailing list: https://launchpad.net/~clearcorp
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~clearcorp
More help   : https://help.launchpad.net/ListHelp

Reply via email to