Commit db2f8754 authored by Aurel's avatar Aurel

define getter onto banking operation line


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14323 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 914f1560
......@@ -81,3 +81,25 @@ class BankingOperationLine(BaobabMixin, AccountingTransactionLine):
return None
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)
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