Commit d9518434 authored by Aurel's avatar Aurel

fix condition test

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10704 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 1171702e
...@@ -94,7 +94,7 @@ elif state == "ordered":\n ...@@ -94,7 +94,7 @@ elif state == "ordered":\n
\n \n
# check outgoing line, we pay back\n # check outgoing line, we pay back\n
elif state == "confirmed":\n elif state == "confirmed":\n
if len(ob.objectValues(portal_type="Outgoing Mutilated Banknote Line")) != 0:\n if len(ob.objectValues(portal_type="Outgoing Mutilated Banknote Line")) == 0:\n
msg = Message(domain = "ui", message="You must defined returned banknote.")\n msg = Message(domain = "ui", message="You must defined returned banknote.")\n
raise ValidationFailed, (msg,)\n raise ValidationFailed, (msg,)\n
if ob.getDestinationTotalAssetPrice() != ob.getTotalPrice(portal_type="Outgoing Mutilated Banknote Line", fast=0):\n if ob.getDestinationTotalAssetPrice() != ob.getTotalPrice(portal_type="Outgoing Mutilated Banknote Line", fast=0):\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