$actual = $sth->fetchrow_array;
# get the estimated amount
- my $sth = $dbh->prepare( qq|
+ $sth = $dbh->prepare( qq|
SELECT estimated_amount AS estimated, display FROM aqbudgets_planning
WHERE budget_period_id = ? AND
}
# look for top parents 1st
- my @sort;
- my ($i, $depth_count) = 0;
+ my (@sort, $depth_count);
+ ($i, $depth_count) = 0;
while (1) {
my $children = 0;
foreach my $r (@res) {
$moo =~ s/\ /\ \;/g;
$r->{'budget_code_indent'} = $moo;
- my $moo = $r->{'budget_name_indent'};
+ $moo = $r->{'budget_name_indent'};
$moo =~ s/\ /\ \;/g;
$r->{'budget_name_indent'} = $moo;
sub GetBudget {
my ( $budget_id ) = @_;
my $dbh = C4::Context->dbh;
- my $query;
my $query = "
SELECT *
FROM aqbudgets