X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/0c28bb82b805b07543debaf08061b58d0b437c07..84ca5a19ba97516a613024e7347c68edcf9519a1:/SL/IR.pm diff --git a/SL/IR.pm b/SL/IR.pm index 1f0ae58f7..22c5dc124 100644 --- a/SL/IR.pm +++ b/SL/IR.pm @@ -1218,7 +1218,9 @@ sub retrieve_item { my $transdate = ""; if ($form->{type} eq "invoice") { - $transdate = $form->{invdate} ? $dbh->quote($form->{invdate}) : "current_date"; + $transdate = $form->{deliverydate} ? $dbh->quote($form->{deliverydate}) + : $form->{invdate} ? $dbh->quote($form->{invdate}) + : "current_date"; } else { $transdate = $form->{transdate} ? $dbh->quote($form->{transdate}) : "current_date"; }