X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=bin%2Fmozilla%2Fvk.pl;h=6c10f4d017e6e97da82bd7a006a10918c0ad1599;hb=b36f0864f0304deb66f4215c52b68351f90b2309;hp=a6476d9f1ec8d6270c0a6ab37c7c49156f06a830;hpb=ba003bf85048f1aeb5cb1b0062291dbd1efb7854;p=kivitendo-erp.git diff --git a/bin/mozilla/vk.pl b/bin/mozilla/vk.pl index a6476d9f1..6c10f4d01 100644 --- a/bin/mozilla/vk.pl +++ b/bin/mozilla/vk.pl @@ -42,14 +42,13 @@ use Data::Dumper; require "bin/mozilla/arap.pl"; require "bin/mozilla/common.pl"; -require "bin/mozilla/drafts.pl"; require "bin/mozilla/reportgenerator.pl"; use strict; sub search_invoice { $main::lxdebug->enter_sub(); - $main::auth->assert('general_ledger | invoice_edit'); + $main::auth->assert('ar_transactions | ap_transactions | invoice_edit'); my $form = $main::form; my %myconfig = %main::myconfig; @@ -93,7 +92,7 @@ sub search_invoice { sub invoice_transactions { $main::lxdebug->enter_sub(); - $main::auth->assert('general_ledger | invoice_edit'); + $main::auth->assert('ar_transactions | ap_transactions | invoice_edit'); my $form = $main::form; my %myconfig = %main::myconfig; @@ -297,7 +296,7 @@ sub invoice_transactions { # The sellprice total can be calculated from sellprice or fxsellprice (the # value that was actually entered in the sellprice field and is always - # stored seperately). However, for fxsellprice this method only works when + # stored separately). However, for fxsellprice this method only works when # the tax is not included, because otherwise fxsellprice includes the tax # and there is no simple way to extract the tax rate of the article from # the big query.