Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision ce213a0a

Von Sven Schöling vor etwa 11 Jahren hinzugefügt

  • ID ce213a0a7c307cd46c4aff6eb72cbdc5da6753b7
  • Vorgänger 9c7262bf
  • Nachfolger fbbbc340

Finanzcontrollingbericht: Filtern nach Projekttyp

Unterschiede anzeigen:

SL/Controller/FinancialControllingReport.pm
15 15
use SL::Locale::String;
16 16

  
17 17
use Rose::Object::MakeMethods::Generic (
18
  scalar => [ qw(db_args flat_filter) ],
18
  scalar => [ qw(db_args flat_filter project_types) ],
19 19
);
20 20

  
21 21
__PACKAGE__->run_before(sub { $::auth->assert('sales_order_edit'); });
......
45 45
sub action_list {
46 46
  my ($self) = @_;
47 47

  
48
  $self->project_types(SL::DB::Manager::ProjectType->get_all_sorted);
49

  
48 50
  $self->db_args($self->setup_db_args_for_list(filter => $::form->{filter}));
49 51
  $self->flat_filter({ map { $_->{key} => $_->{value} } $::form->flatten_variables('filter') });
50 52
  $self->make_filter_summary;
templates/webpages/financial_controlling_report/_filter.html
26 26
   <th align="right">[% 'Project Number' | $T8 %]</th>
27 27
   <td>[% L.input_tag('filter.globalproject.projectnumber:substr::ilike', filter.globalproject.projectnumber_substr__ilike, size = 20) %]</td>
28 28
  </tr>
29
  <tr>
30
   <th align="right">[% 'Project Type' | $T8 %]</th>
31
   <td>[% L.select_tag('filter.globalproject.project_type_id', SELF.project_types, default=filter.globalproject.project_type_id, title_key='description', with_empty=1) %]</td>
32
  </tr>
29 33
  <tr>
30 34
   <th align="right">[% 'Order Date' | $T8 %] [% 'From Date' | $T8 %]</th>
31 35
   <td>[% L.date_tag('filter.transdate:date::ge', filter.transdate_date__ge, cal_align = 'BR') %]</td>

Auch abrufbar als: Unified diff