Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision a3b87db8

Von Moritz Bunkus vor fast 8 Jahren hinzugefügt

  • ID a3b87db81bd69cc2c7334c554d6e792943313e71
  • Vorgänger 9ea32302
  • Nachfolger 2cd62801

Menüvereinheitlichung: »Stammdaten« → »Kunden/Lieferanten/Ansprechpersonen« umgestellt

Unterschiede anzeigen:

bin/mozilla/ct.pl
51 51
use SL::CT;
52 52
use SL::CTI;
53 53
use SL::CVar;
54
use SL::Controller::CustomerVendor;
54 55
use SL::Request qw(flatten);
55 56
use SL::DB::Business;
56 57
use SL::DB::Default;
......
300 301
    $report->add_data($row);
301 302
  }
302 303

  
303
  setup_ct_list_names_action_bar();
304
  $report->generate_with_headers();
304
  $report->generate_with_headers(action_bar_setup_hook => sub { setup_ct_list_names_action_bar(report_generator_actions => [ @_ ]) });
305 305

  
306 306
  $main::lxdebug->leave_sub();
307 307
}
......
447 447
        submit    => [ '#form', { action => 'list_names' } ],
448 448
        accesskey => 'enter',
449 449
      ],
450

  
451
      'separator',
452

  
453
      link => [
454
        t8('Add'),
455
        link => SL::Controller::CustomerVendor->new->url_for(action => 'add', db => $::form->{db}),
456
      ],
450 457
    );
451 458
  }
452 459
}
......
456 463

  
457 464
  for my $bar ($::request->layout->get('actionbar')) {
458 465
    $bar->add(
459
      action => [
466
      @{ $params{report_generator_actions} },
467

  
468
      'separator',
469

  
470
      link => [
460 471
        t8('Add'),
461
        submit    => [ '#new_form', { action => 'CustomerVendor/add' } ],
462
        accesskey => 'enter',
472
        link => SL::Controller::CustomerVendor->new->url_for(action => 'add', db => $::form->{db}),
463 473
      ],
464 474
    );
465 475
  }
menus/user/00-erp.yaml
28 28
  icon: master_data
29 29
  order: 100
30 30
- parent: master_data
31
  id: master_data_add_customer
32
  name: Add Customer
33
  icon: customer_add
31
  id: master_data_customers
32
  name: Customers
33
  icon: customer_report
34 34
  order: 100
35 35
  access: customer_vendor_edit
36 36
  params:
37
    action: CustomerVendor/add
37
    action: CustomerVendor/search
38 38
    db: customer
39 39
- parent: master_data
40
  id: master_data_add_vendor
41
  name: Add Vendor
42
  icon: vendor_add
40
  id: master_data_vendors
41
  name: Vendors
42
  icon: vendor_report
43 43
  order: 200
44 44
  access: customer_vendor_edit
45 45
  params:
46
    action: CustomerVendor/add
46
    action: CustomerVendor/search
47 47
    db: vendor
48
- parent: master_data
49
  id: master_data_contacts
50
  name: Contacts
51
  order: 300
52
  access: customer_vendor_edit
53
  params:
54
    action: CustomerVendor/search_contact
55
    db: customer
48 56
- parent: master_data
49 57
  id: master_data_add_part
50 58
  name: Add Part
......
114 122
  name: Reports
115 123
  icon: master_data_report
116 124
  order: 1000
117
- parent: master_data_reports
118
  id: master_data_reports_customers
119
  name: Customers
120
  icon: customer_report
121
  order: 100
122
  access: customer_vendor_edit
123
  params:
124
    action: CustomerVendor/search
125
    db: customer
126
- parent: master_data_reports
127
  id: master_data_reports_vendors
128
  name: Vendors
129
  icon: vendor_report
130
  order: 200
131
  access: customer_vendor_edit
132
  params:
133
    action: CustomerVendor/search
134
    db: vendor
135
- parent: master_data_reports
136
  id: master_data_reports_contacts
137
  name: Contacts
138
  order: 300
139
  access: customer_vendor_edit
140
  params:
141
    action: CustomerVendor/search_contact
142
    db: customer
143 125
- parent: master_data_reports
144 126
  id: master_data_reports_articles
145 127
  name: Articles

Auch abrufbar als: Unified diff