Revision c3db1b36
Von Bernd Bleßmann vor mehr als 6 Jahren hinzugefügt
SL/Controller/DeliveryPlan.pm | ||
---|---|---|
my $vc = $object->is_sales ? 'customer' : 'vendor';
|
||
my $id = $object->id;
|
||
|
||
return "oe.pl?action=$action&type=$type&vc=$vc&id=$id";
|
||
if ($::instance_conf->get_feature_experimental) {
|
||
return "controller.pl?action=Order/$action&type=$type&id=$id";
|
||
} else {
|
||
return "oe.pl?action=$action&type=$type&vc=$vc&id=$id";
|
||
}
|
||
}
|
||
if ($object->isa('SL::DB::Part')) {
|
||
my $id = $object->id;
|
SL/Controller/DeliveryValueReport.pm | ||
---|---|---|
my $vc = $object->is_sales ? 'customer' : 'vendor';
|
||
my $id = $object->id;
|
||
|
||
return "oe.pl?action=$action&type=$type&vc=$vc&id=$id";
|
||
if ($::instance_conf->get_feature_experimental) {
|
||
return "controller.pl?action=Order/$action&type=$type&id=$id";
|
||
} else {
|
||
return "oe.pl?action=$action&type=$type&vc=$vc&id=$id";
|
||
}
|
||
}
|
||
if ($object->isa('SL::DB::Part')) {
|
||
my $id = $object->id;
|
SL/Controller/FinancialControllingReport.pm | ||
---|---|---|
my $type = $object->type;
|
||
my $id = $object->id;
|
||
|
||
return "oe.pl?action=$action&type=$type&vc=customer&id=$id";
|
||
if ($::instance_conf->get_feature_experimental) {
|
||
return "controller.pl?action=Order/$action&type=$type&id=$id";
|
||
} else {
|
||
return "oe.pl?action=$action&type=$type&vc=customer&id=$id";
|
||
}
|
||
}
|
||
if ($object->isa('SL::DB::Customer')) {
|
||
my $id = $object->id;
|
SL/Controller/SellPriceInformation.pm | ||
---|---|---|
my $vc = $object->is_sales ? 'customer' : 'vendor';
|
||
my $id = $object->id;
|
||
|
||
return "oe.pl?action=$action&type=$type&vc=$vc&id=$id";
|
||
if ($::instance_conf->get_feature_experimental) {
|
||
return "controller.pl?action=Order/$action&type=$type&id=$id";
|
||
} else {
|
||
return "oe.pl?action=$action&type=$type&vc=$vc&id=$id";
|
||
}
|
||
}
|
||
if ($object->isa('SL::DB::Customer')) {
|
||
my $id = $object->id;
|
SL/Controller/ShopOrder.pm | ||
---|---|---|
$self->shop_order->save;
|
||
$self->shop_order->link_to_record($order);
|
||
}) || die $order->db->error;
|
||
$self->redirect_to(controller => "oe.pl", action => 'edit', type => 'sales_order', vc => 'customer', id => $order->id);
|
||
my $order_controller = $::instance_conf->get_feature_experimental ? 'Order' :'oe.pl';
|
||
$self->redirect_to(controller => $order_controller, action => 'edit', type => 'sales_order', vc => 'customer', id => $order->id);
|
||
}
|
||
}
|
||
|
SL/Controller/TopQuickSearch/OERecord.pm | ||
---|---|---|
}
|
||
|
||
sub redirect_to_object {
|
||
SL::Controller::Base->new->url_for(
|
||
controller => 'oe.pl',
|
||
action => 'edit',
|
||
type => $_[0]->type,
|
||
vc => $_[0]->vc,
|
||
id => $_[1],
|
||
);
|
||
if ($::instance_conf->get_feature_experimental) {
|
||
SL::Controller::Base->new->url_for(
|
||
controller => 'Order',
|
||
action => 'edit',
|
||
type => $_[0]->type,
|
||
id => $_[1],
|
||
);
|
||
} else {
|
||
SL::Controller::Base->new->url_for(
|
||
controller => 'oe.pl',
|
||
action => 'edit',
|
||
type => $_[0]->type,
|
||
vc => $_[0]->vc,
|
||
id => $_[1],
|
||
);
|
||
}
|
||
}
|
||
|
||
sub type {
|
SL/FU.pm | ||
---|---|---|
};
|
||
|
||
} elsif ($params{trans_type} eq 'sales_quotation') {
|
||
my $script = 'oe.pl';
|
||
my $action = 'edit';
|
||
if ($::instance_conf->get_feature_experimental) {
|
||
$script = 'controller.pl';
|
||
$action = 'Order/edit';
|
||
}
|
||
$link = {
|
||
'url' => 'oe.pl?action=edit&type=sales_quotation&id=' . $params{trans_id},
|
||
'url' => $script . '?action=' . $action . '&type=sales_quotation&id=' . $params{trans_id},
|
||
'title' => $locale->text('Sales quotation') . " $params{trans_info}",
|
||
};
|
||
|
||
... | ... | |
};
|
||
|
||
} elsif ($params{trans_type} eq 'sales_order') {
|
||
my $script = 'oe.pl';
|
||
my $action = 'edit';
|
||
if ($::instance_conf->get_feature_experimental) {
|
||
$script = 'controller.pl';
|
||
$action = 'Order/edit';
|
||
}
|
||
$link = {
|
||
'url' => 'oe.pl?action=edit&type=sales_order&id=' . $params{trans_id},
|
||
'url' => $script . '?action=' . $action . '&type=sales_order&id=' . $params{trans_id},
|
||
'title' => $locale->text('Sales Order') . " $params{trans_info}",
|
||
};
|
||
|
||
... | ... | |
};
|
||
|
||
} elsif ($params{trans_type} eq 'request_quotation') {
|
||
my $script = 'oe.pl';
|
||
my $action = 'edit';
|
||
if ($::instance_conf->get_feature_experimental) {
|
||
$script = 'controller.pl';
|
||
$action = 'Order/edit';
|
||
}
|
||
$link = {
|
||
'url' => 'oe.pl?action=edit&type=request_quotation&id=' . $params{trans_id},
|
||
'url' => $script . '?action=' . $action . '&type=request_quotation&id=' . $params{trans_id},
|
||
'title' => $locale->text('Request quotation') . " $params{trans_info}",
|
||
};
|
||
|
||
} elsif ($params{trans_type} eq 'purchase_order') {
|
||
my $script = 'oe.pl';
|
||
my $action = 'edit';
|
||
if ($::instance_conf->get_feature_experimental) {
|
||
$script = 'controller.pl';
|
||
$action = 'Order/edit';
|
||
}
|
||
$link = {
|
||
'url' => 'oe.pl?action=edit&type=purchase_order&id=' . $params{trans_id},
|
||
'url' => $script . '?action=' . $action . '&type=purchase_order&id=' . $params{trans_id},
|
||
'title' => $locale->text('Purchase Order') . " $params{trans_info}",
|
||
};
|
||
|
bin/mozilla/ct.pl | ||
---|---|---|
}
|
||
|
||
my $base_url = build_std_url("script=$ref->{module}.pl", 'action=edit', 'id=' . E($ref->{invid}), 'callback', @hidden_nondefault);
|
||
if ($::instance_conf->get_feature_experimental) {
|
||
if ('oe' eq $ref->{module}) {
|
||
$base_url = build_std_url("script=controller.pl", 'action=Order/edit', 'id=' . E($ref->{invid}), 'callback', @hidden_nondefault);
|
||
}
|
||
}
|
||
|
||
$row->{invnumber}->{link} = $base_url;
|
||
$row->{ordnumber}->{link} = $base_url . "&type=${ordertype}";
|
||
$row->{quonumber}->{link} = $base_url . "&type=${quotationtype}";
|
bin/mozilla/ic.pl | ||
---|---|---|
# | ist bestellt | Von Kunden bestellt | -> edit_oe_ord_link
|
||
# | Anfrage | Angebot | -> edit_oe_quo_link
|
||
|
||
my $edit_oe_ord_link = build_std_url("script=oe.pl", 'action=edit', 'type=' . E($ref->{cv} eq 'vendor' ? 'purchase_order' : 'sales_order'), 'id=' . E($ref->{trans_id}), 'callback');
|
||
my $edit_oe_quo_link = build_std_url("script=oe.pl", 'action=edit', 'type=' . E($ref->{cv} eq 'vendor' ? 'request_quotation' : 'sales_quotation'), 'id=' . E($ref->{trans_id}), 'callback');
|
||
my $edit_oe_ord_link = ($::instance_conf->get_feature_experimental)
|
||
? build_std_url("script=controller.pl", 'action=Order/edit',
|
||
'type=' . E($ref->{cv} eq 'vendor' ? 'purchase_order' : 'sales_order'), 'id=' . E($ref->{trans_id}), 'callback')
|
||
: build_std_url("script=oe.pl", 'action=edit',
|
||
'type=' . E($ref->{cv} eq 'vendor' ? 'purchase_order' : 'sales_order'), 'id=' . E($ref->{trans_id}), 'callback');
|
||
|
||
my $edit_oe_quo_link = ($::instance_conf->get_feature_experimental)
|
||
? build_std_url("script=controller.pl", 'action=Order/edit',
|
||
'type=' . E($ref->{cv} eq 'vendor' ? 'request_quotation' : 'sales_quotation'), 'id=' . E($ref->{trans_id}), 'callback')
|
||
: build_std_url("script=oe.pl", 'action=edit',
|
||
'type=' . E($ref->{cv} eq 'vendor' ? 'request_quotation' : 'sales_quotation'), 'id=' . E($ref->{trans_id}), 'callback');
|
||
|
||
$row->{ordnumber}{link} = $edit_oe_ord_link;
|
||
$row->{quonumber}{link} = $edit_oe_quo_link if (!$ref->{ordnumber});
|
templates/webpages/customer_vendor/get_delivery.html | ||
---|---|---|
<tr class="listrow[% loop.count % 2 %]">
|
||
<td>[% HTML.escape(row.shiptoname) UNLESS loop.prev.shiptoname == row.shiptoname %] </td>
|
||
<td>[% IF row.id %]<a href='[% row.script %].pl?action=edit&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.invnumber) || ' ' %][% IF row.id %]</a>[% END %]</td>
|
||
<td>[% IF row.oe_id %]<a href='oe.pl?action=edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&vc=customer&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.oe_id %]</a>[% END %]</td>
|
||
[%- IF INSTANCE_CONF.get_feature_experimental -%]
|
||
<td>[% IF row.oe_id %]<a href='controller.pl?action=Order/edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.oe_id %]</a>[% END %]</td>
|
||
[%- ELSE -%]
|
||
<td>[% IF row.oe_id %]<a href='oe.pl?action=edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&vc=customer&id=[% HTML.escape(row.oe_id) %]'>[% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.oe_id %]</a>[% END %]</td>
|
||
[%- END -%]
|
||
<td>[% HTML.escape(row.transdate) || ' ' %]</td>
|
||
<td>[% HTML.escape(row.description) || ' ' %]</td>
|
||
<td>[% HTML.escape(row.qty) || ' ' %]</td>
|
templates/webpages/mass_invoice_create_print_from_do/list_sales_delivery_orders.html | ||
---|---|---|
<td>[% L.checkbox_tag('id[]', value=sales_delivery_order.id, "data-checkall"=1) %]</td>
|
||
<td>[% HTML.escape(sales_delivery_order.transdate_as_date) %]</td>
|
||
<td>[% L.link(SELF.url_for(controller="do.pl", action="edit", type="sales_delivery_order", id=sales_delivery_order.id), sales_delivery_order.donumber) %]</td>
|
||
<td>[% L.link(SELF.url_for(controller="oe.pl", action="edit", type="sales_order", id=sales_delivery_order.sales_order.id), sales_delivery_order.ordnumber) %]</td>
|
||
[%- IF INSTANCE_CONF.get_feature_experimental -%]
|
||
<td>[% L.link(SELF.url_for(controller="controller.pl", action="Order/edit", type="sales_order", id=sales_delivery_order.sales_order.id), sales_delivery_order.ordnumber) %]</td>
|
||
[%- ELSE -%]
|
||
<td>[% L.link(SELF.url_for(controller="oe.pl", action="edit", type="sales_order", id=sales_delivery_order.sales_order.id), sales_delivery_order.ordnumber) %]</td>
|
||
[%- END -%]
|
||
<td>[% HTML.escape(sales_delivery_order.customer.name) %]</td>
|
||
</tr>
|
||
[%- END %]
|
templates/webpages/requirement_spec_order/list.html | ||
---|---|---|
[% END %]
|
||
</td>
|
||
<td>
|
||
<a href="oe.pl?action=edit&id=[% HTML.url(rs_order.order_id) %]&type=[% HTML.url(rs_order.order.type) %]">
|
||
[%- IF INSTANCE_CONF.get_feature_experimental -%]
|
||
<a href="controller.pl?action=Order/edit&id=[% HTML.url(rs_order.order_id) %]&type=[% HTML.url(rs_order.order.type) %]">
|
||
[%- ELSE -%]
|
||
<a href="oe.pl?action=edit&id=[% HTML.url(rs_order.order_id) %]&type=[% HTML.url(rs_order.order.type) %]">
|
||
[%- END -%]
|
||
[% HTML.escape(rs_order.order.quotation ? rs_order.order.quonumber : rs_order.order.ordnumber) %]
|
||
</a>
|
||
</td>
|
Auch abrufbar als: Unified diff
Auftrags-Controller: weitere Links hierhin bei experimentellen Features