Revision 8c87cd09
Von Bernd Bleßmann vor 2 Monaten hinzugefügt
bin/mozilla/do.pl | ||
---|---|---|
948 | 948 |
# add sort and escape callback, this one we use for the add sub |
949 | 949 |
$form->{callback} = $href .= "&sort=$form->{sort}"; |
950 | 950 |
|
951 |
# hide links to oe if no right |
|
952 |
$form->{hide_oe_links} = !( ($form->{vc} eq 'customer' && $::auth->assert('sales_order_reports_amounts', 1)) |
|
953 |
|| ($form->{vc} eq 'vendor' && $::auth->assert('purchase_order_reports_amounts', 1)) ); |
|
954 |
|
|
951 | 955 |
# escape callback for href |
952 | 956 |
my $callback = $form->escape($href); |
953 | 957 |
|
... | ... | |
972 | 976 |
'align' => 'center', |
973 | 977 |
}; |
974 | 978 |
$row->{donumber}->{link} = SL::Controller::DeliveryOrder->url_for(action => "edit", id => $dord->{id}, type => $dord->{record_type}, callback => $form->{callback}); |
975 |
$row->{ordnumber}->{link} = $edit_order_url . "&id=" . E($dord->{oe_id}) . "&callback=${callback}" if $dord->{oe_id}; |
|
979 |
|
|
980 |
if (!$form->{hide_oe_links}) { |
|
981 |
$row->{ordnumber}->{link} = $edit_order_url . "&id=" . E($dord->{oe_id}) . "&callback=${callback}" if $dord->{oe_id}; |
|
982 |
} |
|
976 | 983 |
|
977 | 984 |
foreach my $order_confirmation (@{ $dord->{order_confirmation_numbers} }) { |
978 | 985 |
if (lc($report->{options}->{output_format}) eq 'html') { |
Auch abrufbar als: Unified diff
Kein Link zu Aufträgen in Lieferschein-Bericht, wenn kein Recht.
Eigene Aufträge werden hier auch erstmal ignoriert, sind
also auch nicht anklickbar.