Revision bec23a70
Von Werner Hahn vor etwa 6 Jahren hinzugefügt
SL/Controller/CustomerVendorTurnover.pm | ||
---|---|---|
9 | 9 |
use SL::DB::Letter; |
10 | 10 |
use SL::DB; |
11 | 11 |
|
12 |
__PACKAGE__->run_before('check_auth'); |
|
13 | 12 |
|
14 | 13 |
sub action_list_turnover { |
15 | 14 |
my ($self) = @_; |
... | ... | |
392 | 391 |
$self->render('customer_vendor_turnover/letter_statistic', { layout => 0 }, letters => $letters); |
393 | 392 |
} |
394 | 393 |
|
395 |
sub _list_articles_by_invoice { |
|
396 |
} |
|
397 |
sub _list_count_articles_by_year { |
|
398 |
} |
|
399 |
sub check_auth { |
|
400 |
$::auth->assert('general_ledger'); |
|
401 |
} |
|
402 | 394 |
1; |
403 | 395 |
|
404 | 396 |
__END__ |
locale/de/all | ||
---|---|---|
2891 | 2891 |
'Show parts' => 'Artikel anzeigen', |
2892 | 2892 |
'Show parts longdescription (notes) in select list' => 'Langtext in Auswahlliste bei mehreren Treffern im Stammdaten-Bestand anzeigen', |
2893 | 2893 |
'Show purchase letters report' => 'Einkaufsbriefe zeigen', |
2894 |
'Show record tab in customer' => 'Zeige Tab Belege in den Kundenstammdaten', |
|
2895 |
'Show record tab in vendor' => 'Zeige Tab Belege in den Lieferantenstammdaten', |
|
2894 | 2896 |
'Show requirement spec' => 'Pflichtenheft anzeigen', |
2895 | 2897 |
'Show requirement spec template' => 'Pflichtenheftvorlage anzeigen', |
2896 | 2898 |
'Show sales letters report' => 'Verkaufsbrief anzeigen', |
sql/Pg-upgrade2-auth/customer_vendor_record_extra_tab_rights.pl | ||
---|---|---|
1 |
# @tag: customer_vendor_record_extra_tab_rights |
|
2 |
# @description: Setzt Rechte um bei Kunden/Lieferanten einen Extratab anzeigen zu lassen, der Belege anzeigt per Default erlaubt |
|
3 |
# @depends: release_3_5_2 |
|
4 |
# @locales: Show record tab in customer |
|
5 |
# @locales: Show record tab in vendor |
|
6 |
package SL::DBUpgrade2::Auth::customer_vendor_record_extra_tab_rights; |
|
7 |
|
|
8 |
use strict; |
|
9 |
use utf8; |
|
10 |
|
|
11 |
use parent qw(SL::DBUpgrade2::Base); |
|
12 |
|
|
13 |
use SL::DBUtils; |
|
14 |
|
|
15 |
sub run { |
|
16 |
my ($self) = @_; |
|
17 |
|
|
18 |
$self->db_query("INSERT INTO auth.master_rights (position, name, description) VALUES ( 610, 'show_extra_record_tab_customer', 'Show record tab in customer')"); |
|
19 |
$self->db_query("INSERT INTO auth.master_rights (position, name, description) VALUES ( 611, 'show_extra_record_tab_vendor', 'Show record tab in vendor')"); |
|
20 |
|
|
21 |
my $groups = $main::auth->read_groups(); |
|
22 |
|
|
23 |
foreach my $group (values %{$groups}) { |
|
24 |
$group->{rights}->{show_extra_record_tab_customer} = 1; |
|
25 |
$group->{rights}->{show_extra_record_tab_vendor} = 1; |
|
26 |
$main::auth->save_group($group); |
|
27 |
} |
|
28 |
|
|
29 |
return 1; |
|
30 |
} # end run |
|
31 |
|
|
32 |
1; |
templates/webpages/customer_vendor/form.html | ||
---|---|---|
36 | 36 |
[% IF SELF.cv.id %] |
37 | 37 |
<li><a href="#price_rules">[% 'Price Rules' | $T8 %]</a></li> |
38 | 38 |
[% END %] |
39 |
<li><a href="[% 'controller.pl?action=CustomerVendorTurnover/list_turnover&id=' _ SELF.cv.id _ '&db=' _ FORM.db %]">[% LxERP.t8('Records') %] [%- IF SELF.open_items > 0 %] <span style="color:red;"> $</span>[% END %] [%- IF SELF.open_orders > 0 %] <span style="color:red;"> !</span>[% END %]</a></li> |
|
39 |
|
|
40 |
[% IF SELF.cv.id %] |
|
41 |
[% IF ( FORM.db == 'customer' && AUTH.assert('show_extra_record_tab_customer',1) ) %] |
|
42 |
<li><a href="[% 'controller.pl?action=CustomerVendorTurnover/list_turnover&id=' _ SELF.cv.id _ '&db=' _ FORM.db %]">[% LxERP.t8('Records') %] |
|
43 |
[%- IF SELF.open_items > 0 %] <span style="color:red;"> $</span>[% END %] [%- IF SELF.open_orders > 0 %] <span style="color:red;"> !</span>[% END %]</a> |
|
44 |
</li> |
|
45 |
[% END %] |
|
46 |
[% IF ( FORM.db == 'vendor' && AUTH.assert('show_extra_record_tab_vendor',1) ) %] |
|
47 |
<li><a href="[% 'controller.pl?action=CustomerVendorTurnover/list_turnover&id=' _ SELF.cv.id _ '&db=' _ FORM.db %]">[% LxERP.t8('Records') %] |
|
48 |
[%- IF SELF.open_items > 0 %] <span style="color:red;"> $</span>[% END %] [%- IF SELF.open_orders > 0 %] <span style="color:red;"> !</span>[% END %]</a> |
|
49 |
</li> |
|
50 |
[% END %] |
|
51 |
[% END %] |
|
52 |
|
|
40 | 53 |
</ul> |
41 | 54 |
|
42 | 55 |
[% PROCESS "customer_vendor/tabs/billing.html" %] |
Auch abrufbar als: Unified diff
Kundenstatistik: Rechte
1 Recht um den Tab Belege bei Kunden anzeigen zu lassen
1 Recht um den Tab Belege bei Lieferanten anzeigen zulassen