Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 0a3d4b15

Von Moritz Bunkus vor mehr als 7 Jahren hinzugefügt

  • ID 0a3d4b1595fad7895702b947272ce52381ff3589
  • Vorgänger 103d03fb
  • Nachfolger 20e572be

Einkaufslieferscheine: Fix: Anzeige Ansprechperson wenn geliefert

Unterschiede anzeigen:

bin/mozilla/do.pl
401 401
  my $class       = "SL::DB::" . ($form->{vc} eq 'customer' ? 'Customer' : 'Vendor');
402 402
  $form->{VC_OBJ} = $class->load_cached($form->{ $form->{vc} . '_id' });
403 403

  
404
  $form->{CONTACT_OBJ}   = $form->{cp_id} ? SL::DB::Contact->load_cached($form->{cp_id}) : undef;
404 405
  my $current_employee   = SL::DB::Manager::Employee->current;
405 406
  $form->{employee_id}   = $form->{old_employee_id} if $form->{old_employee_id};
406 407
  $form->{salesman_id}   = $form->{old_salesman_id} if $form->{old_salesman_id};
templates/webpages/do/form_header.html
147 147
         <th align="right">[% 'Contact Person' | $T8 %]</th>
148 148
         <td>
149 149
          [%- IF delivered %]
150
          <input type="hidden" name="cp_id" value="[% HTML.escape(cp_id) %]">
151
          [%- IF cp_id == row.cp_id %]
152
          [%- HTML.escape(row.cp_name) %][%- IF row.cp_abteilung %] ([% HTML.escape(row.cp_abteilung) %])[% END -%]
153
          [%- END %]
150
            [% L.hidden_tag("cp_id", cp_id) %]
151
            [% HTML.escape(CONTACT_OBJ.full_name) %][% IF CONTACT_OBJ.cp_abteilung %] ([% HTML.escape(CONTACT_OBJ.cp_abteilung) %])[% END %]
154 152
          [%- ELSE %]
155 153
            [% L.select_tag('cp_id', ALL_CONTACTS, default = cp_id, value_key = 'cp_id', title_key = 'full_name_dep', with_empty = 1, style='width: 250px') %]
156 154
          [%- END %]

Auch abrufbar als: Unified diff