is_templates: Kundenauswahl ohne dropdown fix.
authorSven Schöling <s.schoeling@linet-services.de>
Fri, 6 Nov 2009 12:17:03 +0000 (13:17 +0100)
committerSven Schöling <s.schoeling@linet-services.de>
Fri, 6 Nov 2009 12:17:03 +0000 (13:17 +0100)
bin/mozilla/is.pl
locale/de/dn
templates/webpages/dunning/search_de.html
templates/webpages/is/form_header_de.html
templates/webpages/is/form_header_master.html

index d6c5d8b..797c260 100644 (file)
@@ -168,8 +168,15 @@ sub invoice_links {
     $form->{customer}         = qq|$form->{customer}--$form->{"customer_id"}|;
   }
 
-  $form->{oldcustomer} = "$form->{customer}--$form->{customer_id}";
-  $form->{selectcustomer} = 1;
+  $form->{"oldcustomer"}  = $form->{customer};
+
+  if ($form->{"oldcustomer"} !~ m/--\d+$/ && $form->{"customer_id"}) {
+    $form->{"oldcustomer"} .= qq|--$form->{"customer_id"}|
+  }
+
+
+#  $form->{oldcustomer} = "$form->{customer}--$form->{customer_id}";
+#  $form->{selectcustomer} = 1;
 
   $form->{employee} = "$form->{employee}--$form->{employee_id}";
 
index 45e3c04..beedc7d 100644 (file)
@@ -218,9 +218,9 @@ $self->{texts} = {
   'SAVED FOR DUNNING'           => 'Gespeichert',
   'SCREENED'                    => 'Angezeigt',
   'Sales Invoice'               => 'Rechnung',
-  'Salesperson'                 => 'Verkäufer/in',
   'Sales Order'                 => 'Kundenauftrag',
   'Sales quotation'             => 'Angebot',
+  'Salesperson'                 => 'Verkäufer',
   'Screen'                      => 'Bildschirm',
   'Select a Customer'           => 'Endkunde auswählen',
   'Select a customer'           => 'Einen Kunden ausw&auml;hlen',
index 5bd1b9d..d9b10b0 100644 (file)
       <tr>
        <th align="right" nowrap>Alte Mahnungen anzeigen</th>
        <td><input type="checkbox" value="1" name="showold"></td>
-       <th align="right" nowrap>Verk&auml;ufer anzeigen</th>
-       <td><input type="checkbox" value="1" name="l_salesman"></td>
       </tr>
      </table>
     </td>
index 6cab7ad..f519ce2 100644 (file)
@@ -7,6 +7,7 @@
 <script type="text/javascript" src="js/vendor_selection.js"></script>
 <script type="text/javascript" src="js/calculate_qty.js"></script>
 <script type="text/javascript" src="js/follow_up.js"></script>
+<script type="text/javascript" src="js/customer_or_vendor_selection.js"></script>
 
 <form method="post" name="invoice" action="[% script %]">
 
index 3b9d87c..1c016cd 100644 (file)
@@ -7,6 +7,7 @@
 <script type="text/javascript" src="js/vendor_selection.js"></script>
 <script type="text/javascript" src="js/calculate_qty.js"></script>
 <script type="text/javascript" src="js/follow_up.js"></script>
+<script type="text/javascript" src="js/customer_or_vendor_selection.js"></script>
 
 <form method="post" name="invoice" action="[% script %]">