Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 7079d683

Von Bernd Bleßmann vor mehr als 3 Jahren hinzugefügt

  • ID 7079d6838448b1bd742191ccce29cfba382e4cc8
  • Vorgänger 8cc7857c
  • Nachfolger ee046828

Zeiterfassung: Bericht: Filter f. Auftragsnummer, Projekt und Beschreibung

Unterschiede anzeigen:

SL/Controller/TimeRecording.pm
321 321
  my $filter = $::form->{filter} || {};
322 322
  my @filter_strings;
323 323

  
324
  my $staff_member = $filter->{staff_member_id} ? SL::DB::Employee->new(id => $filter->{staff_member_id})->load->safe_name : '';
324
  my $staff_member = $filter->{staff_member_id} ? SL::DB::Employee->new(id => $filter->{staff_member_id})->load->safe_name        : '';
325
  my $project      = $filter->{project_id}      ? SL::DB::Project->new (id => $filter->{project_id})     ->load->displayable_name : '';
325 326

  
326 327
  my @filters = (
327
    [ $filter->{"date:date::ge"},                              t8('From Date')      ],
328
    [ $filter->{"date:date::le"},                              t8('To Date')        ],
328
    [ $filter->{"date:date::ge"},                              t8('From Date')       ],
329
    [ $filter->{"date:date::le"},                              t8('To Date')         ],
329 330
    [ $filter->{"customer"}->{"name:substr::ilike"},           t8('Customer')        ],
330 331
    [ $filter->{"customer"}->{"customernumber:substr::ilike"}, t8('Customer Number') ],
332
    [ $filter->{"order"}->{"ordnumber:substr::ilike"},         t8('Order Number')    ],
333
    [ $project,                                                t8('Project')         ],
334
    [ $filter->{"description:substr::ilike"},                  t8('Description')     ],
331 335
    [ $staff_member,                                           t8('Mitarbeiter')     ],
332 336
  );
333 337

  
templates/webpages/time_recording/_filter.html
1 1
[%- USE T8 %]
2 2
[%- USE L %]
3
[%- USE P %]
3 4
[%- USE LxERP %]
4 5
[%- USE HTML %]
5 6
<form action='controller.pl' method='post' id='filter_form'>
......
26 27
    <th align="right">[% 'Customer Number' | $T8 %]</th>
27 28
    <td>[% L.input_tag('filter.customer.customernumber:substr::ilike', filter.customer.customernumber_substr__ilike, size = 20) %]</td>
28 29
  </tr>
30
  <tr>
31
    <th align="right">[% 'Order Number' | $T8 %]</th>
32
    <td>[% L.input_tag('filter.order.ordnumber:substr::ilike', filter.order.ordnumber_substr__ilike, size = 20) %]</td>
33
  </tr>
34
  <tr>
35
    <th align="right">[% 'Project' | $T8 %]</th>
36
    <td>[% P.project.picker('filter.project_id', filter.project_id, active="both", valid="both", size = 20) %]</td>
37
  </tr>
38
  <tr>
39
    <th align="right">[% 'Description' | $T8 %]</th>
40
    <td>[% L.input_tag('filter.description:substr::ilike', filter.description_substr__ilike, size = 20) %]</td>
41
  </tr>
29 42

  
30 43
  [%- IF SELF.can_view_all -%]
31 44
  <tr>

Auch abrufbar als: Unified diff