Commit 4cfb7d13 authored by Jérome Perrin's avatar Jérome Perrin

AccountingTransactionModule_getSourceDebit should never return None, but 0

instead.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10868 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 31f6761e
......@@ -81,8 +81,9 @@ kw[\'transaction_uid\'] = context.getUid()\n
\n
result = context.AccountingTransactionModule_zGetAccountingTransactionList(\n
selection=selection, selection_params=kw, **kw)\n
\n
if result:\n
return result[0].total_price\n
return result[0].total_price or 0\n
return 0.\n
</string> </value>
</item>
......
94
\ No newline at end of file
95
\ 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