[Erp5-report] r30653 - /erp5/trunk/products/ERP5/Document/SimulationMovement.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Mon Nov 16 11:10:02 CET 2009
Author: jp
Date: Mon Nov 16 11:09:56 2009
New Revision: 30653
URL: http://svn.erp5.org?rev=30653&view=rev
Log:
Added method place holders. Added interface declaration. Added comments to explain why getCorrectedQuantity based on profit quantity is not good.
Modified:
erp5/trunk/products/ERP5/Document/SimulationMovement.py
Modified: erp5/trunk/products/ERP5/Document/SimulationMovement.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/Document/SimulationMovement.py?rev=30653&r1=30652&r2=30653&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/Document/SimulationMovement.py [utf8] (original)
+++ erp5/trunk/products/ERP5/Document/SimulationMovement.py [utf8] Mon Nov 16 11:09:56 2009
@@ -1,3 +1,4 @@
+# -*- coding: utf-8 -*-
##############################################################################
#
# Copyright (c) 2002 Nexedi SARL and Contributors. All Rights Reserved.
@@ -120,6 +121,9 @@
, PropertySheet.Reference
)
+ # Declarative interfaces
+ zope.interface.implements(interfaces.IPropertyRecordable, )
+
def tpValues(self) :
""" show the content in the left pane of the ZMI """
return self.objectValues()
@@ -450,6 +454,11 @@
"""
Returns the quantity property deducted by the possible profit_quantity and
taking into account delivery error
+
+ NOTE: XXX-JPS This method should not use profit_quantity. Profit and loss
+ quantities are now only handled through explicit movements.
+ Look are invocations of _isProfitAndLossMovement in
+ ERP5.mixin.rule to understand how.
"""
quantity = self.getQuantity()
profit_quantity = self.getProfitQuantity() or 0
@@ -612,3 +621,42 @@
return True
return False
return False
+
+ def getSolverProcessValueList(self, movement=None, validation_state=None):
+ """
+ Returns the list of solver processes which are
+ are in a given state and which apply to delivery_or_movement.
+ This method is useful to find applicable solver processes
+ for a delivery.
+
+ movement -- not applicable
+
+ validation_state -- a state of a list of states
+ to filter the result
+ """
+ raise NotImplementedError
+
+ def getSolverDecisionValueList(self, movement=None, validation_state=None):
+ """
+ Returns the list of solver decisions which apply
+ to a given movement.
+
+ movement -- not applicable
+
+ validation_state -- a state of a list of states
+ to filter the result
+ """
+ raise NotImplementedError
+
+ def getSolvedPropertyApplicationValueList(self, movement=None, divergence_tester=None):
+ """
+ Returns the list of documents at which a given divergence resolution
+ can be resolved at. For example, in most cases, date divergences can
+ only be resolved at delivery level whereas quantities are usually
+ resolved at cell level.
+
+ The result of this method is a list of ERP5 documents.
+
+ movement -- not applicable
+ """
+ raise NotImplementedError
More information about the Erp5-report
mailing list