Commit 9f109d79 authored by Kazuhiko Shiozaki's avatar Kazuhiko Shiozaki

modify start_date or stop_date only if provided.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@31394 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0bff5e8c
......@@ -79,5 +79,9 @@ class QuantitySplitSolver(SolverMixin, ConfigurableMixin, XMLObject):
batch_mode=True) # Copy at same level
new_movement._setDelivery(None)
new_movement._setQuantity(split_quantity)
new_movement._setStartDate(configuration_dict['start_date'])
new_movement._setStopDate(configuration_dict['stop_date'])
start_date = configuration_dict.get('start_date', None)
if start_date is not None:
new_movement._setStartDate(start_date)
stop_date = configuration_dict.get('stop_date', None)
if stop_date is not None:
new_movement._setStopDate(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