Commit e97dfa48 authored by Sebastien Robin's avatar Sebastien Robin

make sure there is a least one check in a traveler check sale

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@11194 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent b169dc21
...@@ -144,6 +144,10 @@ if total_debit>0:\n ...@@ -144,6 +144,10 @@ if total_debit>0:\n
msg = Message(domain=\'ui\', message="Unknown error code.")\n msg = Message(domain=\'ui\', message="Unknown error code.")\n
raise ValidationFailed, (msg,)\n raise ValidationFailed, (msg,)\n
\n \n
if total_debit==0:\n
msg = Message(domain=\'ui\', message=\'Please select at least one traveler check.\')\n
raise ValidationFailed, (msg,)\n
\n
date = transaction.getStartDate()\n date = transaction.getStartDate()\n
source = transaction.getSource(None)\n source = transaction.getSource(None)\n
if source is None:\n if source is None:\n
......
44 46
\ 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