Commit dd34b11d authored by Rafael Monnerat's avatar Rafael Monnerat

2006-07-28 Rafael

* Modified Order_validateData to not allow Stop Date before Start Date.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@8875 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 84410a4c
......@@ -76,6 +76,11 @@ order = state_change.object\n
error_message = \'\'\n
message_list = []\n
\n
if order.getStopDate() is not None and order.getStartDate() is not None: \n
if (order.getStopDate() < order.getStartDate()):\n
message_list.append("Stop date before Start date") \n
\n
\n
if order.getSource() is None:\n
message_list.append(\'No Source\')\n
if order.getStartDate() is None and order.getStopDate() is not None:\n
......@@ -108,7 +113,9 @@ if len(message_list) > 0:\n
</item>
<item>
<key> <string>_filepath</string> </key>
<value> <string>Script (Python):/nexedi/portal_workflow/order_workflow/scripts/Order_validateData</string> </value>
<value>
<none/>
</value>
</item>
<item>
<key> <string>_owner</string> </key>
......
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