Commit fbd2e035 authored by Jérome Perrin's avatar Jérome Perrin

also expand quantity_unit, source_function, destination_function,

variation_category_list, variation_property_dict and base_application_list


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25393 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5e7c9ec3
......@@ -56,7 +56,7 @@ class SplitAndDefer(CopyToTarget):
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 @@ class SplitAndDefer(CopyToTarget):
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 @@ class SplitAndDefer(CopyToTarget):
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,
......
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