diff --git a/product/ERP5/interfaces/divergence_tester.py b/product/ERP5/interfaces/divergence_tester.py index d79f89b9c51e52b966bbceb511badd86d41710b9..661b852aba37284caca7f4e114616fed548f0c3a 100644 --- a/product/ERP5/interfaces/divergence_tester.py +++ b/product/ERP5/interfaces/divergence_tester.py @@ -99,8 +99,8 @@ class IDivergenceTester(Interface): def compare(prevision_movement, decision_movement): """ Returns True if prevision_movement and delivery_movement - match. Returns False else. The method is asymmetric and - the order of parameter matters. For example, a sourcing + match. Returns False otherwise. The method is asymmetric and + the order of parameters matters. For example, a sourcing rule may use a tester which makes sure that movements are delivered no sooner than 2 weeks before production but no later than the production date. @@ -116,8 +116,8 @@ class IDivergenceTester(Interface): def getUpdatablePropertyDict(prevision_movement, decision_movement): """ - Returns a list of properties to update on decision_movement - prevision_movement so that next call to compare returns True. + Returns a mapping of properties to update on decision_movement so that next + call to compare against prevision_movement returns True. prevision_movement -- a simulation movement (prevision) diff --git a/product/ERP5/mixin/equivalence_tester.py b/product/ERP5/mixin/equivalence_tester.py index cdadd67c69ee7b4a2e79b659fb65ce412880bd7b..6ef0c3c69128f46881f8a6eeeeb8d7fed06660ef 100644 --- a/product/ERP5/mixin/equivalence_tester.py +++ b/product/ERP5/mixin/equivalence_tester.py @@ -119,8 +119,8 @@ class EquivalenceTesterMixin: def compare(self, prevision_movement, decision_movement): """ Returns True if prevision_movement and delivery_movement - match. Returns False else. The method is asymmetric and - the order of parameter matters. For example, a sourcing + match. Returns False otherwise. The method is asymmetric and + the order of parameters matters. For example, a sourcing rule may use a tester which makes sure that movements are delivered no sooner than 2 weeks before production but no later than the production date. @@ -202,8 +202,8 @@ class EquivalenceTesterMixin: def getUpdatablePropertyDict(self, prevision_movement, decision_movement): """ - Returns a list of properties to update on decision_movement - prevision_movement so that next call to compare returns True. + Returns a mapping of properties to update on decision_movement so that next + call to compare against prevision_movement returns True. prevision_movement -- a simulation movement (prevision)