]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/ap.pl
CTI: wenn kein dial_command vorhanden callto: links rendern
[mfinanz.git] / bin / mozilla / ap.pl
index 00ab61801a5f97e8715443c0cfdd226cc1c88e42..eee20d0a0d6d5eef69c3da47b408cbcfe67d1451 100644 (file)
@@ -40,7 +40,6 @@ use SL::AP;
 use SL::FU;
 use SL::IR;
 use SL::IS;
-use SL::PE;
 use SL::ReportGenerator;
 use SL::DB::Default;
 use SL::DB::PurchaseInvoice;
@@ -496,6 +495,12 @@ sub mark_as_paid {
   $main::lxdebug->leave_sub();
 }
 
+sub show_draft {
+  $::form->{transdate} = DateTime->today_local->to_kivitendo if !$::form->{transdate};
+  $::form->{gldate}    = $::form->{transdate} if !$::form->{gldate};
+  update();
+}
+
 sub update {
   $main::lxdebug->enter_sub();