Revert "Artikel-Klassifizierung: Neue Option "Preis separat ausweisen""
[kivitendo-erp.git] / SL / AP.pm
index 6de1b15..5839fb5 100644 (file)
--- a/SL/AP.pm
+++ b/SL/AP.pm
@@ -565,7 +565,7 @@ sub get_transdate {
   my ($self, $myconfig, $form) = @_;
 
   # connect to database
-  my $dbh = $form->dbconnect($myconfig);
+  my $dbh = SL::DB->client->dbh;
 
   my $query =
     "SELECT COALESCE(" .
@@ -574,8 +574,6 @@ sub get_transdate {
     "  current_date)";
   ($form->{transdate}) = $dbh->selectrow_array($query);
 
-  $dbh->disconnect;
-
   $main::lxdebug->leave_sub();
 }