Commit 115025e8 authored by Jérome Perrin's avatar Jérome Perrin

sort on date if no int_index defined.

don't show Causalities



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12804 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3c761f81
...@@ -103,7 +103,9 @@ for brain in simtool.getMovementHistoryList(\n ...@@ -103,7 +103,9 @@ for brain in simtool.getMovementHistoryList(\n
where_expression="catalog.parent_uid IN (%s)" %\n where_expression="catalog.parent_uid IN (%s)" %\n
stool.callSelectionFor(selection_name),\n stool.callSelectionFor(selection_name),\n
section_category=selection.getParams().get(\'section_category\'),\n section_category=selection.getParams().get(\'section_category\'),\n
sort_on=\'parent_int_index\'):\n sort_on=((\'parent_int_index\', \'asc\'),\n
(\'date\', \'asc\'),\n
(\'parent_title\', \'asc\'))):\n
\n \n
movement = brain.getObject()\n movement = brain.getObject()\n
transaction = movement.getParentValue()\n transaction = movement.getParentValue()\n
...@@ -123,12 +125,11 @@ for brain in simtool.getMovementHistoryList(\n ...@@ -123,12 +125,11 @@ for brain in simtool.getMovementHistoryList(\n
section_uid=brain.section_uid,\n section_uid=brain.section_uid,\n
node_relative_url=brain.node_relative_url,\n node_relative_url=brain.node_relative_url,\n
getObject=brain.getObject,\n getObject=brain.getObject,\n
asContext=movement.asContext,\n # asContext=movement.asContext,\n
# asContext=lambda *args, **kw: movement, # optim ?\n # asContext=lambda *args, **kw: movement, # optim ?\n
# Movement_getExplanationUrl=movement.Movement_getExplanationUrl,\n # Movement_getExplanationUrl=movement.Movement_getExplanationUrl,\n
\n \n
date=brain.date,\n date=brain.date,\n
causality_title="\\n".join(transaction.getCausalityTitleList() or []) ,\n
debit=max(brain.total_price, 0),\n debit=max(brain.total_price, 0),\n
credit=max(-(brain.total_price or 0), 0), )\n credit=max(-(brain.total_price or 0), 0), )\n
line_list.append(obj)\n line_list.append(obj)\n
......
...@@ -361,10 +361,6 @@ ...@@ -361,10 +361,6 @@
<string>Movement_getMirrorSectionTitle</string> <string>Movement_getMirrorSectionTitle</string>
<string>Third Party</string> <string>Third Party</string>
</tuple> </tuple>
<tuple>
<string>causality_title</string>
<string>Causalities</string>
</tuple>
<tuple> <tuple>
<string>payment_mode_codification</string> <string>payment_mode_codification</string>
<string>Payment Mode Codif.</string> <string>Payment Mode Codif.</string>
......
66 68
\ 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