Commit 0c9d9206 authored by Julien Muchembled's avatar Julien Muchembled

Amount Generator: typos

parent 420d14f8
...@@ -38,7 +38,7 @@ from Products.ERP5.Document.MappedValue import MappedValue ...@@ -38,7 +38,7 @@ from Products.ERP5.Document.MappedValue import MappedValue
# XXX What should be done when there is no base_application ? # XXX What should be done when there is no base_application ?
# There are 2 options: # There are 2 options:
# 1. Make the amount generator line always apply, once, which provides an # 1. Make the amount generator line always apply, once, which provides an
# easy way to generator a fixed quantity. # easy way to generate a fixed quantity.
# 2. Use this criterion to know if a movement was created manually. # 2. Use this criterion to know if a movement was created manually.
# This is required to not generate amounts from movements that # This is required to not generate amounts from movements that
# are already the result of generated amounts. # are already the result of generated amounts.
...@@ -106,12 +106,12 @@ class BaseAmountDict(Implicit): ...@@ -106,12 +106,12 @@ class BaseAmountDict(Implicit):
getGeneratedAmountQuantity__roles__ = None # public getGeneratedAmountQuantity__roles__ = None # public
def getGeneratedAmountQuantity(self, base_amount, variation_category_list=()): def getGeneratedAmountQuantity(self, base_amount, variation_category_list=()):
"""Get final computed quantity for given base_amount """Get final computed quantity for the given base_amount
Note: During a call to getQuantity, this method may be called again by If not yet finalized, this method actually calls the (custom) method that
getGeneratedAmountQuantity for the same amount and key. actually computes the final quantity, which in turn usually calls this
In this case, the returned value is the last intermediate value just method again, for the same amount and key: in this case, the returned value
before finalization. of this inner call is the last intermediate value just before finalization.
""" """
variated_base_amount = base_amount, variation_category_list variated_base_amount = base_amount, variation_category_list
if variated_base_amount in self._frozen: if variated_base_amount in self._frozen:
...@@ -170,7 +170,7 @@ class AmountGeneratorMixin: ...@@ -170,7 +170,7 @@ class AmountGeneratorMixin:
- is rounding really well supported (ie. before and after aggregation) - is rounding really well supported (ie. before and after aggregation)
very likely not - proxying before or after must be decided very likely not - proxying before or after must be decided
""" """
# It is the only place we can import this # It is the only place where we can import this
from Products.ERP5Type.Document import newTempAmount from Products.ERP5Type.Document import newTempAmount
portal = self.getPortalObject() portal = self.getPortalObject()
getRoundingProxy = portal.portal_roundings.getRoundingProxy getRoundingProxy = portal.portal_roundings.getRoundingProxy
...@@ -289,7 +289,7 @@ class AmountGeneratorMixin: ...@@ -289,7 +289,7 @@ class AmountGeneratorMixin:
# Ignore line (i.e. self) if cells produce unrelated amounts. # Ignore line (i.e. self) if cells produce unrelated amounts.
# With Transformed Resource (Transformation), line is considered in # With Transformed Resource (Transformation), line is considered in
# order to gather common properties and cells are used to describe # order to gather common properties and cells are used to describe
# varianted properties: only 1 amount is produced. # variated properties: only 1 amount is produced.
# In cases like trade, payroll or assorted resources, # In cases like trade, payroll or assorted resources,
# we want to ignore the line if they are cells. # we want to ignore the line if they are cells.
# See also implementations of 'getCellAggregateKey' # See also implementations of 'getCellAggregateKey'
......
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