Commit 6cf64da8 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Rename getStopDate and getStartDate to getInventoriatedStopDate and...

Rename getStopDate and getStartDate to getInventoriatedStopDate and getInventoriatedStartDate, respectively.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@1271 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 76d12f8a
...@@ -132,7 +132,7 @@ Une ligne tarifaire.""" ...@@ -132,7 +132,7 @@ Une ligne tarifaire."""
# Multiple inheritance definition # Multiple inheritance definition
updateRelatedContent = XMLMatrix.updateRelatedContent updateRelatedContent = XMLMatrix.updateRelatedContent
# Force in _edit to modify variation_base_category_list first # Force in _edit to modify variation_base_category_list first
security.declarePrivate( '_edit' ) security.declarePrivate( '_edit' )
def _edit(self, REQUEST=None, force_update = 0, **kw): def _edit(self, REQUEST=None, force_update = 0, **kw):
...@@ -146,7 +146,7 @@ Une ligne tarifaire.""" ...@@ -146,7 +146,7 @@ Une ligne tarifaire."""
# This one must be the last # This one must be the last
if kw.has_key('item_id_list'): if kw.has_key('item_id_list'):
self._setItemIdList( kw['item_id_list'] ) self._setItemIdList( kw['item_id_list'] )
security.declareProtected(Permissions.AccessContentsInformation, 'isAccountable') security.declareProtected(Permissions.AccessContentsInformation, 'isAccountable')
def isAccountable(self): def isAccountable(self):
""" """
...@@ -375,8 +375,8 @@ Une ligne tarifaire.""" ...@@ -375,8 +375,8 @@ Une ligne tarifaire."""
else: else:
return Movement.getInventoriatedQuantity(self) return Movement.getInventoriatedQuantity(self)
security.declareProtected(Permissions.AccessContentsInformation, 'getStartDate') security.declareProtected(Permissions.AccessContentsInformation, 'getInventoriatedStartDate')
def getStartDate(self): def getInventoriatedStartDate(self):
""" """
Take into account efficiency in converted target quantity Take into account efficiency in converted target quantity
""" """
...@@ -387,8 +387,8 @@ Une ligne tarifaire.""" ...@@ -387,8 +387,8 @@ Une ligne tarifaire."""
else: else:
return Movement.getStartDate(self) return Movement.getStartDate(self)
security.declareProtected(Permissions.AccessContentsInformation, 'getStopDate') security.declareProtected(Permissions.AccessContentsInformation, 'getInventoriatedStopDate')
def getStopDate(self): def getInventoriatedStopDate(self):
""" """
Take into account efficiency in converted target quantity Take into account efficiency in converted target quantity
""" """
...@@ -508,25 +508,24 @@ Une ligne tarifaire.""" ...@@ -508,25 +508,24 @@ Une ligne tarifaire."""
""" """
result = self.DeliveryLine_zGetRelatedSource(uid=self.getUid()) result = self.DeliveryLine_zGetRelatedSource(uid=self.getUid())
return map(lambda x: x.source, result) return map(lambda x: x.source, result)
def getSimulationDestinationList(self): def getSimulationDestinationList(self):
""" """
Computes the destinations in the simulation Computes the destinations in the simulation
""" """
result = self.DeliveryLine_zGetRelatedDestination(uid=self.getUid()) result = self.DeliveryLine_zGetRelatedDestination(uid=self.getUid())
return map(lambda x: x.destination, result) return map(lambda x: x.destination, result)
def getSimulationSourceSectionList(self): def getSimulationSourceSectionList(self):
""" """
Computes the source sections in the simulation Computes the source sections in the simulation
""" """
result = self.DeliveryLine_zGetRelatedSourceSection(uid=self.getUid()) result = self.DeliveryLine_zGetRelatedSourceSection(uid=self.getUid())
return map(lambda x: x.source_section, result) return map(lambda x: x.source_section, result)
def getSimulationDestinationSectionList(self): def getSimulationDestinationSectionList(self):
""" """
Computes the destination sections in the simulation Computes the destination sections in the simulation
""" """
result = self.DeliveryLine_zGetRelatedDestinationSection(uid=self.getUid()) result = self.DeliveryLine_zGetRelatedDestinationSection(uid=self.getUid())
return map(lambda x: x.destination_section, result) return map(lambda x: x.destination_section, result)
\ No newline at end of file
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