Commit 76226356 authored by Romain Courteaud's avatar Romain Courteaud

Remove methods getTotalPrice (rewrite it on Amount) and getUnitPrice (rewrite it on SupplyLine).


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@2642 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d229e95d
......@@ -166,16 +166,6 @@ class Resource(XMLMatrix, CoreResource, Variated):
def convertQuantity(self, quantity, from_unit, to_unit):
return quantity
# Pricing
security.declareProtected(Permissions.AccessContentsInformation, 'getTotalPrice')
def getTotalPrice(self, quantity, unit=None, variation=None, REQUEST=None):
return self.convertQuantity(quantity, unit, self.getDefaultQuantityUnit()) *\
self.getBasePrice()
security.declareProtected(Permissions.AccessContentsInformation, 'getUnitPrice')
def getUnitPrice(self, unit=None, variation=None, REQUEST=None):
return self.getTotalPrice(1.0, unit, variation, REQUEST)
# This patch is temporary and allows to circumvent name conflict in ZSQLCatalog process for Coramy
security.declareProtected(Permissions.AccessContentsInformation,
......
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