]> wagnertech.de Git - mfinanz.git/blobdiff - SL/Form.pm
Ueberarbeitete Buecherkontrolle
[mfinanz.git] / SL / Form.pm
index 53324c6c5568fe567501482d7361a975cb86c1ef..fd07f55588859f03358ce47dad1e8a8f4ccfa275 100644 (file)
@@ -1419,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();