]> wagnertech.de Git - mfinanz.git/blobdiff - bin/mozilla/do.pl
Einkaufs-/Verkaufsprozesse: optionale Einschränkungen für gewisse Aktionen
[mfinanz.git] / bin / mozilla / do.pl
index 06b8f65524b87751149f29aadbb5e6801d7ba0c1..88ae6c387336e73c8b719fdebb93b4de0a7ea5d9 100644 (file)
@@ -85,6 +85,10 @@ sub add {
 
   check_do_access();
 
+  if (($::form->{type} =~ /purchase/) && !$::instance_conf->get_allow_new_purchase_invoice) {
+    $::form->show_generic_error($::locale->text("You do not have the permissions to access this function."));
+  }
+
   my $form     = $main::form;
 
   set_headings("add");
@@ -310,7 +314,7 @@ sub form_header {
 
   $form->{follow_up_trans_info} = $form->{donumber} .'('. $follow_up_vc .')';
 
-  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase));
+  $::request->{layout}->use_javascript(map { "${_}.js" } qw(kivi.SalesPurchase ckeditor/ckeditor ckeditor/adapters/jquery));
 
   $form->header();
   # Fix für Bug 1082 Erwartet wird: 'abteilungsNAME--abteilungsID'