}
}
$sth_all_groups->finish();
- my $query = qq|select count(*) from acc_trans where trans_id is NULL|;
- my $sth_all_groups = prepare_execute_query($::form, $self->dbh, $query);
+ $query = qq|select count(*) from acc_trans where trans_id is NULL|;
+ $sth_all_groups = prepare_execute_query($::form, $self->dbh, $query);
while (my $hash_ref = $sth_all_groups->fetchrow_hashref()) { # Schleife
if ($hash_ref->{count} eq 0){
# Falls wir keine alte buggy Installation haben, ist es super die
}
# das alte textfeld entfernen
# hier nochmal, da oben schon ein return 1 gesetzt ist
- my $query = qq|ALTER TABLE parts drop COLUMN bin|;
+ $query = qq|ALTER TABLE parts drop COLUMN bin|;
$self->db_query($query);
return 1;
}
$sth_all_groups->finish();
- my $query = qq|select distinct id,acamount from (select ar.id, ar.amount as aramount, ac.amount*-1 as acamount from ar left join acc_trans ac on (ac.trans_id =
+ $query = qq|select distinct id,acamount from (select ar.id, ar.amount as aramount, ac.amount*-1 as acamount from ar left join acc_trans ac on (ac.trans_id =
ar.id) where ac.chart_id IN (select id from chart where link ='AR' OR link like '%:AR' OR link like 'AR:%')) as foo where aramount + 0.01 = abs(acamount)|;
- my $sth_all_groups = prepare_execute_query($::form, $self->dbh, $query);
+ $sth_all_groups = prepare_execute_query($::form, $self->dbh, $query);
while (my $hash_ref = $sth_all_groups->fetchrow_hashref()) { # Schleife
# Falls wir keine alte buggy Installation haben, ist es super die
# Gewissheit zu haben, dass kein acc_trans-Eintrag ohne trans_id vorhanden ist