[Erp5-report] r28866 - in /erp5/trunk/bt5/erp5_banking_cash: WorkflowTemplateItem/portal_wo...

nobody at svn.erp5.org nobody at svn.erp5.org
Tue Sep 8 13:28:04 CEST 2009


Author: vincent
Date: Tue Sep  8 13:28:03 2009
New Revision: 28866

URL: http://svn.erp5.org?rev=28866&view=rev
Log:
Make validateVaultBalance call [...]_checkPath script, just as it is done in cash_movement_workflow.

Modified:
    erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/cash_movement_new_not_emitted_workflow/scripts/validateVaultBalance.xml
    erp5/trunk/bt5/erp5_banking_cash/bt/revision

Modified: erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/cash_movement_new_not_emitted_workflow/scripts/validateVaultBalance.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/cash_movement_new_not_emitted_workflow/scripts/validateVaultBalance.xml?rev=28866&r1=28865&r2=28866&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/cash_movement_new_not_emitted_workflow/scripts/validateVaultBalance.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/cash_movement_new_not_emitted_workflow/scripts/validateVaultBalance.xml [utf8] Tue Sep  8 13:28:03 2009
@@ -84,6 +84,13 @@
 transaction.log(\'vliste\', vliste)\n
 if len(vliste) != 0:\n
   raise ValidationFailed, (vliste[0].getMessage(),)\n
+\n
+portal_type_with_no_space = transaction.getPortalType().replace(\' \',\'\')\n
+check_path_script = getattr(transaction,\'%s_checkPath\' % portal_type_with_no_space,None)\n
+if check_path_script is not None:\n
+  message = check_path_script()\n
+  if message is not None:\n
+    raise ValidationFailed, (message,)\n
 \n
 resource = transaction.CashDelivery_checkCounterInventory(source=vault, portal_type=\'Cash Movement New Not Emitted Line\')\n
 \n
@@ -157,6 +164,11 @@
                             <string>vaultDestination</string>
                             <string>vliste</string>
                             <string>len</string>
+                            <string>portal_type_with_no_space</string>
+                            <string>getattr</string>
+                            <string>None</string>
+                            <string>check_path_script</string>
+                            <string>message</string>
                             <string>resource</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=28866&r1=28865&r2=28866&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_banking_cash/bt/revision [utf8] Tue Sep  8 13:28:03 2009
@@ -1,1 +1,1 @@
-672
+675




More information about the Erp5-report mailing list