[Erp5-report] r25393 - /erp5/trunk/products/ERP5/TargetSolver/SplitAndDefer.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Jan 30 17:37:21 CET 2009
Author: jerome
Date: Fri Jan 30 17:37:19 2009
New Revision: 25393
URL: http://svn.erp5.org?rev=25393&view=rev
Log:
also expand quantity_unit, source_function, destination_function,
variation_category_list, variation_property_dict and base_application_list
Modified:
erp5/trunk/products/ERP5/TargetSolver/SplitAndDefer.py
Modified: erp5/trunk/products/ERP5/TargetSolver/SplitAndDefer.py
URL: http://svn.erp5.org/erp5/trunk/products/ERP5/TargetSolver/SplitAndDefer.py?rev=25393&r1=25392&r2=25393&view=diff
==============================================================================
--- erp5/trunk/products/ERP5/TargetSolver/SplitAndDefer.py [utf8] (original)
+++ erp5/trunk/products/ERP5/TargetSolver/SplitAndDefer.py [utf8] Fri Jan 30 17:37:19 2009
@@ -56,7 +56,7 @@
while getattr(simulation_movement.getParentValue(), new_id, None) is not None:
split_index += 1
new_id = "%s_split_%s" % (simulation_movement.getId(), split_index)
- # Adopt different dates for defferred movements
+ # Adopt different dates for deferred movements
new_movement = simulation_movement.getParentValue().newContent(
portal_type="Simulation Movement",
id=new_id,
@@ -68,6 +68,7 @@
resource=simulation_movement.getResource(),
quantity=movement_quantity - new_movement_quantity,
+ quantity_unit=simulation_movement.getQuantityUnit(),
price=simulation_movement.getPrice(),
price_currency=simulation_movement.getPriceCurrency(),
@@ -76,7 +77,12 @@
destination=simulation_movement.getDestination(),
source_section=simulation_movement.getSourceSection(),
destination_section=simulation_movement.getDestinationSection(),
+ source_function=simulation_movement.getSourceFunction(),
+ destination_function=simulation_movement.getDestinationFunction(),
+ variation_category_list=simulation_movement.getVariationCategoryList(),
+ variation_property_dict=simulation_movement.getVariationPropertyDict(),
+ base_application_list=simulation_movement.getBaseApplicationList(),
base_contribution_list=simulation_movement.getBaseContributionList(),
description=simulation_movement.getDescription(),
activate_kw=self.activate_kw,
More information about the Erp5-report
mailing list