Commit b438a8e1 authored by Łukasz Nowak's avatar Łukasz Nowak

Find the newest packing list only with proper simulation states.

parent 0d6f1c23
...@@ -88,9 +88,10 @@ def getCurrentDeliveryLine(software_release, computer):\n ...@@ -88,9 +88,10 @@ def getCurrentDeliveryLine(software_release, computer):\n
),\n ),\n
portal_type=\'Purchase Packing List Line\',\n portal_type=\'Purchase Packing List Line\',\n
sort_on=((\'movement.start_date\', \'DESC\'),),\n sort_on=((\'movement.start_date\', \'DESC\'),),\n
simulation_state=(\'confirmed\', \'started\', \'stopped\', \'delivered\'),\n
limit=1\n limit=1\n
)\n )\n
\n assert current_delivery_line.getParentValue().getSimulationState() in (\'confirmed\', \'started\', \'stopped\', \'delivered\')\n
return current_delivery_line\n return current_delivery_line\n
\n \n
current_packing_list_line = getCurrentDeliveryLine(software_release, computer)\n current_packing_list_line = getCurrentDeliveryLine(software_release, computer)\n
......
143 144
\ 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