]> wagnertech.de Git - mfinanz.git/blobdiff - SL/DO.pm
Auftrags-Controller: hash ref richtig dereferenzieren.
[mfinanz.git] / SL / DO.pm
index 6ea31a9be3a519238c666f9b6d202bb6948c10e5..a293239d9a9c08d3d90483c0ebbabc71cc12f1f3 100644 (file)
--- a/SL/DO.pm
+++ b/SL/DO.pm
@@ -685,6 +685,7 @@ sub retrieve {
          dord.closed, dord.reqdate, dord.department_id, dord.cusordnumber,
          d.description AS department, dord.language_id,
          dord.shipto_id,
+         dord.itime, dord.mtime,
          dord.globalproject_id, dord.delivered, dord.transaction_description,
          dord.taxzone_id, dord.taxincluded, dord.payment_id, (SELECT cu.name FROM currencies cu WHERE cu.id=dord.currency_id) AS currency,
          dord.delivery_term_id, dord.itime::DATE AS insertdate
@@ -719,7 +720,8 @@ sub retrieve {
     }
   }
   $sth->finish();
-
+  $form->{mtime}   ||= $form->{itime};
+  $form->{lastmtime} = $form->{mtime};
   $form->{donumber_array} =~ s/\s*$//g;
   $form->{ordnumber_array} =~ s/ //;
   $form->{ordnumber_array} =~ s/\s*$//g;