Commit e6d2570d authored by Jérome Perrin's avatar Jérome Perrin

show transaction reference in journal

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@36753 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 2d468f0d
......@@ -100,7 +100,8 @@ else:\n
selection_columns = (\n
(\'specific_reference\', \'Transaction Reference\'),\n
(\'date\', \'Date\'),\n
(\'title\', \'Accounting Transaction Title\'),)\n
(\'title\', \'Accounting Transaction Title\'),\n
(\'parent_reference\', \'Document Reference\'),)\n
if len(portal_type) > 1:\n
selection_columns += (\n
(\'portal_type\', \'Journal Type\'), )\n
......
......@@ -136,10 +136,12 @@ for brain in portal.portal_simulation.getMovementHistoryList(\n
else:\n
specific_reference = transaction.getDestinationReference()\n
displayed_transaction[transaction.getUid()] = 1\n
transaction_reference = transaction.getReference()\n
title = mvt.hasTitle() and mvt.getTitle() or transaction.getTitle()\n
date = brain.date\n
else:\n
specific_reference = \'\'\n
transaction_reference = \'\'\n
title = mvt.hasTitle() and mvt.getTitle() or \'\'\n
date = None\n
\n
......@@ -147,6 +149,7 @@ for brain in portal.portal_simulation.getMovementHistoryList(\n
title=title,\n
portal_type=transaction.getTranslatedPortalType(),\n
specific_reference=specific_reference,\n
parent_reference=transaction_reference,\n
mirror_section_title=mirror_section_title,\n
node_title=getAccountId(brain.node_relative_url),\n
date=date,\n
......@@ -251,6 +254,7 @@ return line_list\n
<string>is_source</string>
<string>mirror_section_title</string>
<string>specific_reference</string>
<string>transaction_reference</string>
<string>title</string>
<string>date</string>
<string>None</string>
......
1295
\ No newline at end of file
1297
\ 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