Commit 8af93c2e authored by Aurel's avatar Aurel

define new getter for intetnal bank account number


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14107 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f8d5b5fa
......@@ -68,7 +68,27 @@ class BankingOperation(BaobabMixin, AccountingTransaction):
"""
Delivery.manage_beforeDelete(self, item, container)
security.declareProtected(Permissions.View, 'getDestinationPaymentInternalBankAccountNumber')
def getDestinationPaymentInternalBankAccountNumber(self, default=None):
"""
Getter for internal account number
"""
dest = self.getDestinationPaymentValue(default)
if dest is default:
return default
else:
return dest.getInternalBankAccountNumber(default)
security.declareProtected(Permissions.View, 'getSourcePaymentInternalBankAccountNumber')
def getSourcePaymentInternalBankAccountNumber(self, default=None):
"""
Getter for internal account number
"""
src = self.getSourcePaymentValue(default)
if src is default:
return default
else:
return src.getInternalBankAccountNumber(default)
### Dynamic patch
Delivery.getBaobabSourceUid = lambda x: x.getSourceUid()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment