X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FIR.pm;h=22c5dc124e35d491cc330bfe5af037710f9c4838;hb=84ca5a19ba97516a613024e7347c68edcf9519a1;hp=1f0ae58f7c647f85dac3df24d390b103237d4cc0;hpb=56f7991d4910ae12c7d16aab025a2ab242ca5eeb;p=kivitendo-erp.git 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"; }