Commit 15b109a6 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

rename FILO to LIFO, that is more widely used.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30445 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 8df209bb
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,7 @@
</item> </item>
<item> <item>
<key> <string>delivery_solver</string> </key> <key> <string>delivery_solver</string> </key>
<value> <string>FILO Solver</string> </value> <value> <string>LIFO Solver</string> </value>
</item> </item>
<item> <item>
<key> <string>delivery_solver_id</string> </key> <key> <string>delivery_solver_id</string> </key>
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
<value> <value>
<tuple> <tuple>
<string>FIFO Solver</string> <string>FIFO Solver</string>
<string>FILO Solver</string> <string>LIFO Solver</string>
</tuple> </tuple>
</value> </value>
</item> </item>
......
9 10
\ No newline at end of file \ No newline at end of file
...@@ -40,7 +40,7 @@ class DeliverySolver: ...@@ -40,7 +40,7 @@ class DeliverySolver:
Can be used to: Can be used to:
* distribute * distribute
* queue (FIFO, FILO, ...) * queue (FIFO, LIFO, ...)
* etc * etc
""" """
......
...@@ -32,16 +32,16 @@ from Products.ERP5Type import interfaces ...@@ -32,16 +32,16 @@ from Products.ERP5Type import interfaces
from FIFO import FIFO from FIFO import FIFO
class FILO(FIFO): class LIFO(FIFO):
""" """
The FILO solver reduces deliveted quantity by reducing the quantity of The LIFO solver reduces deliveted quantity by reducing the quantity of
simulation movements from the first order. simulation movements from the first order.
""" """
# Declarative interfaces # Declarative interfaces
zope.interface.implements(interfaces.IDeliverySolver) zope.interface.implements(interfaces.IDeliverySolver)
title = 'FILO Solver' title = 'LIFO Solver'
def _getSimulationMovementList(self): def _getSimulationMovementList(self):
""" """
......
...@@ -355,7 +355,7 @@ class Movement(XMLObject, Amount): ...@@ -355,7 +355,7 @@ class Movement(XMLObject, Amount):
For outgoing quantities, it is the responsability of database For outgoing quantities, it is the responsability of database
to calculate asset prices based on calculation rules (FIFO, to calculate asset prices based on calculation rules (FIFO,
FILO, AVERAGE, etc.). LIFO, AVERAGE, etc.).
""" """
# This is what we use for accounting # This is what we use for accounting
result = self.getSourceTotalAssetPrice() result = self.getSourceTotalAssetPrice()
......
...@@ -95,7 +95,7 @@ class SolverTool(BaseTool): ...@@ -95,7 +95,7 @@ class SolverTool(BaseTool):
""" """
# XXX Hardcoded for now. We need a new registration system for # XXX Hardcoded for now. We need a new registration system for
# delivery solvers. # delivery solvers.
return ['FIFO', 'FILO', 'MinPrice',] return ['FIFO', 'LIFO', 'MinPrice',]
def getDeliverySolverTranslatedItemList(self, class_name_list=None): def getDeliverySolverTranslatedItemList(self, class_name_list=None):
""" """
......
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