[Erp5-report] r15558 - in /erp5/trunk/bt5/erp5_banking_cash: WorkflowTemplateItem/portal_wo...
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Aug 8 14:45:43 CEST 2007
Author: vincent
Date: Wed Aug 8 14:45:43 2007
New Revision: 15558
URL: http://svn.erp5.org?rev=15558&view=rev
Log:
Factorise call to getSource.
Modified:
erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/mutilated_banknote_workflow/scripts/CheckTransitionDeliver.xml
erp5/trunk/bt5/erp5_banking_cash/bt/revision
Modified: erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/mutilated_banknote_workflow/scripts/CheckTransitionDeliver.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/mutilated_banknote_workflow/scripts/CheckTransitionDeliver.xml?rev=15558&r1=15557&r2=15558&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/mutilated_banknote_workflow/scripts/CheckTransitionDeliver.xml (original)
+++ erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/mutilated_banknote_workflow/scripts/CheckTransitionDeliver.xml Wed Aug 8 14:45:43 2007
@@ -72,13 +72,14 @@
\n
ob = state_change[\'object\'] \n
\n
+source = ob.getSource()\n
+\n
# check we are in an opened accounting day\n
-vault = \'%s/surface/caisse_courante/encaisse_des_billets_et_monnaies\' %(ob.getSource(),)\n
+vault = \'%s/surface/caisse_courante/encaisse_des_billets_et_monnaies\' % (source, )\n
date = ob.getStartDate()\n
ob.Baobab_checkCounterDateOpen(site=vault, date=date)\n
\n
# check again that the counter is open\n
-source = ob.getSource()\n
context.Baobab_checkCounterOpened(source)\n
\n
if len(ob.objectValues(portal_type="Outgoing Mutilated Banknote Line")) == 0:\n
@@ -147,9 +148,9 @@
<string>_getitem_</string>
<string>ob</string>
<string>_getattr_</string>
+ <string>source</string>
<string>vault</string>
<string>date</string>
- <string>source</string>
<string>context</string>
<string>len</string>
<string>msg</string>
Modified: erp5/trunk/bt5/erp5_banking_cash/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/bt/revision?rev=15558&r1=15557&r2=15558&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/bt/revision (original)
+++ erp5/trunk/bt5/erp5_banking_cash/bt/revision Wed Aug 8 14:45:43 2007
@@ -1,1 +1,1 @@
-468
+470
More information about the Erp5-report
mailing list