[Erp5-report] r15146 - in /erp5/trunk/bt5/erp5_banking_cash: WorkflowTemplateItem/portal_wo...
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed Jul 4 18:47:03 CEST 2007
Author: aurel
Date: Wed Jul 4 18:47:02 2007
New Revision: 15146
URL: http://svn.erp5.org?rev=15146&view=rev
Log:
use the right getter in order to check the foreign agency in the monetary destruction workflow
Modified:
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/validateVaultBalance.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/monetary_destruction_workflow/scripts/validateVaultBalance.xml?rev=15146&r1=15145&r2=15146&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 Wed Jul 4 18:47:02 2007
@@ -85,9 +85,9 @@
raise ValidationFailed, (msg,)\n
\n
if \'encaisse_des_externes\' in vault:\n
- destination = transaction.getDestination()\n
- if destination is None:\n
- msg = Message(domain="ui", message="Invalid destination.")\n
+ source_section = transaction.getSourceSection()\n
+ if source_section is None:\n
+ msg = Message(domain="ui", message="Invalid Foreign Agency.")\n
raise ValidationFailed, (msg,)\n
\n
\n
@@ -163,7 +163,7 @@
<string>context</string>
<string>source_object</string>
<string>msg</string>
- <string>destination</string>
+ <string>source_section</string>
<string>None</string>
<string>amount</string>
<string>total_price</string>
Modified: erp5/trunk/bt5/erp5_banking_cash/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/bt/revision?rev=15146&r1=15145&r2=15146&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/bt/revision (original)
+++ erp5/trunk/bt5/erp5_banking_cash/bt/revision Wed Jul 4 18:47:02 2007
@@ -1,1 +1,1 @@
-411
+413
More information about the Erp5-report
mailing list