fokus in Rechnung erstellen gefixt.
authorSven Schöling <s.schoeling@linet-services.de>
Fri, 26 Oct 2012 11:11:15 +0000 (13:11 +0200)
committerSven Schöling <s.schoeling@linet-services.de>
Fri, 26 Oct 2012 11:11:15 +0000 (13:11 +0200)
bin/mozilla/is.pl
templates/webpages/is/form_header.html

index 58d4c4f..d5bd229 100644 (file)
@@ -350,7 +350,7 @@ sub form_header {
   $TMPL_VAR{creditwarning} = ($form->{creditlimit} != 0) && ($form->{creditremaining} < 0) && !$form->{update};
   $TMPL_VAR{is_credit_remaining_negativ} = $form->{creditremaining} =~ /-/;
 
-  $form->{fokus} = "invoice.customer";
+  $::request->{layout}->focus('#customer');
 
   my $follow_up_vc         =  $form->{customer};
   $follow_up_vc            =~ s/--\d*\s*$//;
index 4178a21..bbe05f0 100644 (file)
@@ -34,6 +34,7 @@
           <th align="right">[% 'Customer' | $T8 %]</th>
           <td>
             [%- INCLUDE 'generic/multibox.html'
+                 id            = 'customer',
                  name          = 'customer',
                  style         = 'width: 250px',
                  DATA          = ALL_CUSTOMERS,