Commit 9953c1f0 authored by Romain Courteaud's avatar Romain Courteaud

getAvailableTime only takes rows with specified simulation_state


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@14189 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent f1b5b85c
......@@ -1931,12 +1931,17 @@ class SimulationTool(BaseTool):
if portal_type == []:
portal_type = self.getPortalCalendarPeriodTypeList()
simulation_state = self.getPortalCurrentInventoryStateList() + \
self.getPortalTransitInventoryStateList() + \
self.getPortalReservedInventoryStateList()
sql_result = self.Person_zGetAvailableTime(
from_date=from_date,
to_date=to_date,
portal_type=portal_type,
node=node,
resource=resource,
simulation_state=simulation_state,
src__=src__, **kw)
if not src__:
result = 0
......
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