[Erp5-report] r14323 - /erp5/trunk/products/ERP5Banking/Document/BankingOperationLine.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Thu May 3 13:28:53 CEST 2007
Author: aurel
Date: Thu May 3 13:28:53 2007
New Revision: 14323
URL: http://svn.erp5.org?rev=14323&view=rev
Log:
define getter onto banking operation line
Modified:
erp5/trunk/products/ERP5Banking/Document/BankingOperationLine.py
Modified: erp5/trunk/products/ERP5Banking/Document/BankingOperationLine.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5Banking/Document/BankingOperationLine.py?rev=14323&r1=14322&r2=14323&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/Document/BankingOperationLine.py (original)
+++ erp5/trunk/products/ERP5Banking/Document/BankingOperationLine.py Thu May 3 13:28:53 2007
@@ -81,3 +81,25 @@
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)
+
More information about the Erp5-report
mailing list