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

nobody at svn.erp5.org nobody at svn.erp5.org
Fri Feb 20 16:33:56 CET 2009


Author: jerome
Date: Fri Feb 20 16:33:51 2009
New Revision: 25645

URL: http://svn.erp5.org?rev=25645&view=rev
Log:
fix a bug when guessing grouped lines, if source section and destination
section were the same, it was grouping all lines with themselves (and then
ungrouping failed)

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

Modified: erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_guessGroupedLines.xml
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_guessGroupedLines.xml?rev=25645&r1=25644&r2=25645&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_guessGroupedLines.xml [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/SkinTemplateItem/portal_skins/erp5_accounting/AccountingTransaction_guessGroupedLines.xml [utf8] Fri Feb 20 16:33:51 2009
@@ -117,6 +117,8 @@
 \n
 changed_lines = []\n
 for (node, section, mirror_section), line_info_list in lines_per_node.items():\n
+  if node is None:\n
+    continue\n
   total_price = sum([l[\'total_price\'] for l in line_info_list])\n
   # get the currency rounding for this section\n
   default_currency = None\n

Modified: erp5/trunk/bt5/erp5_accounting/bt/revision
URL: http://svn.erp5.org/erp5/trunk/bt5/erp5_accounting/bt/revision?rev=25645&r1=25644&r2=25645&view=diff
==============================================================================
--- erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] (original)
+++ erp5/trunk/bt5/erp5_accounting/bt/revision [utf8] Fri Feb 20 16:33:51 2009
@@ -1,1 +1,1 @@
-868
+869




More information about the Erp5-report mailing list