[Erp5-report] r16803 - /erp5/trunk/products/ERP5Banking/Document/BankingOperationLine.py

nobody at svn.erp5.org nobody at svn.erp5.org
Wed Oct 3 17:18:04 CEST 2007


Author: aurel
Date: Wed Oct  3 17:18:03 2007
New Revision: 16803

URL: http://svn.erp5.org?rev=16803&view=rev
Log:
no need to redefine method for Source/DestinationTotalAssetPrice
getBaobabSource/Destination must return a default bank account in any
cases

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=16803&r1=16802&r2=16803&view=diff
==============================================================================
--- erp5/trunk/products/ERP5Banking/Document/BankingOperationLine.py (original)
+++ erp5/trunk/products/ERP5Banking/Document/BankingOperationLine.py Wed Oct  3 17:18:03 2007
@@ -49,16 +49,6 @@
                     , PropertySheet.DublinCore
                     )
 
-  security.declareProtected(Permissions.View, 'getSourceTotalAssetPrice')
-  def getSourceTotalAssetPrice(self):
-    """Default to quantity."""
-    return self._baseGetSourceTotalAssetPrice() or abs(self.getQuantity())
-
-  security.declareProtected(Permissions.View, 'getDestinationTotalAssetPrice')
-  def getDestinationTotalAssetPrice(self):
-    """Default to quantity."""
-    return self._baseGetDestinationTotalAssetPrice() or abs(self.getQuantity())
-
   security.declareProtected(Permissions.View, 'getSourceTotalAssetPriceCurrencyReference')
   def getSourceTotalAssetPriceCurrencyReference(self):
     """Return the reference of the price currency of the source payment."""
@@ -102,3 +92,16 @@
     else:
       return src.getInternalBankAccountNumber(default)
 
+  security.declareProtected(Permissions.View, 'getBaobabSource')
+  def getBaobabSource(self, **kw):
+    """
+    getter for source payment
+    """
+    return "account_module/bank_account"
+
+  security.declareProtected(Permissions.View, 'getBaobabDestination')
+  def getBaobabDestination(self, **kw):
+    """
+    getter for destination payment
+    """
+    return "account_module/bank_account"




More information about the Erp5-report mailing list