$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 {
}
sub add_javascripts {
- $::request->{layout}->add_javascripts(qw(kivi.PriceRule.js autocomplete_customer.js autocomplete_vendor.js kivi.Part.js));
+ $::request->{layout}->add_javascripts(qw(kivi.PriceRule.js autocomplete_vendor.js kivi.Part.js kivi.CustomerVendor.js));
}
sub init_price_rule {
for my $bar ($::request->layout->get('actionbar')) {
$bar->add(
action => [
- t8('Search'),
+ t8('Update'),
submit => [ '#search_form', { action => 'PriceRule/list' } ],
accesskey => 'enter',
],
- action => [
- t8('Reset'),
- call => [ 'kivi.PriceRule.reset_search_form' ],
- ],
combobox => [
action => [