From 389915065863ad404e2223a2f4e7aa9d06553b81 Mon Sep 17 00:00:00 2001 From: Holger Brunn Date: Mon, 28 Jan 2013 10:01:31 +0100 Subject: [PATCH] [IMP] replace Ps by zeroes, don't remove them --- account_banking_nl_clieop/wizard/clieop.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/account_banking_nl_clieop/wizard/clieop.py b/account_banking_nl_clieop/wizard/clieop.py index b85af89dd..1cf0afd4a 100644 --- a/account_banking_nl_clieop/wizard/clieop.py +++ b/account_banking_nl_clieop/wizard/clieop.py @@ -276,8 +276,8 @@ class Transaction(object): self.paymentreference = Optional(PaymentReferenceRecord) self.description = Optional(DescriptionRecord, 4) self.transaction.transactiontype = type_ - self.transaction.accountno_beneficiary = accountno_beneficiary.lstrip('P') - self.transaction.accountno_payer = accountno_payer.lstrip('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