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 @@
</item>
<item>
<key> <string>delivery_solver</string> </key>
<value> <string>FILO Solver</string> </value>
<value> <string>LIFO Solver</string> </value>
</item>
<item>
<key> <string>delivery_solver_id</string> </key>
......
......@@ -32,7 +32,7 @@
<value>
<tuple>
<string>FIFO Solver</string>
<string>FILO Solver</string>
<string>LIFO Solver</string>
</tuple>
</value>
</item>
......
9
\ No newline at end of file
10
\ No newline at end of file
......@@ -40,7 +40,7 @@ class DeliverySolver:
Can be used to:
* distribute
* queue (FIFO, FILO, ...)
* queue (FIFO, LIFO, ...)
* etc
"""
......
......@@ -32,16 +32,16 @@ from Products.ERP5Type import interfaces
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.
"""
# Declarative interfaces
zope.interface.implements(interfaces.IDeliverySolver)
title = 'FILO Solver'
title = 'LIFO Solver'
def _getSimulationMovementList(self):
"""
......
......@@ -355,7 +355,7 @@ class Movement(XMLObject, Amount):
For outgoing quantities, it is the responsability of database
to calculate asset prices based on calculation rules (FIFO,
FILO, AVERAGE, etc.).
LIFO, AVERAGE, etc.).
"""
# This is what we use for accounting
result = self.getSourceTotalAssetPrice()
......
......@@ -95,7 +95,7 @@ class SolverTool(BaseTool):
"""
# XXX Hardcoded for now. We need a new registration system for
# delivery solvers.
return ['FIFO', 'FILO', 'MinPrice',]
return ['FIFO', 'LIFO', 'MinPrice',]
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