X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/b623ece7b8ba928117bc2280d64d3ef8cbed2e48..4268b3d512c4d970c5735fb18d5a62f00a345597:/SL/AR.pm diff --git a/SL/AR.pm b/SL/AR.pm index d97c443d1..80fc8ef7a 100644 --- a/SL/AR.pm +++ b/SL/AR.pm @@ -516,7 +516,7 @@ sub ar_transactions { my $where = "1 = 1"; - unless ( $main::auth->check_right($form->{login}, 'show_ar_transactions') ) { + unless ( $::auth->assert('show_ar_transactions', 1) ) { $where .= " AND NOT invoice = 'f' "; # remove ar transactions from Sales -> Reports -> Invoices }; @@ -638,7 +638,7 @@ sub setup_form { my ($self, $form, $for_post_payments) = @_; my ($exchangerate, $akey, $j, $k, $index, $taxamount, $totaltax, $taxrate, $diff, $totalwithholding, $withholdingrate, - $totalamount, $taxincluded, $tax); + $totalamount, $tax); # forex $form->{forex} = $form->{exchangerate}; @@ -722,7 +722,6 @@ sub setup_form { } } - $form->{taxincluded} = $taxincluded if ($form->{id}); $form->{paidaccounts} = 1 if not defined $form->{paidaccounts}; if ($form->{taxincluded} && $form->{taxrate} && $totalamount) {