Commit a87da52a authored by Jean-Paul Smets's avatar Jean-Paul Smets

fixed Solanes typo

implements deliverable


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@425 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4fa82fd6
......@@ -61,6 +61,7 @@ class SplitAndDefer(CopyToTarget):
split_index += 1
new_id = "%s_split_%s" % (movement.getId(), split_index)
# Adopt different dates for defferred movements
# XXX What about quantity_unit ? resource ?
new_movement = movement.aq_parent.newContent(portal_type = "Simulation Movement",
id = new_id,
efficiency = movement.getEfficiency(),
......@@ -73,7 +74,8 @@ class SplitAndDefer(CopyToTarget):
destination = movement.getDestination(),
source_section = movement.getSourceSection(),
destination_section = movement.getDestinationSection(),
order = movement.getOrder()
order = movement.getOrder(),
deliverable = movement.isDeliverable()
)
new_movement._setTargetQuantity(target_quantity - new_target_quantity)
new_movement._setQuantity(target_quantity - new_target_quantity)
......
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