From 513ba3cc897ca1e12f011e3a680ec72bec7afd3a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Calonne?= <aurel@nexedi.com>
Date: Thu, 21 Aug 2008 09:46:37 +0000
Subject: [PATCH] take new vault into account when computing movement
 destination

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23079 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 .../CashMovementNewNotEmitted_getBaobabDestination.xml          | 2 +-
 bt5/erp5_banking_cash/bt/revision                               | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/CashMovementNewNotEmitted_getBaobabDestination.xml b/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/CashMovementNewNotEmitted_getBaobabDestination.xml
index 677a9b208f..7f2c680dc6 100644
--- a/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/CashMovementNewNotEmitted_getBaobabDestination.xml
+++ b/bt5/erp5_banking_cash/SkinTemplateItem/portal_skins/erp5_banking_cash/CashMovementNewNotEmitted_getBaobabDestination.xml
@@ -70,7 +70,7 @@ destination = context.getDestinationSection()\n
 context.log(source, destination)\n
 if source is None or destination is None:\n
   return None\n
-if source.split("/")[-1] == destination.split("/")[-1]:\n
+if source.split("/")[-1] == destination.split("/")[-1] or "transit" not in source:\n
   destination = "%s/caveau/serre/encaisse_des_billets_neufs_non_emis" % destination\n
 else:\n
   destination = "%s/caveau/serre/encaisse_des_billets_neufs_non_emis_en_transit_allant_a/%s" % (destination, source.split("/")[-1])\n
diff --git a/bt5/erp5_banking_cash/bt/revision b/bt5/erp5_banking_cash/bt/revision
index 2df5e549ce..0da6a13444 100644
--- a/bt5/erp5_banking_cash/bt/revision
+++ b/bt5/erp5_banking_cash/bt/revision
@@ -1 +1 @@
-629
\ No newline at end of file
+630
\ No newline at end of file
-- 
2.30.9