Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e7913c4c

Von Moritz Bunkus vor fast 8 Jahren hinzugefügt

  • ID e7913c4ca30470b30b0585205c6badbe2f99e655
  • Vorgänger a887cb1b
  • Nachfolger 7b9ad004

ActionBar: ReportGenerator nutzt per Default nun die ActionBar

Unterschiede anzeigen:

SL/Controller/DeliveryPlan.pm
42 42
  my $orderitems = $self->models->get;
43 43
  $self->calc_qtys($orderitems);
44 44
  $self->setup_list_action_bar;
45
  $self->report_generator_list_objects(report => $self->{report}, objects => $orderitems, action_bar => 1);
45
  $self->report_generator_list_objects(report => $self->{report}, objects => $orderitems);
46 46
}
47 47

  
48 48
# private functions
SL/Controller/DeliveryValueReport.pm
56 56
  my $orderitems = $self->models->get;
57 57
  $self->calc_qtys_price($orderitems);
58 58
  $self->setup_list_action_bar;
59
  $self->report_generator_list_objects(report => $self->{report}, objects => $orderitems, action_bar => 1);
59
  $self->report_generator_list_objects(report => $self->{report}, objects => $orderitems);
60 60
}
61 61

  
62 62
sub prepare_report {
SL/Controller/FinancialControllingReport.pm
206 206
    $data->{$_}->{data} = $::form->format_amount(\%::myconfig, $data->{$_}->{data}, 2) for grep { !m/_p$/ } @{ $self->{number_columns} };
207 207
  };
208 208

  
209
  return $self->report_generator_list_objects(report => $self->{report}, objects => $self->orders, data_callback => $modify_data, action_bar => 1);
209
  return $self->report_generator_list_objects(report => $self->{report}, objects => $self->orders, data_callback => $modify_data);
210 210
}
211 211

  
212 212
sub make_filter_summary {
SL/Controller/Helper/ReportGenerator.pm
141 141
  }
142 142

  
143 143
  my %options            = %{ $params{options} || {} };
144
  $options{action_bar} //= $params{action_bar};
144
  $options{action_bar} //= $params{action_bar} // 1;
145 145

  
146 146
  if ($params{layout}) {
147 147
    return $params{report}->generate_with_headers(%options);
148 148
  } else {
149
    my $html = $params{report}->generate_html_content(%options);
149
    my $html = $params{report}->generate_html_content(action_bar => 0, %options);
150 150
    $self->render(\$html , { layout => 0, process => 0 });
151 151
  }
152 152
}
SL/Controller/Inventory.pm
367 367

  
368 368
      $report->set_options('raw_bottom_info_text' => $self->render('inventory/report_bottom', { output => 0 }) );
369 369
  }
370
  $report->generate_with_headers(action_bar => 1);
370
  $report->generate_with_headers();
371 371

  
372 372
  $main::lxdebug->leave_sub();
373 373

  
SL/Controller/Letter.pm
176 176
  $self->prepare_report;
177 177

  
178 178
  my $letters = $self->models->get;
179
  $self->report_generator_list_objects(report => $self->{report}, objects => $letters, action_bar => 1);
179
  $self->report_generator_list_objects(report => $self->{report}, objects => $letters);
180 180

  
181 181
}
182 182

  
SL/Controller/PriceRule.pm
38 38

  
39 39
  $self->prepare_report;
40 40

  
41
  $self->report_generator_list_objects(report => $self->{report}, objects => $price_rules, $::form->{inline} ? (layout => 0, header => 0) : (action_bar => 1));
41
  $self->report_generator_list_objects(report => $self->{report}, objects => $price_rules, $::form->{inline} ? (layout => 0, header => 0) : ());
42 42
}
43 43

  
44 44
sub action_new {
SL/Controller/Project.pm
65 65

  
66 66
  $self->prepare_report;
67 67

  
68
  $self->report_generator_list_objects(report => $self->{report}, objects => $self->models->get, action_bar => 1);
68
  $self->report_generator_list_objects(report => $self->{report}, objects => $self->models->get);
69 69
}
70 70

  
71 71
sub action_new {
SL/Controller/RequirementSpec.pm
55 55

  
56 56
  $self->_setup_search_action_bar;
57 57
  $self->prepare_report;
58
  $self->report_generator_list_objects(report => $self->{report}, objects => $self->models->get, action_bar => 1);
58
  $self->report_generator_list_objects(report => $self->{report}, objects => $self->models->get);
59 59
}
60 60

  
61 61
sub action_new {
SL/Controller/YearEndTransactions.pm
56 56
  );
