X-Git-Url: http://wagnertech.de/git?p=kivitendo-erp.git;a=blobdiff_plain;f=SL%2FController%2FAccTrans.pm;fp=SL%2FController%2FAccTrans.pm;h=80e37b7c1c057d88cecc2d837c1c8e8d3d22de02;hp=6c58061470d5794ea81260bcac5c4e45fd56023d;hb=53593baa211863fbf66540cf1bcc36c8fb37257f;hpb=deb4d2dbb676d7d6f69dfe7815d6e0cb09bd4a44 diff --git a/SL/Controller/AccTrans.pm b/SL/Controller/AccTrans.pm index 6c5806147..80e37b7c1 100644 --- a/SL/Controller/AccTrans.pm +++ b/SL/Controller/AccTrans.pm @@ -23,7 +23,7 @@ sub action_list_transactions { sub _mini_ledger { my ($self, $transactions) = @_; - $::auth->assert('general_ledger'); + $::auth->assert('invoice_edit'); my $debit_sum = 0; my $credit_sum = 0; @@ -39,7 +39,7 @@ sub _mini_ledger { sub _mini_trial_balance { my ($self, $transactions) = @_; - $::auth->assert('general_ledger'); + $::auth->assert('invoice_edit'); my $rec = {}; foreach my $t ( @{ $transactions } ) { @@ -57,7 +57,7 @@ sub _mini_trial_balance { } sub check_auth { - $::auth->assert('general_ledger'); + $::auth->assert('invoice_edit'); } 1; @@ -91,7 +91,7 @@ SL::Controller::AccTrans - module to list all transactions and balances of an in SL::Controller::AccTrans->action_list_transactions(); The HTML blob can also be opened directly as a url: - controller.pl?action=AccTrans/print_table&trans_id=7 + controller.pl?action=AccTrans/list_transactions&trans_id=7 =head1 TODO