[Erp5-report] r14379 - in /erp5/trunk/bt5/erp5_banking_check: WorkflowTemplateItem/portal_w...

nobody at svn.erp5.org nobody at svn.erp5.org
Fri May 4 19:30:03 CEST 2007


Author: vincent
Date: Fri May  4 19:30:03 2007
New Revision: 14379

URL: http://svn.erp5.org?rev=14379&view=rev
Log:
Check that there are checkbook selected for delivery to allow validating the delivery.

Modified:
    erp5/trunk/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/checkbook_delivery_workflow/scripts/checkConsistency.xml
    erp5/trunk/bt5/erp5_banking_check/bt/revision

Modified: erp5/trunk/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/checkbook_delivery_workflow/scripts/checkConsistency.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/checkbook_delivery_workflow/scripts/checkConsistency.xml?rev=14379&r1=14378&r2=14379&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/checkbook_delivery_workflow/scripts/checkConsistency.xml (original)
+++ erp5/trunk/bt5/erp5_banking_check/WorkflowTemplateItem/portal_workflow/checkbook_delivery_workflow/scripts/checkConsistency.xml Fri May  4 19:30:03 2007
@@ -80,6 +80,10 @@
   msg = Message(domain=\'ui\', message=\'No counter defined.\')\n
   raise ValidationFailed, (msg,)\n
 \n
+if sum([len(x.getAggregateList()) for x in transaction.objectValues(portal_type=[\'Checkbook Delivery Line\'])]) == 0:\n
+  msg = Message(domain=\'ui\', message=\'No checkbook selected for delivery.\')\n
+  raise ValidationFailed, (msg,)  \n
+\n
 at_date = transaction.getStartDate()\n
 transaction.CheckbookDelivery_checkAggregateStockList(at_date=at_date, node_url = source)\n
 \n
@@ -149,6 +153,12 @@
                             <string>None</string>
                             <string>source</string>
                             <string>msg</string>
+                            <string>sum</string>
+                            <string>append</string>
+                            <string>$append0</string>
+                            <string>_getiter_</string>
+                            <string>x</string>
+                            <string>len</string>
                             <string>at_date</string>
                           </tuple>
                         </value>

Modified: erp5/trunk/bt5/erp5_banking_check/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_banking_check/bt/revision?rev=14379&r1=14378&r2=14379&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_banking_check/bt/revision (original)
+++ erp5/trunk/bt5/erp5_banking_check/bt/revision Fri May  4 19:30:03 2007
@@ -1,1 +1,1 @@
-177
+179




More information about the Erp5-report mailing list