Commit 8007800d authored by Jérome Perrin's avatar Jérome Perrin

don't fail if brain.total_price is None



git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12541 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent c0be25c8
...@@ -130,7 +130,7 @@ for brain in simtool.getMovementHistoryList(\n ...@@ -130,7 +130,7 @@ for brain in simtool.getMovementHistoryList(\n
date=brain.date,\n date=brain.date,\n
causality_title="\\n".join(transaction.getCausalityTitleList() or []) ,\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, 0), )\n credit=max(-(brain.total_price or 0), 0), )\n
line_list.append(obj)\n line_list.append(obj)\n
\n \n
if brain.node_relative_url:\n if brain.node_relative_url:\n
......
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