From d951843416476046c4465511879ff07e603e6e7c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Fri, 13 Oct 2006 15:03:38 +0000
Subject: [PATCH] fix condition test

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10704 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../scripts/CheckTransitionDeliver.xml                          | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/mutilated_banknote_workflow/scripts/CheckTransitionDeliver.xml b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/mutilated_banknote_workflow/scripts/CheckTransitionDeliver.xml
index 80d90c4676..c6c5897356 100644
--- a/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/mutilated_banknote_workflow/scripts/CheckTransitionDeliver.xml
+++ b/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/mutilated_banknote_workflow/scripts/CheckTransitionDeliver.xml
@@ -94,7 +94,7 @@ elif state == "ordered":\n
     \n
 # check outgoing line, we pay back\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
     raise ValidationFailed, (msg,)\n
   if ob.getDestinationTotalAssetPrice() != ob.getTotalPrice(portal_type="Outgoing Mutilated Banknote Line", fast=0):\n
-- 
2.30.9