X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/kivitendo-erp.git/blobdiff_plain/32fc2e889d08ec0bba083bdbde271e131357a829..b21a00cf4c891da7bc99d7010a0584decd164906:/SL/USTVA.pm diff --git a/SL/USTVA.pm b/SL/USTVA.pm index 1cec7447c..abbf4a32c 100644 --- a/SL/USTVA.pm +++ b/SL/USTVA.pm @@ -113,8 +113,8 @@ sub report_variables { my $attribute = $arg_ref->{attribute}; # my $dec_places = (defined $arg_ref->{dec_places}) ? $arg_ref->{dec_places}:undef; - my $where_type = "AND tax.report_headings.type = '$type'" if ( $type ); - my $where_dcp = "AND tax.report_variables.dec_places = '$dec_places'" if ( defined $dec_places ); + my $where_type = $type ? "AND tax.report_headings.type = '$type'" : ''; + my $where_dcp = defined $dec_places ? "AND tax.report_variables.dec_places = '$dec_places'" : ''; my $query = qq| SELECT $attribute