-- Group: timeexpensesheetitem
-- Name: gettask
-- Notes: Get Project task list
-- Copyright (c) 1999-2012 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.

SELECT 
  prjtask_id,
  (prjtask_number || ' - ' || prjtask_name) AS name 
FROM prjtask 
WHERE (prjtask_prj_id = <? value("prj_id") ?>)
<? if exists("active") ?>
  AND (prjtask_status IN ('O','P'))
<? endif ?>
ORDER by prjtask_number;
