Commit 884669ab authored by Jérome Perrin's avatar Jérome Perrin

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)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@25645 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent cc5829cd
...@@ -117,6 +117,8 @@ for line in accounting_transaction_line_value_list:\n ...@@ -117,6 +117,8 @@ for line in accounting_transaction_line_value_list:\n
\n \n
changed_lines = []\n changed_lines = []\n
for (node, section, mirror_section), line_info_list in lines_per_node.items():\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 total_price = sum([l[\'total_price\'] for l in line_info_list])\n
# get the currency rounding for this section\n # get the currency rounding for this section\n
default_currency = None\n default_currency = None\n
......
868 869
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment