X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/2740f3f03035bd1db6d32edaceca6c413ed81496..e2305bab05a1affd9b2ca7ca93d0194da68e796d:/SL/Form.pm diff --git a/SL/Form.pm b/SL/Form.pm index 067a002cf..fd07f5558 100644 --- a/SL/Form.pm +++ b/SL/Form.pm @@ -577,6 +577,7 @@ sub header { if ($self->{jsscript} == 1) { $jsscript = qq| + @@ -1418,6 +1419,21 @@ sub get_standard_dbh { return $standard_dbh; } +sub date_closed { + $main::lxdebug->enter_sub(); + + my ($self, $date, $myconfig) = @_; + my $dbh = $self->dbconnect($myconfig); + + my $query = "SELECT 1 FROM defaults WHERE ? < closedto"; + my $sth = prepare_execute_query($self, $dbh, $query, $date); + my ($closed) = $sth->fetchrow_array; + + $main::lxdebug->leave_sub(); + + return $closed; +} + sub update_balance { $main::lxdebug->enter_sub();