]> wagnertech.de Git - kivitendo-erp.git/blobdiff - SL/AP.pm
GDPDU: statt acc_trans_id die trans_id exportieren
[kivitendo-erp.git] / SL / AP.pm
index 6de1b158b821f4dad3055e823a2bd30d347003e5..5839fb5632ca518e2e6d6d95e7d809a83222e3ad 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();
 }