Revision f775b88a
Von Moritz Bunkus vor fast 11 Jahren hinzugefügt
bin/mozilla/oe.pl | ||
---|---|---|
$main::auth->assert($right);
|
||
}
|
||
|
||
sub check_oe_conversion_to_sales_invoice_allowed {
|
||
return 1 if $::form->{type} !~ m/^sales/;
|
||
return 1 if ($::form->{type} =~ m/quotation/) && $::instance_conf->get_allow_sales_invoice_from_sales_quotation;
|
||
return 1 if ($::form->{type} =~ m/order/) && $::instance_conf->get_allow_sales_invoice_from_sales_order;
|
||
|
||
$::form->show_generic_error($::locale->text("You do not have the permissions to access this function."));
|
||
|
||
return 0;
|
||
}
|
||
|
||
sub set_headings {
|
||
$main::lxdebug->enter_sub();
|
||
|
||
... | ... | |
my $locale = $main::locale;
|
||
|
||
check_oe_access();
|
||
check_oe_conversion_to_sales_invoice_allowed();
|
||
$main::auth->assert($form->{type} eq 'purchase_order' || $form->{type} eq 'request_quotation' ? 'vendor_invoice_edit' : 'invoice_edit');
|
||
|
||
$form->{old_salesman_id} = $form->{salesman_id};
|
Auch abrufbar als: Unified diff
Einkaufs-/Verkaufsprozesse: optionale Einschränkungen für gewisse Aktionen
Über die Mandantenkonfiguration kann verboten werden, dass gewisse
Aktionen in den Einkaufs- und Verkaufsprozesse durchgeführt
werden. Diese sind:
- Direkte umwandlung von Verkaufsangeboten und
aufträgen in
Direktes Anlegen neuer Einkaufslieferscheine und -rechnungen (nurVerkaufsrechnungen (nur über den Weg der Lieferscheine)
durch Umwandlung bestehender Belege)