mirror of
https://github.com/OCA/bank-payment.git
synced 2025-02-02 10:37:31 +02:00
[IMP] allow P-numbers for accounts
This commit is contained in:
@@ -388,7 +388,7 @@ class Batch(object):
|
||||
def total_accountnos(self):
|
||||
'''check number on account numbers'''
|
||||
return reduce(lambda x,y:
|
||||
x + int(y.transaction.accountno_payer) + \
|
||||
x + int(y.transaction.accountno_payer if not y.transaction.accountno_payer[0:1]=='P' else y.transaction.accountno_payer[1:]) + \
|
||||
int(y.transaction.accountno_beneficiary),
|
||||
self.transactions, 0
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user