use C4::Debug;
use Koha::Acquisition::Currencies;
-my $input = new CGI;
+our $input = new CGI;
#### $input
my $dbh = C4::Context->dbh;
# authcats_loop populates the YUI planning button
my $auth_cats_loop = GetBudgetAuthCats($budget_period_id);
-my $budget_period_id = $period->{'budget_period_id'};
+$budget_period_id = $period->{'budget_period_id'};
my $budget_period_startdate = $period->{'budget_period_startdate'};
my $budget_period_enddate = $period->{'budget_period_enddate'};
my $budget_period_locked = $period->{'budget_period_locked'};
my $show_actual = $input->param('show_actual');
my $show_percent = $input->param('show_percent');
my $output = $input->param("output");
-my $basename = $input->param("basename");
-my $del = $input->param("sep");
+our $basename = $input->param("basename");
+our $del = $input->param("sep");
my $show_mine = $input->param('show_mine') ;
#calc number of months between
my $months = ( $Dy * 12 ) + $Dm;
- my $start_month = @start_date[1];
+ my $start_month = $start_date[1];
my $end_month = ( $Dy * 12 ) + $Dm;
for my $mth ( 0 ... $months ) {