Commit c9b6d896 authored by Romain Courteaud's avatar Romain Courteaud

Manage variation property.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4090 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2f869800
...@@ -156,6 +156,8 @@ class TransformationRule(Rule): ...@@ -156,6 +156,8 @@ class TransformationRule(Rule):
"quantity_unit": parent_movement.getQuantityUnit(), "quantity_unit": parent_movement.getQuantityUnit(),
"variation_category_list":\ "variation_category_list":\
parent_movement.getVariationCategoryList(), parent_movement.getVariationCategoryList(),
"variation_property_dict": \
parent_movement.getVariationPropertyDict(),
"source_list": (), "source_list": (),
"source_section_list": (), "source_section_list": (),
"destination": production, "destination": production,
...@@ -241,6 +243,8 @@ class TransformationRule(Rule): ...@@ -241,6 +243,8 @@ class TransformationRule(Rule):
"source_section": production_section, "source_section": production_section,
"deliverable": 1, "deliverable": 1,
"variation_category_list": category_list, "variation_category_list": category_list,
"variation_property_dict": \
parent_movement.getVariationPropertyDict(),
'causality_value': current_supply_link, 'causality_value': current_supply_link,
"industrial_phase_list": ind_phase_list} "industrial_phase_list": ind_phase_list}
return consumed_movement_dict return consumed_movement_dict
...@@ -301,6 +305,8 @@ class TransformationRule(Rule): ...@@ -301,6 +305,8 @@ class TransformationRule(Rule):
"resource": amount.getResource(), "resource": amount.getResource(),
"variation_category_list":\ "variation_category_list":\
amount.getVariationCategoryList(), amount.getVariationCategoryList(),
"variation_property_dict": \
amount.getVariationPropertyDict(),
"quantity": amount.getQuantity() * parent_movement.getQuantity(), "quantity": amount.getQuantity() * parent_movement.getQuantity(),
"quantity_unit": amount.getQuantityUnit(), "quantity_unit": amount.getQuantityUnit(),
"destination_list": (), "destination_list": (),
......
...@@ -193,6 +193,8 @@ class TransformationSourcingRule(Rule): ...@@ -193,6 +193,8 @@ class TransformationSourcingRule(Rule):
'resource_value': parent_movement.getResourceValue(), 'resource_value': parent_movement.getResourceValue(),
'variation_category_list': parent_movement.\ 'variation_category_list': parent_movement.\
getVariationCategoryList(), getVariationCategoryList(),
"variation_property_dict": \
parent_movement.getVariationPropertyDict(),
'quantity': parent_movement.getQuantity(), 'quantity': parent_movement.getQuantity(),
'quantity_unit': parent_movement.getQuantityUnit(), 'quantity_unit': parent_movement.getQuantityUnit(),
'start_date': previous_supply_link.getStartDate(stop_date), 'start_date': previous_supply_link.getStartDate(stop_date),
......
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