-- Group: postJournals
-- Name:  post
-- Notes: 
-- Copyright (c) 1999-2014 by OpenMFG LLC, d/b/a xTuple.
-- See www.xtuple.com/CPAL for the full text of the software license.

SELECT * 
FROM postJournals(
ARRAY[
<? foreach("source_list") ?>
  <? if not isfirst("source_list") ?>
,
  <? endif ?>
  <? value("source_list") ?>
<? endforeach ?>
],  
<? value("startDate") ?>, 
<? value("endDate") ?>, 
<? value("distDate") ?>) AS result;
