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

Bug fix: Lines with 0 quantity are currently None in stock table.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14131 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3b5b48dc
......@@ -102,8 +102,8 @@ for brain in portal.portal_simulation.getMovementHistoryList(\n
(\'parent_uid\', \'descending\'),\n
(\'stock.total_price\', \'descending\')),\n
**extra_kw):\n
debit = max(brain.total_price, 0)\n
credit = max(-brain.total_price, 0)\n
debit = max(brain.total_price, 0) or 0\n
credit = max(-(brain.total_price or 0), 0) or 0\n
mvt = brain.getObject()\n
if payment_mode and not \\\n
mvt.getPaymentMode(\'\').startswith(payment_mode):\n
......
255
\ No newline at end of file
256
\ 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