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

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Jul 2 12:16:20 CEST 2007


Author: aurel
Date: Mon Jul  2 12:16:20 2007
New Revision: 15100

URL: http://svn.erp5.org?rev=15100&view=rev
Log:
fix way to check bank account

Modified:
    erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/scripts/checkConsistency.xml
    erp5/trunk/bt5/erp5_banking_cash/bt/revision

Modified: erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/scripts/checkConsistency.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/scripts/checkConsistency.xml?rev=15100&r1=15099&r2=15100&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/scripts/checkConsistency.xml (original)
+++ erp5/trunk/bt5/erp5_banking_cash/WorkflowTemplateItem/portal_workflow/incident_workflow/scripts/checkConsistency.xml Mon Jul  2 12:16:20 2007
@@ -103,15 +103,15 @@
 if out_price > 0:\n
   transaction.checkVaultBalance(state_change)\n
 \n
-if transaction.getIncidentType == "account_incident":\n
-  bank_account = transaction.getSourcePaymentValue()\n
+if transaction.getIncidentType() == "account_incident":\n
+  bank_account = transaction.getDestinationPaymentValue()\n
+  if bank_account is None:\n
+    msg = Message(domain=\'ui\', message="No bank account defined.")\n
+    raise ValidationFailed, (msg,)\n
   if transaction.BankAccount_isMessagePending(bank_account):\n
     msg = Message(domain=\'ui\', message="There are operations pending for this account that prevent form calculating its position. Please try again later.")\n
     raise ValidationFailed, (msg,)\n
 \n
-  if bank_account is None:\n
-    msg = Message(domain=\'ui\', message="No bank account defined.")\n
-    raise ValidationFailed, (msg,)\n
   if out_price > 0:\n
     error = transaction.BankAccount_checkAvailableBalance(bank_account.getRelativeUrl(), out_price)\n
     if error[\'error_code\'] == 1:\n

Modified: erp5/trunk/bt5/erp5_banking_cash/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_cash/bt/revision?rev=15100&r1=15099&r2=15100&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_cash/bt/revision (original)
+++ erp5/trunk/bt5/erp5_banking_cash/bt/revision Mon Jul  2 12:16:20 2007
@@ -1,1 +1,1 @@
-378
+381




More information about the Erp5-report mailing list