[Erp5-report] r14306 - in /erp5/trunk/bt5/erp5_accounting: SkinTemplateItem/portal_skins/er...

nobody at svn.erp5.org nobody at svn.erp5.org
Wed May 2 15:26:05 CEST 2007


Author: jerome
Date: Wed May  2 15:26:05 2007
New Revision: 14306

URL: http://svn.erp5.org?rev=14306&view=rev
Log:
Invoice_getRemainingTotalPayablePrice:
  make at_date parameter works with groupped lines
  remove unused "groupped_line_list" list


Modified:
    erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_getRemainingTotalPayablePrice.xml
    erp5/trunk/bt5/erp5_accounting/bt/revision

Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_getRemainingTotalPayablePrice.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_getRemainingTotalPayablePrice.xml?rev=14306&r1=14305&r2=14306&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_getRemainingTotalPayablePrice.xml (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/Invoice_getRemainingTotalPayablePrice.xml Wed May  2 15:26:05 2007
@@ -90,16 +90,15 @@
   is_source = 0\n
   section = context.getDestinationSection()\n
 \n
-# rememeber payable / receivable lines in context.\n
+# remember payable / receivable lines in context.\n
 accounts_in_context = []\n
 \n
 # calculate the total price of this invoice (according to accounting\n
 # transaction lines)\n
-groupped_line_list = []\n
 for line in context.getMovementList(\n
           portal_type=portal.getPortalAccountingMovementTypeList()):\n
   \n
-  if line.getGroupingReference():\n
+  if at_date is None and line.getGroupingReference():\n
     continue\n
 \n
   if is_source:\n
@@ -120,9 +119,6 @@
     total_payable_price_per_node_section[key] =\\\n
           total_payable_price_per_node_section.get(key, 0) + amount\n
     accounts_in_context.append(node_value)\n
-    if line.getGroupingReference():\n
-      # we rememeber this line to check if there is any line grouped with it\n
-      groupped_line_list.append(line)\n
 \n
 \n
 # substract all causalities\n
@@ -156,7 +152,7 @@
   for line in related_transaction.getMovementList(\n
             portal_type=portal.getPortalAccountingMovementTypeList()):\n
     \n
-    if line.getGroupingReference():\n
+    if at_date is None and line.getGroupingReference():\n
       continue\n
     \n
     if related_transaction_is_source:\n
@@ -245,14 +241,13 @@
                             <string>is_source</string>
                             <string>section</string>
                             <string>accounts_in_context</string>
-                            <string>groupped_line_list</string>
                             <string>_getiter_</string>
                             <string>line</string>
+                            <string>None</string>
                             <string>node_value</string>
                             <string>line_section</string>
                             <string>mirror_section</string>
                             <string>amount</string>
-                            <string>None</string>
                             <string>key</string>
                             <string>_write_</string>
                             <string>related_transaction</string>

Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=14306&r1=14305&r2=14306&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision Wed May  2 15:26:05 2007
@@ -1,1 +1,1 @@
-292
+299




More information about the Erp5-report mailing list