Revision 5f4faab9
Von Niklas Schmidt vor 10 Tagen hinzugefügt
SL/Controller/ClientConfig.pm | ||
---|---|---|
}
|
||
|
||
sub init_available_documents_with_no_positions {
|
||
return [] if !$::instance_conf->get_feature_experimental_order;
|
||
|
||
my @docs = ( @{SL::DB::Order::TypeData::valid_types()},
|
||
@{SL::DB::DeliveryOrder::TypeData::valid_types()},
|
||
@{SL::DB::Reclamation::TypeData::valid_types()} );
|
SL/Controller/CustomerVendor.pm | ||
---|---|---|
my $db = $self->is_vendor() ? 'vendor' : 'customer';
|
||
my $action = 'add';
|
||
|
||
if ($::instance_conf->get_feature_experimental_order && 'oe.pl' eq $script) {
|
||
if ('oe.pl' eq $script) {
|
||
$script = 'controller.pl';
|
||
$action = 'Order/' . $action;
|
||
}
|
SL/Controller/DeliveryPlan.pm | ||
---|---|---|
|
||
if ($object->isa('SL::DB::Order')) {
|
||
my $type = $object->type;
|
||
my $vc = $object->is_sales ? 'customer' : 'vendor';
|
||
my $id = $object->id;
|
||
|
||
if ($::instance_conf->get_feature_experimental_order) {
|
||
return "controller.pl?action=Order/$action&type=$type&id=$id";
|
||
} else {
|
||
return "oe.pl?action=$action&type=$type&vc=$vc&id=$id";
|
||
}
|
||
return "controller.pl?action=Order/$action&type=$type&id=$id";
|
||
}
|
||
if ($object->isa('SL::DB::Part')) {
|
||
my $id = $object->id;
|
SL/Controller/DeliveryValueReport.pm | ||
---|---|---|
|
||
if ($object->isa('SL::DB::Order')) {
|
||
my $type = $object->type;
|
||
my $vc = $object->is_sales ? 'customer' : 'vendor';
|
||
my $id = $object->id;
|
||
|
||
if ($::instance_conf->get_feature_experimental_order) {
|
||
return "controller.pl?action=Order/$action&type=$type&id=$id";
|
||
} else {
|
||
return "oe.pl?action=$action&type=$type&vc=$vc&id=$id";
|
||
}
|
||
return "controller.pl?action=Order/$action&type=$type&id=$id";
|
||
}
|
||
if ($object->isa('SL::DB::Part')) {
|
||
my $id = $object->id;
|
SL/Controller/FinancialControllingReport.pm | ||
---|---|---|
if ($object->isa('SL::DB::Order')) {
|
||
my $type = $object->type;
|
||
my $id = $object->id;
|
||
|
||
if ($::instance_conf->get_feature_experimental_order) {
|
||
return "controller.pl?action=Order/$action&type=$type&id=$id";
|
||
} else {
|
||
return "oe.pl?action=$action&type=$type&vc=customer&id=$id";
|
||
}
|
||
return "controller.pl?action=Order/$action&type=$type&id=$id";
|
||
}
|
||
if ($object->isa('SL::DB::Customer')) {
|
||
my $id = $object->id;
|
SL/Controller/SellPriceInformation.pm | ||
---|---|---|
|
||
if ($object->isa('SL::DB::Order')) {
|
||
my $type = $object->type;
|
||
my $vc = $object->is_sales ? 'customer' : 'vendor';
|
||
my $id = $object->id;
|
||
|
||
if ($::instance_conf->get_feature_experimental_order) {
|
||
return "controller.pl?action=Order/$action&type=$type&id=$id";
|
||
} else {
|
||
return "oe.pl?action=$action&type=$type&vc=$vc&id=$id";
|
||
}
|
||
return "controller.pl?action=Order/$action&type=$type&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;
|
||
my $order_controller = $::instance_conf->get_feature_experimental_order ? 'Order' :'oe.pl';
|
||
$self->redirect_to(controller => $order_controller, action => 'edit', type => 'sales_order', vc => 'customer', id => $order->id);
|
||
$self->redirect_to(controller => 'Order', action => 'edit', type => 'sales_order', vc => 'customer', id => $order->id);
|
||
}
|
||
}
|
||
|
SL/Controller/TopQuickSearch/OERecord.pm | ||
---|---|---|
}
|
||
|
||
sub redirect_to_object {
|
||
if ($::instance_conf->get_feature_experimental_order) {
|
||
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],
|
||
);
|
||
}
|
||
SL::Controller::Base->new->url_for(
|
||
controller => 'Order',
|
||
action => 'edit',
|
||
type => $_[0]->type,
|
||
id => $_[1],
|
||
);
|
||
}
|
||
|
||
sub type {
|
SL/DB/MetaSetup/Default.pm | ||
---|---|---|
feature_datev => { type => 'boolean', default => 'true', not_null => 1 },
|
||
feature_erfolgsrechnung => { type => 'boolean', default => 'false', not_null => 1 },
|
||
feature_eurechnung => { type => 'boolean', default => 'true', not_null => 1 },
|
||
feature_experimental_order => { type => 'boolean', default => 'true', not_null => 1 },
|
||
feature_ustva => { type => 'boolean', default => 'true', not_null => 1 },
|
||
fuzzy_skonto => { type => 'boolean', default => 'true' },
|
||
fuzzy_skonto_percentage => { type => 'float', default => '0.5', precision => 4, scale => 4 },
|
SL/FU.pm | ||
---|---|---|
};
|
||
|
||
} elsif ($params{trans_type} eq 'sales_quotation') {
|
||
my $script = 'oe.pl';
|
||
my $action = 'edit';
|
||
if ($::instance_conf->get_feature_experimental_order) {
|
||
$script = 'controller.pl';
|
||
$action = 'Order/edit';
|
||
}
|
||
$link = {
|
||
'url' => $script . '?action=' . $action . '&type=sales_quotation&id=' . $params{trans_id},
|
||
'url' => 'controller.pl?action=Order/edit&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_order) {
|
||
$script = 'controller.pl';
|
||
$action = 'Order/edit';
|
||
}
|
||
$link = {
|
||
'url' => $script . '?action=' . $action . '&type=sales_order&id=' . $params{trans_id},
|
||
'url' => 'controller.pl?action=Order/edit&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_order) {
|
||
$script = 'controller.pl';
|
||
$action = 'Order/edit';
|
||
}
|
||
$link = {
|
||
'url' => $script . '?action=' . $action . '&type=request_quotation&id=' . $params{trans_id},
|
||
'url' => 'controller.pl?action=Order/edit&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_order) {
|
||
$script = 'controller.pl';
|
||
$action = 'Order/edit';
|
||
}
|
||
$link = {
|
||
'url' => $script . '?action=' . $action . '&type=purchase_order&id=' . $params{trans_id},
|
||
'url' => 'controller.pl?action=Order/edit&type=purchase_order&id=' . $params{trans_id},
|
||
'title' => $locale->text('Purchase Order') . " $params{trans_info}",
|
||
};
|
||
|
SL/InstanceConfiguration.pm | ||
---|---|---|
|
||
Returns the configuration for "vertreter"
|
||
|
||
=item C<get_feature_experimental_order>
|
||
|
||
Returns the configuration for the experimental feature "order"
|
||
|
||
=item C<get_parts_show_image>
|
||
|
||
Returns the configuarion for show image in parts
|
SL/Presenter/Order.pm | ||
---|---|---|
|
||
my $text = escape($order->record_number);
|
||
if (! delete $params{no_link}) {
|
||
my $action = $::instance_conf->get_feature_experimental_order
|
||
? 'controller.pl?action=Order/edit'
|
||
: 'oe.pl?action=edit';
|
||
my $href = $action
|
||
my $href = 'controller.pl?action=Order/edit'
|
||
. '&type=' . $type
|
||
. '&id=' . escape($order->id);
|
||
$text = link_tag($href, $text, %params);
|
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_order) {
|
||
if ('oe' eq $ref->{module}) {
|
||
$base_url = build_std_url("script=controller.pl", 'action=Order/edit', 'id=' . E($ref->{invid}), 'callback', @hidden_nondefault);
|
||
}
|
||
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;
|
bin/mozilla/do.pl | ||
---|---|---|
my $callback = $form->escape($href);
|
||
|
||
my $edit_url = build_std_url('action=edit', 'type', 'vc');
|
||
my $edit_order_url = ($::instance_conf->get_feature_experimental_order)
|
||
? build_std_url('script=controller.pl', 'action=Order/edit', 'type=' . ($form->{type} eq 'sales_delivery_order' ? 'sales_order' : 'purchase_order'))
|
||
: build_std_url('script=oe.pl', 'action=edit', 'type=' . ($form->{type} eq 'sales_delivery_order' ? 'sales_order' : 'purchase_order'));
|
||
my $edit_order_url = build_std_url('script=controller.pl', 'action=Order/edit', 'type=' . ($form->{type} eq 'sales_delivery_order' ? 'sales_order' : 'purchase_order'));
|
||
|
||
my $idx = 1;
|
||
|
bin/mozilla/ic.pl | ||
---|---|---|
# | ist bestellt | Von Kunden bestellt | -> edit_oe_ord_link
|
||
# | Anfrage | Angebot | -> edit_oe_quo_link
|
||
|
||
my $edit_oe_ord_link = ($::instance_conf->get_feature_experimental_order)
|
||
? 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',
|
||
my $edit_oe_ord_link = 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');
|
||
|
||
my $edit_oe_quo_link = ($::instance_conf->get_feature_experimental_order)
|
||
? 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',
|
||
my $edit_oe_quo_link = 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');
|
||
|
||
$row->{ordnumber}{link} = $edit_oe_ord_link;
|
bin/mozilla/io.pl | ||
---|---|---|
|
||
_order();
|
||
|
||
if ($::instance_conf->get_feature_experimental_order) {
|
||
|
||
# At this point, the record is saved and the exchangerate contains
|
||
# an unformatted value. _make_record uses RDBO attributes (i.e. _as_number)
|
||
# to assign values and thus expects an formatted value.
|
||
$::form->{exchangerate} = $::form->format_amount(\%::myconfig, $::form->{exchangerate});
|
||
|
||
my $order = _make_record();
|
||
|
||
$order->currency(SL::DB::Currency->new(name => $::form->{currency})->load) if $::form->{currency};
|
||
$order->globalproject_id(undef) if !$order->globalproject_id;
|
||
$order->payment_id(undef) if !$order->payment_id;
|
||
|
||
my $row = 1;
|
||
foreach my $item (@{$order->items_sorted}) {
|
||
$item->custom_variables([]);
|
||
|
||
$item->price_factor_id(undef) if !$item->price_factor_id;
|
||
$item->project_id(undef) if !$item->project_id;
|
||
|
||
# autovivify all cvars that are not in the form (cvars_by_config can do it).
|
||
# workaround to pre-parse number-cvars (parse_custom_variable_values does not parse number values).
|
||
foreach my $var (@{ $item->cvars_by_config }) {
|
||
my $key = 'ic_cvar_' . $var->config->name . '_' . $row;
|
||
$var->unparsed_value($::form->{$key});
|
||
$var->unparsed_value($::form->parse_amount(\%::myconfig, $var->{__unparsed_value})) if ($var->config->type eq 'number' && exists($var->{__unparsed_value}));
|
||
}
|
||
$item->parse_custom_variable_values;
|
||
|
||
$row++;
|
||
# At this point, the record is saved and the exchangerate contains
|
||
# an unformatted value. _make_record uses RDBO attributes (i.e. _as_number)
|
||
# to assign values and thus expects an formatted value.
|
||
$::form->{exchangerate} = $::form->format_amount(\%::myconfig, $::form->{exchangerate});
|
||
|
||
my $order = _make_record();
|
||
|
||
$order->currency(SL::DB::Currency->new(name => $::form->{currency})->load) if $::form->{currency};
|
||
$order->globalproject_id(undef) if !$order->globalproject_id;
|
||
$order->payment_id(undef) if !$order->payment_id;
|
||
|
||
my $row = 1;
|
||
foreach my $item (@{$order->items_sorted}) {
|
||
$item->custom_variables([]);
|
||
|
||
$item->price_factor_id(undef) if !$item->price_factor_id;
|
||
$item->project_id(undef) if !$item->project_id;
|
||
|
||
# autovivify all cvars that are not in the form (cvars_by_config can do it).
|
||
# workaround to pre-parse number-cvars (parse_custom_variable_values does not parse number values).
|
||
foreach my $var (@{ $item->cvars_by_config }) {
|
||
my $key = 'ic_cvar_' . $var->config->name . '_' . $row;
|
||
$var->unparsed_value($::form->{$key});
|
||
$var->unparsed_value($::form->parse_amount(\%::myconfig, $var->{__unparsed_value})) if ($var->config->type eq 'number' && exists($var->{__unparsed_value}));
|
||
}
|
||
$item->parse_custom_variable_values;
|
||
|
||
require SL::Controller::Order;
|
||
my $c = SL::Controller::Order->new(order => $order);
|
||
$c->reinit_after_new_order();
|
||
$c->action_add();
|
||
|
||
$main::lxdebug->leave_sub();
|
||
$::dispatcher->end_request;
|
||
$row++;
|
||
}
|
||
|
||
require SL::Controller::Order;
|
||
my $c = SL::Controller::Order->new(order => $order);
|
||
$c->reinit_after_new_order();
|
||
$c->action_add();
|
||
|
||
$main::lxdebug->leave_sub();
|
||
$::dispatcher->end_request;
|
||
|
||
&display_form;
|
||
|
||
$main::lxdebug->leave_sub();
|
bin/mozilla/oe.pl | ||
---|---|---|
|
||
# editing without stuff to edit? try adding it first
|
||
if ($form->{rowcount} && !$form->{print_and_save}) {
|
||
if ($::instance_conf->get_feature_experimental_order) {
|
||
my $c = SL::Controller::Order->new;
|
||
$c->action_edit_collective();
|
||
my $c = SL::Controller::Order->new;
|
||
$c->action_edit_collective();
|
||
|
||
$main::lxdebug->leave_sub();
|
||
$::dispatcher->end_request;
|
||
}
|
||
$main::lxdebug->leave_sub();
|
||
$::dispatcher->end_request;
|
||
|
||
my $id;
|
||
map { $id++ if $form->{"multi_id_$_"} } (1 .. $form->{rowcount});
|
||
... | ... | |
|
||
my $edit_url = $params{want_binary_pdf}
|
||
? ''
|
||
: ($::instance_conf->get_feature_experimental_order)
|
||
? build_std_url('script=controller.pl', 'action=Order/edit', 'type')
|
||
: build_std_url('action=edit', 'type', 'vc');
|
||
: build_std_url('script=controller.pl', 'action=Order/edit', 'type');
|
||
foreach my $oe (@{ $form->{OE} }) {
|
||
map { $oe->{$_} *= $oe->{exchangerate} } @subtotal_columns;
|
||
|
||
... | ... | |
|
||
if (@{ $quotations }) {
|
||
my $callback = build_std_url('action');
|
||
my $edit_url = ($::instance_conf->get_feature_experimental_order)
|
||
? build_std_url('script=controller.pl', 'action=Order/edit', 'callback=' . E($callback))
|
||
: build_std_url('script=oe.pl', 'action=edit', 'callback=' . E($callback));
|
||
my $edit_url = build_std_url('script=controller.pl', 'action=Order/edit', 'callback=' . E($callback));
|
||
|
||
$content = $form->parse_html_template('oe/report_for_todo_list', { 'QUOTATIONS' => $quotations,
|
||
'edit_url' => $edit_url,
|
locale/de/all | ||
---|---|---|
'Order & Articles' => 'Auftrag & Artikel',
|
||
'Order & Numbers' => 'Auftrag & Nummern',
|
||
'Order Confirmation Number' => 'Auftragsbestätigungsnummer',
|
||
'Order Controller' => 'Auftrags-Controller',
|
||
'Order Date' => 'Auftragsdatum',
|
||
'Order Date missing!' => 'Auftragsdatum fehlt!',
|
||
'Order Intake' => 'Auftragseingang',
|
||
... | ... | |
'Rename attachment' => 'Dateianhang umbenennen',
|
||
'Renumber sections and function blocks' => 'Abschnitte/Funktionsblöcke neu nummerieren',
|
||
'Reorder Level List' => 'Meldebestandsliste',
|
||
'Replace legacy order controller with new one' => 'Neuen Auftrags-Controller verwenden',
|
||
'Replace the orphaned currencies by other not orphaned currencies. To do so, please delete the currency in the textfields above and replace it by another currency. You could loose or change unintentionally exchangerates. Go on very carefully since you could destroy transactions.' => 'Ersetze die Währungen durch andere gültige Währungen. Wenn Sie sich hierfür entscheiden, ersetzen Sie bitte alle Währungen, die oben angegeben sind, durch Währungen, die in Ihrem System ordnungsgemäß eingetragen sind. Alle eingetragenen Wechselkurse für die verwaiste Währung werden dabei gelöscht. Bitte gehen Sie sehr vorsichtig vor, denn die betroffenen Buchungen können unter Umständen kaputt gehen.',
|
||
'Report Positions' => 'Berichte',
|
||
'Report about warehouse contents' => 'Lagerbestand anzeigen',
|
||
... | ... | |
'netto' => 'netto',
|
||
'never' => 'niemals',
|
||
'new' => 'neuer',
|
||
'new order controller' => 'Neuer Auftrags-Controller',
|
||
'next' => 'vor',
|
||
'no' => 'nein',
|
||
'no article assigned yet' => 'noch kein Artikel zugewiesen',
|
locale/en/all | ||
---|---|---|
'Order & Articles' => '',
|
||
'Order & Numbers' => '',
|
||
'Order Confirmation Number' => '',
|
||
'Order Controller' => '',
|
||
'Order Date' => '',
|
||
'Order Date missing!' => '',
|
||
'Order Intake' => '',
|
||
... | ... | |
'Rename attachment' => '',
|
||
'Renumber sections and function blocks' => '',
|
||
'Reorder Level List' => '',
|
||
'Replace legacy order controller with new one' => '',
|
||
'Replace the orphaned currencies by other not orphaned currencies. To do so, please delete the currency in the textfields above and replace it by another currency. You could loose or change unintentionally exchangerates. Go on very carefully since you could destroy transactions.' => '',
|
||
'Report Positions' => '',
|
||
'Report about warehouse contents' => '',
|
||
... | ... | |
'netto' => '',
|
||
'never' => '',
|
||
'new' => '',
|
||
'new order controller' => '',
|
||
'next' => '',
|
||
'no' => '',
|
||
'no article assigned yet' => '',
|
menus/user/00-erp.yaml | ||
---|---|---|
access: requirement_spec_edit
|
||
params:
|
||
action: RequirementSpec/new
|
||
- parent: ar
|
||
id: ar_add_quotation
|
||
name: Add Quotation
|
||
icon: quotation_add
|
||
order: 200
|
||
access: sales_quotation_edit
|
||
module: oe.pl
|
||
params:
|
||
action: add
|
||
type: sales_quotation
|
||
- parent: ar
|
||
id: ar_add_sales_order
|
||
name: Add Sales Order
|
||
icon: sales_order_add
|
||
order: 300
|
||
access: sales_order_edit
|
||
module: oe.pl
|
||
params:
|
||
action: add
|
||
type: sales_order
|
||
- parent: ar
|
||
id: ar_add_delivery_order
|
||
name: Add Delivery Order
|
||
... | ... | |
name: AP
|
||
icon: ap
|
||
order: 300
|
||
- parent: ap
|
||
id: ap_add_rfq
|
||
name: Add RFQ
|
||
icon: rfq_add
|
||
order: 100
|
||
access: request_quotation_edit
|
||
module: oe.pl
|
||
params:
|
||
action: add
|
||
type: request_quotation
|
||
- parent: ap
|
||
id: ap_add_purchase_order
|
||
name: Add Purchase Order
|
||
icon: purchase_order_add
|
||
order: 200
|
||
access: purchase_order_edit
|
||
module: oe.pl
|
||
params:
|
||
action: add
|
||
type: purchase_order
|
||
- parent: ap
|
||
id: ap_add_delivery_note
|
||
name: Add Delivery Note
|
menus/user/10-order-controller.yaml | ||
---|---|---|
- parent: ar
|
||
id: ar_add_quotation
|
||
access: sales_quotation_edit & (!client/feature_experimental_order)
|
||
- parent: ar
|
||
id: ar_add_sales_order
|
||
access: sales_order_edit & (!client/feature_experimental_order)
|
||
- parent: ap
|
||
id: ap_add_rfq
|
||
access: request_quotation_edit & (!client/feature_experimental_order)
|
||
- parent: ap
|
||
id: ap_add_purchase_order
|
||
access: purchase_order_edit & (!client/feature_experimental_order)
|
||
|
||
- parent: ar
|
||
id: ar_add_quotation_experimental
|
||
name: Add Quotation
|
||
icon: quotation_add
|
||
order: 250
|
||
access: sales_quotation_edit & client/feature_experimental_order
|
||
access: sales_quotation_edit
|
||
params:
|
||
action: Order/add
|
||
type: sales_quotation
|
||
- parent: ar
|
||
id: ar_add_sales_order_experimental
|
||
id: ar_add_sales_order
|
||
name: Add Sales Order
|
||
icon: sales_order_add
|
||
order: 350
|
||
access: sales_order_edit & client/feature_experimental_order
|
||
access: sales_order_edit
|
||
params:
|
||
action: Order/add
|
||
type: sales_order
|
||
|
||
- parent: ap
|
||
id: ap_add_rfq_experimental
|
||
id: ap_add_rfq
|
||
name: Add RFQ
|
||
icon: rfq_add
|
||
order: 150
|
||
access: request_quotation_edit & client/feature_experimental_order
|
||
access: request_quotation_edit
|
||
params:
|
||
action: Order/add
|
||
type: request_quotation
|
||
- parent: ap
|
||
id: ap_add_purchase_order_experimental
|
||
id: ap_add_purchase_order
|
||
name: Add Purchase Order
|
||
icon: purchase_order_add
|
||
order: 250
|
||
access: purchase_order_edit & client/feature_experimental_order
|
||
access: purchase_order_edit
|
||
params:
|
||
action: Order/add
|
||
type: purchase_order
|
menus/user/90-purchase-order-confirmation.yaml | ||
---|---|---|
- parent: ap
|
||
id: ap_add_purchase_order_confirmation_experimental
|
||
id: ap_add_purchase_order_confirmation
|
||
name: Add Purchase Order Confirmation
|
||
icon: purchase_order_add
|
||
order: 250
|
||
access: purchase_order_edit & client/feature_experimental_order & client/show_purchase_order_confirmation
|
||
access: purchase_order_edit & client/show_purchase_order_confirmation
|
||
params:
|
||
action: Order/add
|
||
type: purchase_order_confirmation
|
menus/user/90-purchase-quotation-intake.yaml | ||
---|---|---|
- parent: ap
|
||
id: ap_add_purchase_quotation_intake_experimental
|
||
id: ap_add_purchase_quotation_intake
|
||
name: Add Purchase Quotation Intake
|
||
icon: rfq_add
|
||
order: 150
|
||
access: request_quotation_edit & client/feature_experimental_order & client/show_purchase_quotation_intake
|
||
access: request_quotation_edit & client/show_purchase_quotation_intake
|
||
params:
|
||
action: Order/add
|
||
type: purchase_quotation_intake
|
menus/user/90-sales-order-intake.yaml | ||
---|---|---|
- parent: ar
|
||
id: ar_add_sales_order_intake_experimental
|
||
id: ar_add_sales_order_intake
|
||
name: Add Sales Order Intake
|
||
icon: sales_order_add
|
||
order: 290
|
||
access: sales_order_edit & client/feature_experimental_order & client/show_sales_order_intake
|
||
access: sales_order_edit & client/show_sales_order_intake
|
||
params:
|
||
action: Order/add
|
||
type: sales_order_intake
|
||
- parent: ar
|
||
id: ar_add_sales_order_experimental
|
||
id: ar_add_sales_order
|
||
name: Add Sales Order Confirmation
|
||
- parent: ar_reports
|
||
id: ar_reports_sales_order_intakes
|
sql/Pg-upgrade2/defaults_drop_feature_experimental_order.sql | ||
---|---|---|
-- @tag: defaults_drop_feature_experimental_order
|
||
-- @description: vormals experimentelles Feature Order ist jetzt der Standard
|
||
-- @depends: release_3_9_1
|
||
|
||
ALTER TABLE defaults DROP COLUMN feature_experimental_order;
|
||
|
templates/design40_webpages/am/config.html | ||
---|---|---|
</span>
|
||
</td>
|
||
</tr>
|
||
[%- IF INSTANCE_CONF.get_feature_experimental_order -%]
|
||
<tr>
|
||
<th>[% 'Scrollbar height percentage for form postion area' | $T8 %]</th>
|
||
<td>
|
||
... | ... | |
[% L.yes_no_tag('positions_show_update_button', positions_show_update_button) %]
|
||
</td>
|
||
</tr>
|
||
[%- END -%]
|
||
<tr>
|
||
<th>[% 'Show custom variable search inputs' | $T8 %]</th>
|
||
<td>
|
templates/design40_webpages/client_config/_features.html | ||
---|---|---|
<tr>
|
||
<th class="caption" colspan="3">[% LxERP.t8("Experimental Features") %]</th>
|
||
</tr>
|
||
<tr>
|
||
<th>[% LxERP.t8('Order Controller') %]</th>
|
||
<td>[% L.yes_no_tag('defaults.feature_experimental_order', SELF.defaults.feature_experimental_order) %]</td>
|
||
<td class="long-desc">[% LxERP.t8('Replace legacy order controller with new one') %]</td>
|
||
</tr>
|
||
</tbody>
|
||
</table>
|
||
|
templates/design40_webpages/customer_vendor/get_delivery.html | ||
---|---|---|
[% IF row.id %]</a>[% END %]
|
||
</td>
|
||
<td>[% IF row.oe_id %]
|
||
[%- IF INSTANCE_CONF.get_feature_experimental_order -%]
|
||
<a href='controller.pl?action=Order/edit&type=[% IF SELF.is_customer %]sales_order[% ELSE %]purchase_order[% END %]&id=[% HTML.escape(row.oe_id) %]'>
|
||
[%- ELSE -%]
|
||
<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 -%]
|
||
<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 %]
|
templates/design40_webpages/customer_vendor_turnover/order_statistic.html | ||
---|---|---|
<tbody>
|
||
[%- FOREACH row = orders %]
|
||
<tr>
|
||
[%- IF INSTANCE_CONF.get_feature_experimental_order -%]
|
||
<td>[% IF row.id %]<a href='controller.pl?action=Order/edit&type=[% IF FORM.db == "customer" %]sales_order[% ELSE %]purchase_order[% END %]&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.id %]</a>[% END %]</td>
|
||
[%- ELSE -%]
|
||
<td>[% IF row.id %]<a href='oe.pl?action=edit&type=[% IF FORM.db == "customer" %]sales_order[% ELSE %]purchase_order[% END %]&vc=[% FORM.db %]&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.id %]</a>[% END %]</td>
|
||
[%- END -%]
|
||
<td>[% IF row.id %]<a href='controller.pl?action=Order/edit&type=[% IF FORM.db == "customer" %]sales_order[% ELSE %]purchase_order[% END %]&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.id %]</a>[% END %]</td>
|
||
<td>[% row.transdate.to_kivitendo | html %]</td>
|
||
<td class="numeric">[%- LxERP.format_amount(row.amount, 2) %]</td>
|
||
<td>[% row.reqdate.to_kivitendo | html %]</td>
|
templates/design40_webpages/customer_vendor_turnover/quotation_statistic.html | ||
---|---|---|
<tbody>
|
||
[%- FOREACH row = orders %]
|
||
<tr>
|
||
[%- IF INSTANCE_CONF.get_feature_experimental_order -%]
|
||
<td>[% IF row.id %]<a href='controller.pl?action=Order/edit&type=[% IF FORM.db == "customer" %]sales_quotation[% ELSE %]request_quotation[% END %]&id=[% HTML.escape(row.id) %]'>
|
||
[% END %][% HTML.escape(row.quonumber) || ' ' %][% IF row.id %]</a>[% END %]</td>
|
||
[%- ELSE -%]
|
||
<td>[% IF row.id %]<a href='oe.pl?action=edit&type=[% IF FORM.db == "customer" %]sales_quotation[% ELSE %]request_quotation[% END %]&vc=[% FORM.db %]&id=[% HTML.escape(row.id) %]'>
|
||
[% END %][% HTML.escape(row.quonumber) || ' ' %][% IF row.id %]</a>[% END %]</td>
|
||
[%- END -%]
|
||
<td>[% row.transdate.to_kivitendo | html %]</td>
|
||
<td class="numeric">[%- LxERP.format_amount(row.amount, 2) %]</td>
|
||
<td>[% row.reqdate.to_kivitendo | html %]</td>
|
templates/design40_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="controller.pl", action="DeliveryOrder/edit", id=sales_delivery_order.id), sales_delivery_order.donumber) %]</td>
|
||
[%- IF INSTANCE_CONF.get_feature_experimental_order -%]
|
||
<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/design40_webpages/requirement_spec_order/list.html | ||
---|---|---|
[% END %]
|
||
</td>
|
||
<td class="numeric">
|
||
[% IF INSTANCE_CONF.get_feature_experimental_order %]
|
||
<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 %]
|
||
<a href="controller.pl?action=Order/edit&id=[% HTML.url(rs_order.order_id) %]&type=[% HTML.url(rs_order.order.type) %]">
|
||
[% HTML.escape(rs_order.order.quotation ? rs_order.order.quonumber : rs_order.order.ordnumber) %]
|
||
</a>
|
||
</td>
|
templates/webpages/am/config.html | ||
---|---|---|
[% L.input_tag('longdescription_dialog_size_percentage', longdescription_dialog_size_percentage, size = 5) %]
|
||
</td>
|
||
</tr>
|
||
[%- IF INSTANCE_CONF.get_feature_experimental_order -%]
|
||
<tr>
|
||
<th align="right">[% 'Scrollbar height percentage for form postion area (0 means no scrollbar)' | $T8 %]</th>
|
||
<td>
|
||
... | ... | |
[% L.yes_no_tag('positions_show_update_button', positions_show_update_button) %]
|
||
</td>
|
||
</tr>
|
||
[%- END -%]
|
||
|
||
<tr>
|
||
<th align="right">[% 'Show custom variable search inputs' | $T8 %]</th>
|
templates/webpages/client_config/_features.html | ||
---|---|---|
<td>[% L.input_tag('defaults.sepa_set_skonto_date_buffer_in_days_as_number', SELF.defaults.sepa_set_skonto_date_buffer_in_days_as_number, style=style) %]</td>
|
||
</tr>
|
||
<tr><td class="listheading" colspan="4">[% LxERP.t8("Experimental Features") %]</td></tr>
|
||
<tr>
|
||
<td align="right">[% LxERP.t8('new order controller') %]</td>
|
||
<td>[% L.yes_no_tag('defaults.feature_experimental_order', SELF.defaults.feature_experimental_order) %]</td>
|
||
</tr>
|
||
<tr><td class="listheading" colspan="4">[% 'Displayable Name Preferences' | $T8 %]</td></tr>
|
||
[% FOREACH module=SELF.displayable_name_specs_by_module.keys.sort %]
|
||
[%- SET spec=SELF.displayable_name_specs_by_module.$module -%]
|
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>
|
||
[%- IF INSTANCE_CONF.get_feature_experimental_order -%]
|
||
<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>[% 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>
|
||
<td>[% HTML.escape(row.transdate) || ' ' %]</td>
|
||
<td>[% HTML.escape(row.description) || ' ' %]</td>
|
||
<td>[% LxERP.format_amount(HTML.escape(row.qty), 2) || ' ' %]</td>
|
templates/webpages/customer_vendor_turnover/order_statistic.html | ||
---|---|---|
|
||
[%- FOREACH row = orders %]
|
||
<tr class="listrow[% loop.count % 2 %]">
|
||
[%- IF INSTANCE_CONF.get_feature_experimental_order -%]
|
||
<td>[% IF row.id %]<a href='controller.pl?action=Order/edit&type=[% IF FORM.db == "customer" %]sales_order[% ELSE %]purchase_order[% END %]&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.id %]</a>[% END %]</td>
|
||
[%- ELSE -%]
|
||
<td>[% IF row.id %]<a href='oe.pl?action=edit&type=[% IF FORM.db == "customer" %]sales_order[% ELSE %]purchase_order[% END %]&vc=[% FORM.db %]&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.id %]</a>[% END %]</td>
|
||
[%- END -%]
|
||
<td>[% IF row.id %]<a href='controller.pl?action=Order/edit&type=[% IF FORM.db == "customer" %]sales_order[% ELSE %]purchase_order[% END %]&id=[% HTML.escape(row.id) %]'>[% END %][% HTML.escape(row.ordnumber) || ' ' %][% IF row.id %]</a>[% END %]</td>
|
||
<td>[% row.transdate.to_kivitendo | html %]</td>
|
||
<td class="numeric">[%- LxERP.format_amount(row.amount, 2) %]</td>
|
||
<td>[% row.reqdate.to_kivitendo | html %]</td>
|
templates/webpages/customer_vendor_turnover/quotation_statistic.html | ||
---|---|---|
|
||
[%- FOREACH row = orders %]
|
||
<tr class="listrow[% loop.count % 2 %]">
|
||
[%- IF INSTANCE_CONF.get_feature_experimental_order -%]
|
||
<td>[% IF row.id %]<a href='controller.pl?action=Order/edit&type=[% IF FORM.db == "customer" %]sales_quotation[% ELSE %]request_quotation[% END %]&id=[% HTML.escape(row.id) %]'>
|
||
<td>[% IF row.id %]<a href='controller.pl?action=Order/edit&type=[% IF FORM.db == "customer" %]sales_quotation[% ELSE %]request_quotation[% END %]&id=[% HTML.escape(row.id) %]'>
|
||
[% END %][% HTML.escape(row.quonumber) || ' ' %][% IF row.id %]</a>[% END %]</td>
|
||
[%- ELSE -%]
|
||
<td>[% IF row.id %]<a href='oe.pl?action=edit&type=[% IF FORM.db == "customer" %]sales_quotation[% ELSE %]request_quotation[% END %]&vc=[% FORM.db %]&id=[% HTML.escape(row.id) %]'>
|
||
[% END %][% HTML.escape(row.quonumber) || ' ' %][% IF row.id %]</a>[% END %]</td>
|
||
[%- END -%]
|
||
<td>[% row.transdate.to_kivitendo | html %]</td>
|
||
<td class="numeric">[%- LxERP.format_amount(row.amount, 2) %]</td>
|
||
<td>[% row.reqdate.to_kivitendo | html %]</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="controller.pl", action="DeliveryOrder/edit", id=sales_delivery_order.id), sales_delivery_order.donumber) %]</td>
|
||
[%- IF INSTANCE_CONF.get_feature_experimental_order -%]
|
||
<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>[% 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>
|
||
<td>[% HTML.escape(sales_delivery_order.customer.name) %]</td>
|
||
</tr>
|
||
[%- END %]
|
templates/webpages/requirement_spec_order/list.html | ||
---|---|---|
[% END %]
|
||
</td>
|
||
<td>
|
||
[%- IF INSTANCE_CONF.get_feature_experimental_order -%]
|
||
<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 -%]
|
||
<a href="controller.pl?action=Order/edit&id=[% HTML.url(rs_order.order_id) %]&type=[% HTML.url(rs_order.order.type) %]">
|
||
[% HTML.escape(rs_order.order.quotation ? rs_order.order.quonumber : rs_order.order.ordnumber) %]
|
||
</a>
|
||
</td>
|
Auch abrufbar als: Unified diff
/bin/mozilla/oe.pl durch S:C:Order ersetzt: DB, Weiche weg