use Koha::Acquisition::Currencies;
use Koha::Patrons;
-my $input = new CGI;
+my $input = CGI->new;
my $dbh = C4::Context->dbh;
my ($template, $borrowernumber, $cookie, $staffflags ) = get_template_and_user(
{ template_name => "admin/aqbudgets.tt",
query => $input,
type => "intranet",
- authnotrequired => 0,
flagsrequired => { acquisition => 'budget_manage' },
debug => 0,
}
}
$dropbox_disabled = BudgetHasChildren($budget_id);
$budget->{budget_owner} = Koha::Patrons->find( $budget->{budget_owner_id} );
+ } elsif ( $period->{budget_period_locked} ) {
+ output_and_exit( $input, $cookie, $template, 'budget_is_locked' );
}
# build budget hierarchy