Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ffd06003

Von Kivitendo Admin vor fast 8 Jahren hinzugefügt

  • ID ffd06003d74a7844892fca93905556a1903a31d8
  • Vorgänger 0e60202e
  • Nachfolger dd2ee66b

Verkaufsrechnung bearbeiten - ALL_DEPARTMENTS wie andere Belegemasken

Unterschiede anzeigen:

bin/mozilla/is.pl
302 302
  $form->get_lists("taxzones"      => ($form->{id} ? "ALL_TAXZONES" : "ALL_ACTIVE_TAXZONES"),
303 303
                   "currencies"    => "ALL_CURRENCIES",
304 304
                   "customers"     => "ALL_CUSTOMERS",
305
                   "departments"   => "all_departments",
306 305
                   "price_factors" => "ALL_PRICE_FACTORS");
307 306

  
307
  $form->{ALL_DEPARTMENTS} = SL::DB::Manager::Department->get_all;
308

  
308 309
  # Projects
309 310
  my @old_project_ids = uniq grep { $_ } map { $_ * 1 } ($form->{"globalproject_id"}, map { $form->{"project_id_$_"} } 1..$form->{"rowcount"});
310 311
  my @old_ids_cond    = @old_project_ids ? (id => \@old_project_ids) : ();
templates/webpages/is/form_header.html
146 146
  [%- END %]
147 147
          </td>
148 148
        </tr>
149
[%- IF all_departments %]
149
[%- IF ALL_DEPARTMENTS %]
150 150
        <tr>
151 151
          <th align="right" nowrap>[% 'Department' | $T8 %]</th>
152 152
          <td colspan="3">
153
            [% L.select_tag('department_id', all_departments, default = department_id, title_sub = \department_labels, with_empty = 1, style = 'width:250px') %]
153
            [% L.select_tag('department_id', ALL_DEPARTMENTS, default = department_id, title_key = 'description', with_empty = 1, style = 'width:250px') %]
154 154
          </td>
155 155
        </tr>
156 156
[%- END %]

Auch abrufbar als: Unified diff