Skip to content

Commit

Permalink
+Journals
Browse files Browse the repository at this point in the history
  • Loading branch information
Joseph Topotushko committed Oct 23, 2018
1 parent 6396b1e commit 81773a2
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 3 deletions.
26 changes: 26 additions & 0 deletions rep_admin_costs.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,32 @@
<div id='report_content'>
<?php
$oReport->quarterly('item_bu',false);
?>
</div>
<div>
<h4>Documents</h4>
<?php
$sql = "SELECT *, edit_date as timestamp
FROM vw_journal
LEFT JOIN stbl_user ON usrID=vw_journal.edit_by
WHERE vw_journal.scenario='{$budget_scenario}'
AND guid IN (SELECT source
FROM reg_master
WHERE scenario='{$budget_scenario}'
AND item IN('".implode("','",$arrItems)."')
AND company='{$company}')
GROUP BY vw_journal.guid
ORDER BY vw_journal.prefix ASC";

//echo '<pre>',$sql,'</pre>';

$rs =$oSQL->q($sql);
while ($rw=$oSQL->f($rs)){
$data[] = $rw;
}

Reports::getJournalEntries($data);

?>
</div>
<?php
Expand Down
6 changes: 3 additions & 3 deletions rep_it_costs.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@
WHERE vw_journal.scenario='{$budget_scenario}'
AND guid IN (SELECT source
FROM reg_master
WHERE scenario='{{$budget_scenario}}'
WHERE scenario='{$budget_scenario}'
AND item IN('".implode("','",$arrItems)."')
AND company='{$company}')
GROUP BY vw_journal.guid
ORDER BY vw_journal.edit_date ASC";
ORDER BY vw_journal.prefix ASC";

// echo '<pre>',$sql,'</pre>';
//echo '<pre>',$sql,'</pre>';

$rs =$oSQL->q($sql);
while ($rw=$oSQL->f($rs)){
Expand Down

0 comments on commit 81773a2

Please sign in to comment.