Commit 999f2c89 authored by Łukasz Nowak's avatar Łukasz Nowak

Reset date only when present.

parent 39d82497
...@@ -96,8 +96,9 @@ for start_date_tuple in start_date_tuple_list:\n ...@@ -96,8 +96,9 @@ for start_date_tuple in start_date_tuple_list:\n
line = previous_open_sale_order[line_id]\n line = previous_open_sale_order[line_id]\n
if line.getStartDate() is None:\n if line.getStartDate() is None:\n
modify_kw_kw[line.getAggregate(portal_type=\'Hosting Subscription\')] = {\'start_date\': start_date}\n modify_kw_kw[line.getAggregate(portal_type=\'Hosting Subscription\')] = {\'start_date\': start_date}\n
# reset start_date to possibly already set up on Open Order Line\n else:\n
start_date = line.getStartDate()\n # reset start_date to possibly already set up on Open Order Line\n
start_date = line.getStartDate()\n
elif start_date_tuple[0] in add_kw_kw:\n elif start_date_tuple[0] in add_kw_kw:\n
add_kw_kw[start_date_tuple[0]][\'start_date\'] = start_date\n add_kw_kw[start_date_tuple[0]][\'start_date\'] = start_date\n
hs = portal.restrictedTraverse(start_date_tuple[0])\n hs = portal.restrictedTraverse(start_date_tuple[0])\n
......
673 674
\ No newline at end of file \ No newline at end of file
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