[Erp5-report] r15458 - in /erp5/trunk/bt5/erp5_banking_cash: WorkflowTemplateItem/portal_wo...
nobody at svn.erp5.org
nobody at svn.erp5.org
Fri Aug 3 15:15:17 CEST 2007
Author: seb
Date: Fri Aug 3 15:15:17 2007
New Revision: 15458
URL: http://svn.erp5.org?rev=15458&view=rev
Log:
do not check the source counter date when we are at the destination
Modified:
erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/monetary_destruction_workflow/scripts/validateDestinationCounterDate.xml
erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/monetary_destruction_workflow/scripts/validateVaultBalance.xml
erp5/trunk/bt5/erp5_banking_cash/bt/revision
Modified: erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/monetary_destruction_workflow/scripts/validateDestinationCounterDate.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/monetary_destruction_workflow/scripts/validateDestinationCounterDate.xml?rev=15458&r1=15457&r2=15458&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/monetary_destruction_workflow/scripts/validateDestinationCounterDate.xml (original)
+++ erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/monetary_destruction_workflow/scripts/validateDestinationCounterDate.xml Fri Aug 3 15:15:17 2007
@@ -78,7 +78,7 @@
transaction.Baobab_checkCounterDateOpen(site=source_section, date=transaction.getStopDate())\n
\n
# Check source counter stock & date again.\n
-context.validateVaultBalance(state_change=state_change)\n
+context.validateVaultBalance(state_change=state_change, check_source_counter_date=0)\n
]]></string> </value>
Modified: erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/monetary_destruction_workflow/scripts/validateVaultBalance.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/monetary_destruction_workflow/scripts/validateVaultBalance.xml?rev=15458&r1=15457&r2=15458&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/monetary_destruction_workflow/scripts/validateVaultBalance.xml (original)
+++ erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/monetary_destruction_workflow/scripts/validateVaultBalance.xml Fri Aug 3 15:15:17 2007
@@ -78,7 +78,8 @@
source_object = context.portal_categories.getCategoryValue(vault)\n
\n
# check again that we are in the good accounting date\n
-transaction.Baobab_checkCounterDateOpen(site=source_object, date=transaction.getStartDate())\n
+if check_source_counter_date:\n
+ transaction.Baobab_checkCounterDateOpen(site=source_object, date=transaction.getStartDate())\n
\n
if (\'encaisse_des_externes\' not in vault and \'encaisse_des_billets_retires_de_la_circulation\' not in vault):\n
msg = Message(domain="ui", message="Invalid source.")\n
@@ -139,7 +140,7 @@
</item>
<item>
<key> <string>_params</string> </key>
- <value> <string>state_change</string> </value>
+ <value> <string>state_change, check_source_counter_date=1, **kw</string> </value>
</item>
<item>
<key> <string>errors</string> </key>
@@ -159,13 +160,15 @@
<dictionary>
<item>
<key> <string>co_argcount</string> </key>
- <value> <int>1</int> </value>
+ <value> <int>2</int> </value>
</item>
<item>
<key> <string>co_varnames</string> </key>
<value>
<tuple>
<string>state_change</string>
+ <string>check_source_counter_date</string>
+ <string>kw</string>
<string>Products.DCWorkflow.DCWorkflow</string>
<string>ValidationFailed</string>
<string>Products.ERP5Type.Message</string>
@@ -195,7 +198,9 @@
<item>
<key> <string>func_defaults</string> </key>
<value>
- <none/>
+ <tuple>
+ <int>1</int>
+ </tuple>
</value>
</item>
<item>
Modified: erp5/trunk/bt5/erp5_banking_cash/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/bt/revision?rev=15458&r1=15457&r2=15458&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/bt/revision (original)
+++ erp5/trunk/bt5/erp5_banking_cash/bt/revision Fri Aug 3 15:15:17 2007
@@ -1,1 +1,1 @@
-457
+459
More information about the Erp5-report
mailing list