Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision 1968dad5

Von Moritz Bunkus vor fast 8 Jahren hinzugefügt

  • ID 1968dad59c34e0e2505cb60597b8e5ce7fee8f8d
  • Vorgänger dc8a1d5e
  • Nachfolger 49453fc1

Menüvereinheitlichung: »Verkauf/Einkauf« → »Briefe« umgestellt

Unterschiede anzeigen:

SL/Controller/Letter.pm
171 171
sub action_list {
172 172
  my ($self, %params) = @_;
173 173

  
174
  $self->setup_list_action_bar;
175 174
  $self->make_filter_summary;
176 175
  $self->prepare_report;
177 176

  
178 177
  my $letters = $self->models->get;
179
  $self->report_generator_list_objects(report => $self->{report}, objects => $letters);
178
  $self->report_generator_list_objects(
179
    report  => $self->{report},
180
    objects => $letters,
181
    options => {
182
      action_bar_setup_hook => sub { $self->setup_list_action_bar(report_generator_actions => \@_) },
183
    },
184
  );
185

  
186
  $self->setup_list_action_bar;
180 187

  
181 188
}
182 189

  
......
650 657
        disabled => !$self->letter->id ? t8('The object has not been saved yet.') : undef,
651 658
      ],
652 659

  
660
      'separator',
661

  
653 662
      combobox => [
654 663
        action => [ t8('Export') ],
655 664
        action => [
......
677 686
        submit    => [ '#search_form', { action => 'Letter/list' } ],
678 687
        accesskey => 'enter',
679 688
      ],
689

  
690
      'separator',
691

  
692
      @{ $params{report_generator_actions} },
693

  
694
      link => [
695
        t8('Add'),
696
        link => $self->url_for(action => 'add', is_sales => $self->is_sales),
697
      ],
680 698
    );
681 699
  }
682 700
}
menus/user/00-erp.yaml
167 167
  module: dn.pl
168 168
  params:
169 169
    action: add
170
- parent: ar
171
  id: ar_add_letter
172
  name: Add Letter
173
  order: 800
174
  access: sales_letter_edit
175
  params:
176
    action: Letter/add
177
    is_sales: 1
178 170
- parent: ar
179 171
  id: ar_invoices
180 172
  name: Invoices
......
188 180
  params:
189 181
    noshow: 1
190 182
    action: MassInvoiceCreatePrint/list_sales_delivery_orders
183
- parent: ar
184
  id: ar_letters
185
  name: Letters
186
  order: 900
187
  access: sales_letter_report
188
  params:
189
    action: Letter/list
190
    is_sales: 1
191 191
- parent: ar
192 192
  id: ar_reports
193 193
  name: Reports
......
241 241
  access: sales_order_edit
242 242
  params:
243 243
    action: FinancialControllingReport/list
244
- parent: ar_reports
245
  id: ar_reports_letters
246
  name: Letters
247
  order: 1100
248
  access: sales_letter_report
249
  params:
250
    action: Letter/list
251
    is_sales: 1
252 244
- id: ap
253 245
  name: AP
254 246
  icon: ap
......
292 284
    action: add
293 285
    type: invoice
294 286
- parent: ap
295
  id: ap_add_letter
296
  name: Add Letter
287
  id: ap_letters
288
  name: Letters
297 289
  order: 450
298
  access: purchase_letter_edit
290
  access: purchase_letter_report
299 291
  params:
300
    action: Letter/add
292
    action: Letter/list
301 293
    is_sales: 0
302 294
- parent: ap
303 295
  id: ap_reports
......
328 320
  params:
329 321
    action: DeliveryValueReport/list
330 322
    vc: vendor
331
- parent: ap_reports
332
  id: ap_reports_letters
333
  name: Letters
334
  order: 1100
335
  access: purchase_letter_report
336
  params:
337
    action: Letter/list
338
    is_sales: 0
339 323
- id: warehouse
340 324
  name: Warehouse
341 325
  icon: warehouse

Auch abrufbar als: Unified diff