Commit 26bc49d6 authored by Jérome Perrin's avatar Jérome Perrin

fix return value of getInventoryStat, it should return an integer


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4576 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent a265de7d
......@@ -506,11 +506,15 @@ class SimulationTool (BaseTool):
"""
sql_kw = self._generateSQLKeywordDict(**kw)
return self.Resource_zGetInventory(src__=src__,
result = self.Resource_zGetInventory(src__=src__,
ignore_variation=ignore_variation, standardise=standardise, omit_simulation=omit_simulation,
omit_input=omit_input, omit_output=omit_output,
selection_domain=selection_domain, selection_report=selection_report, **sql_kw)
total_result = 0
for row in result :
total_result += row.stock_uid
return total_result
security.declareProtected(Permissions.AccessContentsInformation, 'getCurrentInventoryStat')
def getCurrentInventoryStat(self, **kw):
"""
......
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