-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrep_pnl.php
39 lines (30 loc) · 1.25 KB
/
rep_pnl.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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
require ('common/auth.php');
require ('classes/budget.class.php');
include ('includes/inc_report_settings.php');
include ('includes/inc_report_pcfilter.php');
if(!isset($_GET['pccGUID'])){
$oBudget = new Budget($budget_scenario);
if ($reference!=$oBudget->reference_scenario->id){
$oReference = new Budget($reference);
$strVsTitle = ' vs '.$oReference->title;
} else {
$reference = $oBudget->reference_scenario->id;
}
$arrJS[]='js/rep_pnl.js';
// $arrJS[]='js/input_form.js';
include('includes/inc_group_buttons.php');
include ('includes/inc-frame_top.php');
echo '<h1>',$arrUsrData["pagTitle$strLocal"],': ',$oBudget->title,$strVsTitle,'</h1>';
include ('includes/inc_report_selectors.php');
echo '<p>',$oBudget->timestamp,'; ',$oBudget->rates,'</p>';
Budget::getProfitTabs('reg_master', true, Array('pccID'=>$arrBus));
include ('includes/inc-frame_bottom.php');
} else {
require ('classes/reports.class.php');
include ('includes/inc_report_buttons.php');
$oReport = new Reports(Array('budget_scenario'=>$budget_scenario, 'currency'=>$currency, 'denominator'=>$denominator,'reference'=>$reference,'filter'=>$filter));
// echo '<pre>';print_r($filter);echo '</pre>';
$oReport->periodicPnL($type);
}
?>