[Erp5-report] r17372 - in /erp5/trunk/bt5/erp5_accounting: WorkflowTemplateItem/portal_work...

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Nov 2 18:08:20 CET 2007


Author: jerome
Date: Fri Nov  2 18:08:20 2007
New Revision: 17372

URL: http://svn.erp5.org?rev=17372&view=rev
Log:
Don't make check if the third party is member of the group, but is a Person

Modified:
    erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransactionLines.xml
    erp5/trunk/bt5/erp5_accounting/bt/revision

Modified: erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransactionLines.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransactionLines.xml?rev=17372&r1=17371&r2=17372&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransactionLines.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/WorkflowTemplateItem/portal_workflow/accounting_workflow/scripts/validateTransactionLines.xml Fri Nov  2 18:08:20 2007
@@ -3,11 +3,8 @@
   <record id="1" aka="AAAAAAAAAAE=">
     <pickle>
       <tuple>
-        <tuple>
-          <string>Products.PythonScripts.PythonScript</string>
-          <string>PythonScript</string>
-        </tuple>
-        <none/>
+        <global name="PythonScript" module="Products.PythonScripts.PythonScript"/>
+        <tuple/>
       </tuple>
     </pickle>
     <pickle>
@@ -96,8 +93,9 @@
   destination_section_group = destination_section\\\n
                                   .getGroup(\'\').lstrip(\'group/\').split(\'/\')\n
   if destination_section_group and source_section_group and \\\n
-      destination_section_group[0] == source_section_group[0]:\n
-    check_for_destination = 1\n
+      destination_section_group[0] == source_section_group[0] \\\n
+      and destination_section.getPortalType() != \'Person\':\n
+     check_for_destination = 1\n
 \n
 source_sum = 0\n
 destination_sum = 0\n
@@ -321,6 +319,7 @@
                             <string>transaction_line</string>
                             <string>source_quantity</string>
                             <string>destination_quantity</string>
+                            <string>_inplacevar_</string>
                             <string>side</string>
                             <string>account</string>
                             <string>payment</string>

Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=17372&r1=17371&r2=17372&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision Fri Nov  2 18:08:20 2007
@@ -1,1 +1,1 @@
-479
+481




More information about the Erp5-report mailing list