Commit 2570c716 authored by Fabien Morin's avatar Fabien Morin

uncomment date checks, change a bit portal_status_message

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27542 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2bbb5d8d
......@@ -70,11 +70,11 @@ def redirect(msg):\n
if not paysheet.getPriceCurrency():\n
return redirect(\'Currency must be defined\')\n
\n
#if not paysheet.getStartDate():\n
# return redirect(\'Work Period Start must be defined\')\n
#\n
#if not paysheet.getStopDate():\n
# return redirect(\'Work Period End must be defined\')\n
if not paysheet.getStartDate():\n
return redirect(\'Work Period Start must be defined\')\n
\n
if not paysheet.getStopDate():\n
return redirect(\'Work Period End must be defined\')\n
\n
if not employee:\n
return redirect(\'The employee must be defined\')\n
......@@ -95,7 +95,7 @@ if not employee_obj.getMaritalStatusId():\n
return redirect(\'The employee must have a marital status\')\n
\n
context.applyTransformation()\n
msg = Base_translateString(\'Pay sheet lines created.\')\n
msg = Base_translateString(\'Pay sheet lines updated.\')\n
return context.Base_redirect(\'view\',\n
keep_items=dict(portal_status_message=msg))\n
</string> </value>
......
469
\ No newline at end of file
470
\ 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