-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrep_details.php
25 lines (23 loc) · 971 Bytes
/
rep_details.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?php
$flagNoAuth=true;
require ('common/auth.php');
require ('classes/reports.class.php');
include ('includes/inc_report_settings.php');
$budget_scenario = isset($_REQUEST['budget_scenario'])?$_REQUEST['budget_scenario']:$budget_scenario;
$reference = isset($_REQUEST['reference'])?$_REQUEST['reference']:$reference;
$oReport = new Reports(Array('budget_scenario'=>$budget_scenario, 'currency'=>$currency, 'denominator'=>$denominator, 'reference'=>$reference, 'filter'=>$_POST['filter']));
include ('includes/inc-frame_top.php');
?>
<div id='output'>
<h2><?php echo $_POST['title'];?></h2>
<?php
if(strpos($oReport->oBudget->type,'Budget')!==false){
$oReport->periodicPnL('activity',Array('financial'=>true,'summary'=>false,'kpi'=>false,'headcount'=>false));
} else {
$oReport->monthlyReport('activity',Array('financial'=>true,'summary'=>false,'kpi'=>false,'headcount'=>false));
}
?>
</div>
<?php
include ('includes/inc-frame_bottom.php');
?>