]> wagnertech.de Git - kivitendo-erp.git/blobdiff - bin/mozilla/is.pl
is: Payment_terms und duedate ajax gefixt.
[kivitendo-erp.git] / bin / mozilla / is.pl
index 0567e672e34169d0a0847b0562171fe109752aeb..530c4776e8127454f69aa29afc770661d84b371a 100644 (file)
@@ -45,7 +45,7 @@ require "bin/mozilla/drafts.pl";
 use strict;
 
 my $edit;
-my $payment;
+#my $payment;
 my $print_post;
 
 1;
@@ -289,15 +289,6 @@ sub form_header {
   $form->{defaultcurrency} = $form->get_default_currency(\%myconfig);
   $form->{radier}          = ($form->current_date(\%myconfig) eq $form->{gldate}) ? 1 : 0;
 
-  $payment = qq|<option value=""></option>|;
-  foreach my $item (@{ $form->{payment_terms} }) {
-    if ($form->{payment_id} eq $item->{id}) {
-      $payment .= qq|<option value="$item->{id}" selected>$item->{description}</option>|;
-    } else {
-      $payment .= qq|<option value="$item->{id}">$item->{description}</option>|;
-    }
-  }
-
   my $set_duedate_url = "$form->{script}?action=set_duedate";
 
   push @ { $form->{AJAX} }, new CGI::Ajax( 'set_duedate' => $set_duedate_url );