Commit 8bcbb1ca authored by Jérome Perrin's avatar Jérome Perrin

only consider sections if they are organisations. Persons have no accounting currencies defined

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@27675 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4daf34f6
......@@ -103,14 +103,14 @@ for line in accounting_transaction_line_value_list:\n
if accounting_transaction.AccountingTransaction_isSourceView():\n
lines_per_node.setdefault(\n
(line.getSource(portal_type=\'Account\'),\n
line.getSourceSection(),\n
line.getSourceSection(portal_type=\'Organisation\'),\n
line.getDestinationSection(), ), []).append(\n
dict(total_price=line.getSourceInventoriatedTotalAssetPrice() or 0,\n
path=line.getRelativeUrl()))\n
else:\n
lines_per_node.setdefault(\n
(line.getDestination(portal_type=\'Account\'),\n
line.getDestinationSection(),\n
line.getDestinationSection(portal_type=\'Organisation\'),\n
line.getSourceSection(), ), []).append(\n
dict(total_price=line.getDestinationInventoriatedTotalAssetPrice() or 0,\n
path=line.getRelativeUrl()))\n
......
942
\ No newline at end of file
944
\ 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