X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/80ec19fe41dfa899593655963628334ab656ae54..18c7b9f28c696e7252e9101f98e53d5861f9d8ef:/SL/OE.pm diff --git a/SL/OE.pm b/SL/OE.pm index 18e48bdd6..5dc3128f5 100644 --- a/SL/OE.pm +++ b/SL/OE.pm @@ -787,10 +787,9 @@ sub retrieve { my %oid = ('Pg' => 'oid', 'Oracle' => 'rowid'); - my $transdate = "'$form->{transdate}'"; - if (!$transdate) { - $transdate = "current_date"; - } + my $transdate = + $form->{transdate} ? $dbh->quote($form->{transdate}) : "current_date"; + if(!$form->{taxzone_id}) { $form->{taxzone_id} = 0; }