my $orderitems = $self->models->get;
$self->calc_qtys($orderitems);
$self->setup_list_action_bar;
- $self->report_generator_list_objects(report => $self->{report}, objects => $orderitems, action_bar => 1);
+ $self->report_generator_list_objects(report => $self->{report}, objects => $orderitems);
}
# private functions
my $orderitems = $self->models->get;
$self->calc_qtys_price($orderitems);
$self->setup_list_action_bar;
- $self->report_generator_list_objects(report => $self->{report}, objects => $orderitems, action_bar => 1);
+ $self->report_generator_list_objects(report => $self->{report}, objects => $orderitems);
}
sub prepare_report {
$data->{$_}->{data} = $::form->format_amount(\%::myconfig, $data->{$_}->{data}, 2) for grep { !m/_p$/ } @{ $self->{number_columns} };
};
- return $self->report_generator_list_objects(report => $self->{report}, objects => $self->orders, data_callback => $modify_data, action_bar => 1);
+ return $self->report_generator_list_objects(report => $self->{report}, objects => $self->orders, data_callback => $modify_data);
}
sub make_filter_summary {
}
my %options = %{ $params{options} || {} };
- $options{action_bar} //= $params{action_bar};
+ $options{action_bar} //= $params{action_bar} // 1;
if ($params{layout}) {
return $params{report}->generate_with_headers(%options);
} else {
- my $html = $params{report}->generate_html_content(%options);
+ my $html = $params{report}->generate_html_content(action_bar => 0, %options);
$self->render(\$html , { layout => 0, process => 0 });
}
}
$report->set_options('raw_bottom_info_text' => $self->render('inventory/report_bottom', { output => 0 }) );
}
- $report->generate_with_headers(action_bar => 1);
+ $report->generate_with_headers();
$main::lxdebug->leave_sub();
$self->prepare_report;
my $letters = $self->models->get;
- $self->report_generator_list_objects(report => $self->{report}, objects => $letters, action_bar => 1);
+ $self->report_generator_list_objects(report => $self->{report}, objects => $letters);
}
$self->prepare_report;
- $self->report_generator_list_objects(report => $self->{report}, objects => $price_rules, $::form->{inline} ? (layout => 0, header => 0) : (action_bar => 1));
+ $self->report_generator_list_objects(report => $self->{report}, objects => $price_rules, $::form->{inline} ? (layout => 0, header => 0) : ());
}
sub action_new {
$self->prepare_report;
- $self->report_generator_list_objects(report => $self->{report}, objects => $self->models->get, action_bar => 1);
+ $self->report_generator_list_objects(report => $self->{report}, objects => $self->models->get);
}
sub action_new {
$self->_setup_search_action_bar;
$self->prepare_report;
- $self->report_generator_list_objects(report => $self->{report}, objects => $self->models->get, action_bar => 1);
+ $self->report_generator_list_objects(report => $self->{report}, objects => $self->models->get);
}
sub action_new {
);
$self->setup_list_action_bar;
- $report->generate_with_headers(action_bar => 1);
+ $report->generate_with_headers();
$main::lxdebug->leave_sub();
}
sub generate_html_content {
my ($self, %params) = @_;
+
+ $params{action_bar} //= 1;
+
my $variables = $self->prepare_html_content(%params);
$self->setup_action_bar($params{action_bar}, $variables) if $params{action_bar};
$::request->layout->add_javascripts('kivi.MassInvoiceCreatePrint.js');
setup_ar_transactions_action_bar(num_rows => scalar(@{ $form->{AR} }));
- $report->generate_with_headers(action_bar => 1);
+ $report->generate_with_headers();
$main::lxdebug->leave_sub();
}
}
setup_ct_list_names_action_bar();
- $report->generate_with_headers(action_bar => 1);
+ $report->generate_with_headers();
$main::lxdebug->leave_sub();
}
$report->add_data($row);
}
- $report->generate_with_headers(action_bar => 1);
+ $report->generate_with_headers();
$::lxdebug->leave_sub;
}
$report->set_options_from_form();
setup_dn_show_dunning_action_bar();
- $report->generate_with_headers(action_bar => 1);
+ $report->generate_with_headers();
$main::lxdebug->leave_sub();
setup_do_orders_action_bar();
- $report->generate_with_headers(action_bar => 1);
+ $report->generate_with_headers();
$main::lxdebug->leave_sub();
}
setup_gl_transactions_action_bar(num_rows => scalar(@{$form->{GL}}));
- $report->generate_with_headers(action_bar => 1);
+ $report->generate_with_headers();
$main::lxdebug->leave_sub();
}
}
setup_ic_generate_report_action_bar();
- $report->generate_with_headers(action_bar => 1);
+ $report->generate_with_headers();
$lxdebug->leave_sub();
} #end generate_report
$report->add_data(create_subtotal_row(\%totals, \@columns, \%column_alignment, \@subtotal_columns, 'listtotal'));
setup_oe_orders_action_bar();
- $report->generate_with_headers(action_bar => 1);
+ $report->generate_with_headers();
$main::lxdebug->leave_sub();
}
$report->set_options('raw_bottom_info_text' => $form->parse_html_template('common/paginate',
{ 'pages' => $pages , 'base_url' => $href.'&sort='.$form->{sort}.'&order='.$form->{order}}) );
}
- $report->generate_with_headers(action_bar => 1);
+ $report->generate_with_headers();
$main::lxdebug->leave_sub();
}
{'pages' => $pages , 'base_url' => $href}) );
}
- $report->generate_with_headers(action_bar => 1);
+ $report->generate_with_headers();
$main::lxdebug->leave_sub();
}