57 57

  
58 58
  $self->setup_list_action_bar;
59
  $report->generate_with_headers(action_bar => 1);
59
  $report->generate_with_headers();
60 60
  $main::lxdebug->leave_sub();
61 61
}
62 62

  
SL/ReportGenerator.pm
447 447

  
448 448
sub generate_html_content {
449 449
  my ($self, %params) = @_;
450

  
451
  $params{action_bar} //= 1;
452

  
450 453
  my $variables = $self->prepare_html_content(%params);
451 454

  
452 455
  $self->setup_action_bar($params{action_bar}, $variables) if $params{action_bar};
bin/mozilla/ar.pl
1201 1201
  $::request->layout->add_javascripts('kivi.MassInvoiceCreatePrint.js');
1202 1202
  setup_ar_transactions_action_bar(num_rows => scalar(@{ $form->{AR} }));
1203 1203

  
1204
  $report->generate_with_headers(action_bar => 1);
1204
  $report->generate_with_headers();
1205 1205

  
1206 1206
  $main::lxdebug->leave_sub();
1207 1207
}
bin/mozilla/ct.pl
301 301
  }
302 302

  
303 303
  setup_ct_list_names_action_bar();
304
  $report->generate_with_headers(action_bar => 1);
304
  $report->generate_with_headers();
305 305

  
306 306
  $main::lxdebug->leave_sub();
307 307
}
......
432 432
    $report->add_data($row);
433 433
  }
434 434

  
435
  $report->generate_with_headers(action_bar => 1);
435
  $report->generate_with_headers();
436 436

  
437 437
  $::lxdebug->leave_sub;
438 438
}
bin/mozilla/dn.pl
453 453
  $report->set_options_from_form();
454 454

  
455 455
  setup_dn_show_dunning_action_bar();
456
  $report->generate_with_headers(action_bar => 1);
456
  $report->generate_with_headers();
457 457

  
458 458
  $main::lxdebug->leave_sub();
459 459

  
bin/mozilla/do.pl
845 845

  
846 846
  setup_do_orders_action_bar();
847 847

  
848
  $report->generate_with_headers(action_bar => 1);
848
  $report->generate_with_headers();
849 849

  
850 850
  $main::lxdebug->leave_sub();
851 851
}
bin/mozilla/gl.pl
634 634

  
635 635
  setup_gl_transactions_action_bar(num_rows => scalar(@{$form->{GL}}));
636 636

  
637
  $report->generate_with_headers(action_bar => 1);
637
  $report->generate_with_headers();
638 638

  
639 639
  $main::lxdebug->leave_sub();
640 640
}
bin/mozilla/ic.pl
588 588
  }
589 589

  
590 590
  setup_ic_generate_report_action_bar();
591
  $report->generate_with_headers(action_bar => 1);
591
  $report->generate_with_headers();
592 592

  
593 593
  $lxdebug->leave_sub();
594 594
}    #end generate_report
bin/mozilla/oe.pl
1261 1261
  $report->add_data(create_subtotal_row(\%totals, \@columns, \%column_alignment, \@subtotal_columns, 'listtotal'));
1262 1262

  
1263 1263
  setup_oe_orders_action_bar();
1264
  $report->generate_with_headers(action_bar => 1);
1264
  $report->generate_with_headers();
1265 1265

  
1266 1266
  $main::lxdebug->leave_sub();
1267 1267
}
bin/mozilla/wh.pl
740 740
      $report->set_options('raw_bottom_info_text' => $form->parse_html_template('common/paginate',
741 741
                                                            { 'pages' => $pages , 'base_url' => $href.'&sort='.$form->{sort}.'&order='.$form->{order}}) );
742 742
  }
743
  $report->generate_with_headers(action_bar => 1);
743
  $report->generate_with_headers();
744 744

  
745 745
  $main::lxdebug->leave_sub();
746 746
}
......
973 973
                                                                              {'pages' => $pages , 'base_url' => $href}) );
974 974
  }
975 975

  
976
  $report->generate_with_headers(action_bar => 1);
976
  $report->generate_with_headers();
977 977

  
978 978
  $main::lxdebug->leave_sub();
979 979
}

Auch abrufbar als: Unified diff