X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDN.pm;h=1804959f955b3f87122688d98345122064f48418;hb=db7a2e79d8f43e94709f9fe56d30d8cda23e856a;hp=e7959e0f1769ec8d360158d5a5ae988588f686f8;hpb=88dea78ecdb77761f71c5016ca97e53b2d55d9d3;p=kivitendo-erp.git diff --git a/SL/DN.pm b/SL/DN.pm index e7959e0f1..1804959f9 100644 --- a/SL/DN.pm +++ b/SL/DN.pm @@ -492,7 +492,7 @@ sub get_invoices { } elsif ($form->{customer}) { $where .= qq| AND (ct.name ILIKE ?)|; - push(@values, '%' . trim($form->{customer}) . '%'); + push(@values, like($form->{customer})); } my %columns = ( @@ -504,7 +504,7 @@ sub get_invoices { foreach my $key (keys(%columns)) { next unless ($form->{$key}); $where .= qq| AND $columns{$key} ILIKE ?|; - push(@values, '%' . trim($form->{$key}) . '%'); + push(@values, like($form->{$key})); } if ($form->{dunning_level}) { @@ -619,7 +619,7 @@ sub get_dunning { } elsif ($form->{customer}) { $where .= qq| AND (ct.name ILIKE ?)|; - push(@values, '%' . $form->{customer} . '%'); + push(@values, like($form->{customer})); } my %columns = ( @@ -630,7 +630,7 @@ sub get_dunning { foreach my $key (keys(%columns)) { next unless ($form->{$key}); $where .= qq| AND $columns{$key} ILIKE ?|; - push(@values, '%' . $form->{$key} . '%'); + push(@values, like($form->{$key})); } if ($form->{dunning_level}) {