Commit 11cb4c5d authored by Aurel's avatar Aurel

more check

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10800 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ddd1f397
......@@ -82,6 +82,9 @@ if state == "planned":\n
if \'siege\' not in ob.getSource() or ob.getSource() == ob.getSourceTrade():\n
msg = Message(domain = "ui", message="You can\'t do this transition.")\n
raise ValidationFailed, (msg,)\n
if ob.getDestinationTotalAssetPrice() != 0:\n
msg = Message(domain = "ui", message="Returned amount must be 0.")\n
raise ValidationFailed, (msg,)\n
\n
# check no banknote defined, no pay back\n
elif state == "ordered":\n
......
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