Commit 3e78233a authored by Jérome Perrin's avatar Jérome Perrin

Pass "brain.total_price or 0" instead of "brain.total_price" to roundCurrency,...

Pass "brain.total_price or 0" instead of "brain.total_price" to roundCurrency, for cases where total_price is NULL in SQL

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@15956 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent acd160ad
......@@ -138,8 +138,8 @@ for inventory in getInventoryList(\n
group_by_resource=1,\n
**inventory_param_dict):\n
\n
total_price = roundCurrency(inventory.total_price, section_currency)\n
quantity = roundCurrency(inventory.total_quantity,\n
total_price = roundCurrency(inventory.total_price or 0, section_currency)\n
quantity = roundCurrency(inventory.total_quantity or 0,\n
inventory.resource_relative_url)\n
\n
if inventory.resource_uid != section_currency_uid:\n
......
392
\ No newline at end of file
393
\ 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