Commit 124e8d9a authored by Jérome Perrin's avatar Jérome Perrin

Remove getInventoriated[Start|Stop]Date methods that are not part of the API

parent 40261159
...@@ -68,23 +68,6 @@ class AccountingTransactionLine(DeliveryLine): ...@@ -68,23 +68,6 @@ class AccountingTransactionLine(DeliveryLine):
""" """
return Amount.getInventoriatedQuantity(self) return Amount.getInventoriatedQuantity(self)
security.declareProtected(Permissions.AccessContentsInformation,
'getInventoriatedStartDate')
def getInventoriatedStartDate(self):
"""
Get the start date.
"""
return self.getStartDate()
security.declareProtected(Permissions.AccessContentsInformation,
'getInventoriatedStopDate')
def getInventoriatedStopDate(self):
"""
Get the stop date.
"""
return self.getStopDate()
# Pricing in standard currency # Pricing in standard currency
security.declareProtected(Permissions.AccessContentsInformation, 'getPrice') security.declareProtected(Permissions.AccessContentsInformation, 'getPrice')
def getPrice(self, context=None): def getPrice(self, context=None):
...@@ -94,7 +77,7 @@ class AccountingTransactionLine(DeliveryLine): ...@@ -94,7 +77,7 @@ class AccountingTransactionLine(DeliveryLine):
converted value for source in getSourceInventoriatedTotalAssetPrice converted value for source in getSourceInventoriatedTotalAssetPrice
and getDestinationInventoriatedTotalAssetPrice for destination. and getDestinationInventoriatedTotalAssetPrice for destination.
""" """
return 1.0 return 1.0
security.declareProtected(Permissions.AccessContentsInformation, security.declareProtected(Permissions.AccessContentsInformation,
'getSourceAssetPrice') 'getSourceAssetPrice')
......
...@@ -259,18 +259,6 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, ImmobilisationMovement): ...@@ -259,18 +259,6 @@ class DeliveryLine(Movement, XMLObject, XMLMatrix, ImmobilisationMovement):
""" """
return Movement.getInventoriatedQuantity(self) return Movement.getInventoriatedQuantity(self)
security.declareProtected(Permissions.AccessContentsInformation, 'getInventoriatedStartDate')
def getInventoriatedStartDate(self):
"""
"""
return Movement.getStartDate(self)
security.declareProtected(Permissions.AccessContentsInformation, 'getInventoriatedStopDate')
def getInventoriatedStopDate(self):
"""
"""
return Movement.getStopDate(self)
# security.declarePrivate('_checkConsistency') # security.declarePrivate('_checkConsistency')
# def _checkConsistency(self, fixit=0, mapped_value_property_list = ('quantity', 'price')): # def _checkConsistency(self, fixit=0, mapped_value_property_list = ('quantity', 'price')):
# """ # """
......
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