[Erp5-report] r14560 - in /erp5/trunk/bt5/erp5_banking_check: WorkflowTemplateItem/portal_w...
nobody at svn.erp5.org
nobody at svn.erp5.org
Wed May 23 10:45:39 CEST 2007
Author: seb
Date: Wed May 23 10:45:39 2007
New Revision: 14560
URL: http://svn.erp5.org?rev=14560&view=rev
Log:
updated check deposit in order to take into account the new way of checking references
Modified:
erp5/trunk/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/scripts/validateConsistency.xml
erp5/trunk/bt5/erp5_banking_check/bt/revision
Modified: erp5/trunk/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/scripts/validateConsistency.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/scripts/validateConsistency.xml?rev=14560&r1=14559&r2=14560&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/scripts/validateConsistency.xml (original)
+++ erp5/trunk/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/check_deposit_workflow/scripts/validateConsistency.xml Wed May 23 10:45:39 2007
@@ -98,6 +98,12 @@
if not check_number:\n
msg = Message(domain=\'ui\', message=\'Check is not defined.\')\n
raise ValidationFailed, (msg,)\n
+\n
+ check_type = check_operation_line.getAggregateResource()\n
+ if check_type is None:\n
+ msg = Message(domain=\'ui\', message=\'Check type is not defined.\')\n
+ raise ValidationFailed, (msg,)\n
+\n
\n
source_bank_account = check_operation_line.getSourcePaymentValue()\n
if source_bank_account is None:\n
@@ -116,7 +122,8 @@
msg = Message(domain=\'ui\', message="Unknown error code.")\n
raise ValidationFailed, (msg,)\n
\n
- transaction.Base_checkCheck(bank_account=source_bank_account, reference=check_number)\n
+ transaction.Base_checkCheck(bank_account=source_bank_account, reference=check_number,\n
+ resource=check_type)\n
\n
if transaction.getSimulationState() == "draft":\n
context.updateBankingOperation(state_change)\n
@@ -193,6 +200,7 @@
<string>_getiter_</string>
<string>check_operation_line</string>
<string>check_number</string>
+ <string>check_type</string>
<string>source_bank_account</string>
<string>context</string>
<string>error</string>
Modified: erp5/trunk/bt5/erp5_banking_check/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_check/bt/revision?rev=14560&r1=14559&r2=14560&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_check/bt/revision (original)
+++ erp5/trunk/bt5/erp5_banking_check/bt/revision Wed May 23 10:45:39 2007
@@ -1,1 +1,1 @@
-231
+233
More information about the Erp5-report
mailing list