Die versteckte Variable "customer_klass", die die beim Kunden hinterlegte Preisgruppe...
authorMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 8 Oct 2007 09:07:00 +0000 (09:07 +0000)
committerMoritz Bunkus <m.bunkus@linet-services.de>
Mon, 8 Oct 2007 09:07:00 +0000 (09:07 +0000)
bin/mozilla/oe.pl

index f095c5f..32fe7a1 100644 (file)
@@ -453,6 +453,10 @@ sub form_header {
       </td><input type=hidden name="select$form->{vc}" value="| .
     Q($form->{"select$form->{vc}"}) . qq|">|;
 
+  if ($form->{vc} eq 'customer') {
+    $vc .= qq|<input type="hidden" name="customer_klass" value="$form->{customer_klass}">|;
+  }
+
   %labels = ();
   @values = ("");
   foreach my $item (@{ $form->{"ALL_PAYMENTS"} }) {
@@ -687,12 +691,6 @@ sub form_header {
                </td>
              </tr> | if $form->{selectdepartment};
 
-  if ($form->{type} eq 'sales_order') {
-    $employee .= qq|\n<input type="hidden" name="customer_klass" value="$form->{customer_klass}">| if $form->{selectemployee};
-  } else {
-    $employee .= qq|\n<input type="hidden" name="customer_klass" value="$form->{customer_klass}">|;
-  }
-
   $credittext = $locale->text('Credit Limit exceeded!!!');
 
   $onload = ($form->{resubmit} && ($form->{format} eq "html")) ? "window.open('about:blank','Beleg'); document.oe.target = 'Beleg';document.oe.submit()"