Commit 019db530 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

fix typos only.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@30771 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent fd9e1032
...@@ -24,39 +24,39 @@ ...@@ -24,39 +24,39 @@
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# #
############################################################################## ##############################################################################
""" """
Products.ERP5.interfaces.amount_generator
""" """
from zope.interface import Interface from zope.interface import Interface
class IAmountGenerator(Interface): class IAmountGenerator(Interface):
"""Amount Generator interface specification """Amount Generator interface specification
Documents which implement IAmountGenerator Documents which implement IAmountGenerator
can be used to generate an IAmountList from can be used to generate an IAmountList from
an existing IMovementCollection, IAmountList or an existing IMovementCollection, IAmountList or
IAmount. Typical IMovementGenerator are Transformations IAmount. Typical IAmountGenerator are Transformations
and Trade Conditions. and Trade Conditions.
""" """
def getAggregatedAmountList(context, movement_list=None, rounding=False): def getAggregatedAmountList(context, movement_list=None, rounding=False):
""" """
Returns an IAmountList generated by a model a model applied to the Returns an IAmountList generated by a model applied to the context.
context.
context - an IMovementCollection, an IAmountList or an IAmount context - an IMovementCollection, an IAmountList or an IAmount
movement_list - optional IAmountList which can be passed explicitely movement_list - optional IAmountList which can be passed explicitly
whenever context is an IMovementCollection and whenever whenever context is an IMovementCollection and whenever
we want to filter context.geMovementList we want to filter context.getMovementList
rounding - boolean argument, which controls if rounding shall be applied on rounding - boolean argument, which controls if rounding shall be applied on
generated movements or not generated movements or not
NOTE: NOTE:
- implement rounding appropriately (True or False seems - implement rounding appropriately (True or False seems
simplistic) simplistic)
""" """
...@@ -24,15 +24,18 @@ ...@@ -24,15 +24,18 @@
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
# #
############################################################################## ##############################################################################
"""
Products.ERP5.interfaces.movement_generator
"""
from zope.interface import Interface from zope.interface import Interface
class IMovementGenerator(Interface): class IMovementGenerator(Interface):
"""Movement Generator interface specification """Movement Generator interface specification
Documents which implement IMovementGenerator Documents which implement IMovementGenerator
can be used to generate an IMovementList from can be used to generate an IMovementList from
an existing IMovementCollection, IMovementList or an existing IMovementCollection, IMovementList or
...@@ -42,19 +45,18 @@ class IMovementGenerator(Interface): ...@@ -42,19 +45,18 @@ class IMovementGenerator(Interface):
def getAggregatedMovementList(context, movement_list=None, rounding=False): def getAggregatedMovementList(context, movement_list=None, rounding=False):
""" """
Returns an IMovementList generated by a model a model applied to the Returns an IMovementList generated by a model applied to the context.
context.
context - an IMovementCollection, an IMovementList or an IMovement context - an IMovementCollection, an IMovementList or an IMovement
movement_list - optional IMovementList which can be passed explicitely movement_list - optional IMovementList which can be passed explicitely
whenever context is an IMovementCollection and whenever whenever context is an IMovementCollection and whenever
we want to filter context.geMovementList we want to filter context.getMovementList
rounding - boolean argument, which controls if rounding shall be applied on rounding - boolean argument, which controls if rounding shall be applied on
generated movements or not generated movements or not
NOTE: NOTE:
- implement rounding appropriately (True or False seems - implement rounding appropriately (True or False seems
simplistic) simplistic)
""" """
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