Projekt

Allgemein

Profil

« Zurück | Weiter » 

Revision e03993be

Von Thomas Heck vor mehr als 11 Jahren hinzugefügt

  • ID e03993be556024f24e5a4940fa08078ee8cd3840
  • Vorgänger e8b158e9
  • Nachfolger 5eff8cd0

Customer/Vendor-Pfade angepasst

Unterschiede anzeigen:

SL/Controller/CustomerVendor.pm
291 291
  $self->action_edit();
292 292
}
293 293

  
294

  
295
sub action_search {
296
  my ($self) = @_;
297

  
298
  my $url = 'ct.pl?action=search&db='. ($self->is_vendor() ? 'vendor' : 'customer');
299

  
300
  if ( $::form->{callback} ) {
301
    $url .= '&callback='. $::from->escape($::form->{callback});
302
  }
303

  
304
  print $::form->redirect_header($url);
305
}
306

  
307

  
308
sub action_search_contact {
309
  my ($self) = @_;
310

  
311
  my $url = 'ct.pl?action=search_contact&db=customer';
312

  
313
  if ( $::form->{callback} ) {
314
    $url .= '&callback='. $::from->escape($::form->{callback});
315
  }
316

  
317
  print $::form->redirect_header($url);
318
}
319

  
320

  
294 321
sub action_get_delivery {
295 322
  my ($self) = @_;
296 323

  
SL/Controller/DeliveryPlan.pm
228 228
  }
229 229
  if ($object->isa('SL::DB::Customer')) {
230 230
    my $id     = $object->id;
231
    return "ct.pl?action=$action&id=$id&db=customer";
231
    return "controller.pl?action=CustomerVendor/$action&id=$id&db=customer";
232 232
  }
233 233
}
234 234

  
SL/Controller/SellPriceInformation.pm
141 141
  }
142 142
  if ($object->isa('SL::DB::Customer')) {
143 143
    my $id     = $object->id;
144
    return "ct.pl?action=$action&id=$id&db=customer";
144
    return "controller.pl?action=CustomerVendor/$action&id=$id&db=customer";
145 145
  }
146 146
}
147 147

  
SL/FU.pm
314 314

  
315 315
  if ($params{trans_type} eq 'customer') {
316 316
    $link = {
317
      'url'   => 'ct.pl?action=edit&db=customer&id=' . $form->quote($params{trans_id}) . '&edit_note_id=' . $form->quote($params{note_id}),
317
      'url'   => 'controller.pl?action=CustomerVendor/edit&db=customer&id=' . $form->quote($params{trans_id}) . '&edit_note_id=' . $form->quote($params{note_id}),
318 318
      'title' => $locale->text('Customer') . " '$params{trans_info}'",
319 319
    };
320 320

  
321 321
  } elsif ($params{trans_type} eq 'vendor') {
322 322
    $link = {
323
      'url'   => 'ct.pl?action=edit&type=sales_quotation&id=' . $params{trans_id} . '&edit_note_id=' . $form->quote($params{note_id}),
323
      'url'   => 'controller.pl?action=CustomerVendor/edit&type=sales_quotation&id=' . $params{trans_id} . '&edit_note_id=' . $form->quote($params{note_id}),
324 324
      'title' => $locale->text('Vendor') . " '$params{trans_info}'",
325 325
    };
326 326

  
SL/Presenter/CustomerVendor.pm
27 27
  croak "Unknown display type '$params{display}'" unless $params{display} =~ m/^(?:inline|table-cell)$/;
28 28

  
29 29
  my $text = join '', (
30
    $params{no_link} ? '' : '<a href="ct.pl?action=edit&amp;db=' . $type . '&amp;id=' . $self->escape($cv->id) . '">',
30
    $params{no_link} ? '' : '<a href="controller.pl?action=CustomerVendor/edit&amp;db=' . $type . '&amp;id=' . $self->escape($cv->id) . '">',
31 31
    $self->escape($cv->name),
32 32
    $params{no_link} ? '' : '</a>',
33 33
  );
menu.ini
2 2

  
3 3
[Master Data--Add Customer]
4 4
ACCESS=customer_vendor_edit
5
module=ct.pl
6
action=add
5
module=controller.pl
6
action=CustomerVendor/add
7 7
db=customer
8 8

  
9 9
[Master Data--Add Vendor]
10 10
ACCESS=customer_vendor_edit
11
module=ct.pl
12
action=add
11
module=controller.pl
12
action=CustomerVendor/add
13 13
db=vendor
14 14

  
15 15
[Master Data--Add Part]
......
48 48

  
49 49
[Master Data--Reports--Customers]
50 50
ACCESS=customer_vendor_edit
51
module=ct.pl
52
action=search
51
module=controller.pl
52
action=CustomerVendor/search
53 53
db=customer
54 54

  
55 55
[Master Data--Reports--Vendors]
56 56
ACCESS=customer_vendor_edit
57
module=ct.pl
58
action=search
57
module=controller.pl
58
action=CustomerVendor/search
59 59
db=vendor
60 60

  
61 61
[Master Data--Reports--Contacts]
62 62
ACCESS=customer_vendor_edit
63
module=ct.pl
64
action=search_contact
63
module=controller.pl
64
action=CustomerVendor/search_contact
65
db=customer
65 66

  
66 67
[Master Data--Reports--Parts]
67 68
ACCESS=part_service_assembly_details
templates/webpages/sepa/bank_transfer_add.html
52 52
      </td>
53 53
      <td>
54 54
       [%- IF loop.first || (previous_vcname != invoice.vcname) %]
55
        <a href="ct.pl?action=edit&db=[% vc %]&id=[% HTML.url(invoice.vc_id) %]&callback=[% HTML.url('sepa.pl?action=bank_transfer_add&vc=' _ vc) %]">
55
        <a href="controller.pl?action=CustomerVendor/edit&db=[% vc %]&id=[% HTML.url(invoice.vc_id) %]&callback=[% HTML.url('sepa.pl?action=bank_transfer_add&vc=' _ vc) %]">
56 56
         [%- GET HTML.escape(invoice.vcname);
57 57
             SET previous_vcname = invoice.vcname;
58 58
             IF !invoice.vc_bank_info_ok;
templates/webpages/sepa/bank_transfer_create.html
86 86
     <tr class="listrow[% loop.count % 2 %]">
87 87
      <td>
88 88
       [%- IF loop.first || (previous_vcname != bank_transfer.vcname) %]
89
        <a href="ct.pl?action=edit&db=[% vc %]&id=[% HTML.url(bank_transfer.vc_id) %]&callback=[% HTML.url('sepa.pl?action=bank_transfer_add&vc=' _ vc) %]">
89
        <a href="controller.pl?action=CustomerVendor/edit&db=[% vc %]&id=[% HTML.url(bank_transfer.vc_id) %]&callback=[% HTML.url('sepa.pl?action=bank_transfer_add&vc=' _ vc) %]">
90 90
         [%- GET HTML.escape(bank_transfer.vcname);
91 91
             SET previous_vcname = bank_transfer.vcname; -%]
92 92
        </a>

Auch abrufbar als: Unified diff