X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FUSTVA.pm;h=abbf4a32c527fe3b54f707ef5ed0f4704d5a65cd;hb=72be9c763f3b7f7df1fae4fe10011e45f9e2ad1d;hp=1cec7447c8c47dea9ea3134273042158f05078d8;hpb=05c6840d4fbb90cbe81e14427617793c45ba4714;p=kivitendo-erp.git 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